Commit e90509c6 by 吕明尚

自动完成保洁任务增加断电

parent 4a00eb20
package share.system.service.impl; package share.system.service.impl;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -45,6 +46,11 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC ...@@ -45,6 +46,11 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
@Autowired @Autowired
private DeviceOpService deviceOpService; private DeviceOpService deviceOpService;
//管理员手机号
private static final String phone = "13888888888";
//5秒延迟
private static final Long FIVE = 5L;
/** /**
* 查询保洁记录 * 查询保洁记录
* *
...@@ -199,6 +205,7 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC ...@@ -199,6 +205,7 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
sCleanRecords.setStartDate(now); sCleanRecords.setStartDate(now);
sCleanRecords.setEndDate(now); sCleanRecords.setEndDate(now);
sCleanRecords.setUpdateTime(now); sCleanRecords.setUpdateTime(now);
deviceOpService.openOrCloseDevice(sCleanRecords.getRoomId(), phone, OpTypeEnum.CUT_ELECTRIC.getCode(), true, FIVE);
} }
return 0 < baseMapper.updateBatch(list); return 0 < baseMapper.updateBatch(list);
} }
......
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