山东临时火点表到全国火点表的新逻辑

This commit is contained in:
liuchengqian 2022-06-02 22:26:26 +08:00
parent 6488f40bb7
commit f4186e2841

View File

@ -23,6 +23,7 @@ import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.transaction.Transactional;
import java.io.IOException;
import java.text.DecimalFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.*;
@ -334,7 +335,11 @@ public class FirePointServiceImpl implements FirePointService {
}
}
if (weixinIdList.size() > 0) {
String content = "【星科瑞升】您注册的区域卫星监测到疑似火点," + firePointEntity.getFirePointAddress() + "\n请登录系统查看";
java.text.DecimalFormat decimalFormat = new DecimalFormat("#.000000");
String formatLongitude = decimalFormat.format(firePointEntity.getLongitude());
String formatLatitude = decimalFormat.format(firePointEntity.getLatitude());
String countyName = firePointEntity.getCountyName();
String content = firePointEntity.getSatelliteType() + "发现1个火点。\nlongitude" + formatLongitude + "\nlatitude" + formatLatitude + "\ncountyName" + countyName;
for (String weixinId : weixinIdList) {
try {
WDWxSendMsgUtil.sendMsg(weixinId, content, 0);