如果是山东的非耕地火点,就考虑入库
This commit is contained in:
parent
3190d71e8a
commit
aa4130ad7d
@ -126,8 +126,9 @@ public class FirePointServiceImpl implements FirePointService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (firePointEntity.getCountyCode().startsWith("37")) {
|
if (firePointEntity.getCountyCode().startsWith("37")) {
|
||||||
//如果是山东的点,就入库
|
|
||||||
if (isSwitchStateOpen()) {
|
if (isSwitchStateOpen()) {
|
||||||
|
//如果是山东的非耕地火点,就考虑入库
|
||||||
|
if (!"耕地".equals(firePointEntity.getLandType())) {
|
||||||
//如果开关已打开,就只将未审核的火点添加到山东临时表
|
//如果开关已打开,就只将未审核的火点添加到山东临时表
|
||||||
log.info("-------发现新山东火点");
|
log.info("-------发现新山东火点");
|
||||||
ShanDongFirePointEntity shanDongFirePointByFirePoint = getShanDongFirePointByFirePoint(firePointEntity);
|
ShanDongFirePointEntity shanDongFirePointByFirePoint = getShanDongFirePointByFirePoint(firePointEntity);
|
||||||
@ -140,17 +141,14 @@ public class FirePointServiceImpl implements FirePointService {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} else {
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.info("-------发现新火点");
|
log.info("-------发现新火点");
|
||||||
firePointDao.save(firePointEntity);
|
firePointDao.save(firePointEntity);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// log.info("-------发现新火点");
|
return false;
|
||||||
// firePointDao.save(firePointEntity);
|
|
||||||
// return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user