删除无用代码

This commit is contained in:
liuchengqian 2023-03-01 20:37:32 +08:00
parent cb860c46a1
commit 65e5bb7cb8
5 changed files with 63 additions and 44 deletions

View File

@ -110,33 +110,9 @@ public class FirePointServiceImpl implements FirePointService {
} }
log.info("-------发现新火点"); log.info("-------发现新火点");
firePointDao.save(firePointEntity); firePointDao.save(firePointEntity);
forwardPoint(firePointEntity);
//发送消息通知 //发送消息通知
sendBroadcast(firePointEntity); sendBroadcast(firePointEntity);
return true; return true;
// if (firePointEntity.getCountyCode().startsWith("37")) {
// //如果开关已打开就只将未审核的火点添加到山东临时表
// log.info("-------发现新山东火点");
// ShanDongFirePointEntity shanDongFirePointByFirePoint = getShanDongFirePointByFirePoint(firePointEntity);
// ShanDongFirePointEntity savedShanDongFirePoint = shanDongFirePointDao.save(shanDongFirePointByFirePoint);
// //微信消息通知火点审核工作组
// try {
// String messageContent = getMessageContent(savedShanDongFirePoint);
// WDWxSendMsgUtil.sendMsg("18447024917@chatroom", messageContent, 0);
// } catch (Exception e) {
// e.printStackTrace();
// }
// return true;
// }
}
private void forwardPoint(FirePointEntity firePointEntity) {
try {
String url = "http://121.36.229.60:6811/insertfirepointchannelThree";
HttpClientUtils.sendHttpPostTextPlain(url, new ObjectMapper().writeValueAsString(firePointEntity));
} catch (Exception e) {
e.printStackTrace();
}
} }
/** /**

View File

@ -51,26 +51,26 @@ public class FirePointController {
@Resource @Resource
private FirePointQueryHelper firePointQueryHelper; private FirePointQueryHelper firePointQueryHelper;
@GetMapping("/queryzzhd") // @GetMapping("/queryzzhd")
public String queryzzhd() { // public String queryzzhd() {
List<FirePointEntity> firePointEntities1 = firePointQueryHelper.queryZZHD("371482", "2022-01-01 00:00:10", "2022-06-26 00:00:10"); // List<FirePointEntity> firePointEntities1 = firePointQueryHelper.queryZZHD("371482", "2022-01-01 00:00:10", "2022-06-26 00:00:10");
List<FirePointEntity> firePointEntities2 = firePointQueryHelper.queryZZHD("371403", "2022-01-01 00:00:10", "2022-06-26 00:00:10"); // List<FirePointEntity> firePointEntities2 = firePointQueryHelper.queryZZHD("371403", "2022-01-01 00:00:10", "2022-06-26 00:00:10");
List<FirePointEntity> firePointEntities3 = firePointQueryHelper.queryZZHD("371426", "2022-01-01 00:00:10", "2022-06-26 00:00:10"); // List<FirePointEntity> firePointEntities3 = firePointQueryHelper.queryZZHD("371426", "2022-01-01 00:00:10", "2022-06-26 00:00:10");
List<FirePointEntity> firePointEntities4 = firePointQueryHelper.queryZZHD("371424", "2022-01-01 00:00:10", "2022-06-26 00:00:10"); // List<FirePointEntity> firePointEntities4 = firePointQueryHelper.queryZZHD("371424", "2022-01-01 00:00:10", "2022-06-26 00:00:10");
List<FirePointEntity> firePointEntities5 = firePointQueryHelper.queryZZHD("371526", "2022-01-01 00:00:10", "2022-06-26 00:00:10"); // List<FirePointEntity> firePointEntities5 = firePointQueryHelper.queryZZHD("371526", "2022-01-01 00:00:10", "2022-06-26 00:00:10");
List<FirePointEntity> firePointEntities6 = firePointQueryHelper.queryZZHD("371425", "2022-01-01 00:00:10", "2022-06-26 00:00:10"); // List<FirePointEntity> firePointEntities6 = firePointQueryHelper.queryZZHD("371425", "2022-01-01 00:00:10", "2022-06-26 00:00:10");
List<FirePointEntity> firePointEntities7 = firePointQueryHelper.queryZZHD("371503", "2022-01-01 00:00:10", "2022-06-26 00:00:10"); // List<FirePointEntity> firePointEntities7 = firePointQueryHelper.queryZZHD("371503", "2022-01-01 00:00:10", "2022-06-26 00:00:10");
//
List<FirePointEntity> firePointList = new ArrayList<>(); // List<FirePointEntity> firePointList = new ArrayList<>();
firePointList.addAll(firePointEntities1); // firePointList.addAll(firePointEntities1);
firePointList.addAll(firePointEntities2); // firePointList.addAll(firePointEntities2);
firePointList.addAll(firePointEntities3); // firePointList.addAll(firePointEntities3);
firePointList.addAll(firePointEntities4); // firePointList.addAll(firePointEntities4);
firePointList.addAll(firePointEntities5); // firePointList.addAll(firePointEntities5);
firePointList.addAll(firePointEntities6); // firePointList.addAll(firePointEntities6);
firePointList.addAll(firePointEntities7); // firePointList.addAll(firePointEntities7);
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, firePointList, locale); // return outputEncapsulationObject(PromptMessageEnum.SUCCESS, firePointList, locale);
} // }
/** /**
* 添加火点数据 * 添加火点数据

View File

@ -149,4 +149,22 @@ public class AllFirePointQo {
public void setTownCode(String townCode) { public void setTownCode(String townCode) {
this.townCode = townCode; this.townCode = townCode;
} }
@Override
public String toString() {
return "AllFirePointQo{" +
"fireCode='" + fireCode + '\'' +
", countyCode=" + countyCode +
", countyName='" + countyName + '\'' +
", satelliteTimeTs=" + satelliteTimeTs +
", longitude=" + longitude +
", latitude=" + latitude +
", satelliteType='" + satelliteType + '\'' +
", landType='" + landType + '\'' +
", confidence='" + confidence + '\'' +
", fireImage='" + fireImage + '\'' +
", satelliteImage='" + satelliteImage + '\'' +
", townCode='" + townCode + '\'' +
'}';
}
} }

View File

@ -225,4 +225,27 @@ public class AllFirePointVo {
public void setRemark(String remark) { public void setRemark(String remark) {
this.remark = remark; this.remark = remark;
} }
@Override
public String toString() {
return "AllFirePointVo{" +
"id=" + id +
", fireCode='" + fireCode + '\'' +
", countyCode='" + countyCode + '\'' +
", countyName='" + countyName + '\'' +
", satelliteTime='" + satelliteTime + '\'' +
", longitude=" + longitude +
", latitude=" + latitude +
", satelliteType='" + satelliteType + '\'' +
", landType='" + landType + '\'' +
", confidence='" + confidence + '\'' +
", fireImage='" + fireImage + '\'' +
", satelliteImage='" + satelliteImage + '\'' +
", townCode='" + townCode + '\'' +
", townName='" + townName + '\'' +
", addTime='" + addTime + '\'' +
", firePointAddress='" + firePointAddress + '\'' +
", remark='" + remark + '\'' +
'}';
}
} }

View File

@ -95,6 +95,7 @@ public class DispatchFirePointServiceImpl implements DispatchFirePointService {
*/ */
@Override @Override
public String insertFirePointChannelOrdinary(AllFirePointQo firePointQo) { public String insertFirePointChannelOrdinary(AllFirePointQo firePointQo) {
log.info("insertFirePointChannelOrdinary 接收到火点信息:" + firePointQo.toString());
String fireCode = firePointQo.getFireCode(); String fireCode = firePointQo.getFireCode();
Long countyCode = firePointQo.getCountyCode(); Long countyCode = firePointQo.getCountyCode();
@ -161,6 +162,7 @@ public class DispatchFirePointServiceImpl implements DispatchFirePointService {
*/ */
@Override @Override
public String insertFirePointChannelPrecise(AllFirePointQo firePointQo) { public String insertFirePointChannelPrecise(AllFirePointQo firePointQo) {
log.info("insertFirePointChannelPrecise 接收到火点信息:" + firePointQo.toString());
String fireCode = firePointQo.getFireCode(); String fireCode = firePointQo.getFireCode();
Long countyCode = firePointQo.getCountyCode(); Long countyCode = firePointQo.getCountyCode();