Commit 4e251752 authored by litengwei's avatar litengwei

至少一次巡查触发逻辑

parent 6f6bf58c
......@@ -2011,7 +2011,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
*
* @throws Exception
*/
@Scheduled(cron = "${equip.patrol.cron:0 0 9 * * ?}")
@Scheduled(cron = "${equip.patrol.cron:0 0 23 * * ?}")
@Transactional(rollbackFor = Exception.class)
public void patrolTaskStatic() throws Exception {
List<Map<String, Object>> mapPatrol = equipmentSpecificIndexMapper.patrolTaskStatic();
......@@ -2021,7 +2021,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
if(m.get("isFinishOnce").toString().equals("0")) {
if(m.get("planNum").toString().equals("1")) {
Map<String, String> map = new HashMap<>();
map.put("planName", m.get("planName").toString());
map.put("planName", m.getOrDefault("planName", "").toString());
map.put("bizOrgCode", m.get("bizOrgCode").toString());
map.put("bizOrgName", m.get("bizOrgName").toString());
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment