Browse Source

安装计划

lin 3 years ago
parent
commit
1f9bcf3042

+ 3 - 0
zoniot-rmcp/zoniot-rmcp-web/src/main/java/com/zcxk/rmcp/web/service/install/impl/InstallPlanServiceImpl.java

@@ -98,6 +98,8 @@ public class InstallPlanServiceImpl implements InstallPlanService {
 
     @Override
     public int updateByPrimaryKeySelective(InstallPlan record) {
+        record.setUpdateBy(UserUtil.getUsername());
+        record.setUpdateDate(LocalDateTime.now());
         return installPlanMapper.updateByPrimaryKeySelective(record);
     }
 
@@ -125,6 +127,7 @@ public class InstallPlanServiceImpl implements InstallPlanService {
             community.setAddress(dto.getAdrress());
             community.setLng(dto.getLng());
             community.setLat(dto.getLat());
+            community.setUpdateDate(LocalDateTime.now());
             communityMapper.updateByPrimaryKeySelective(community);
 
             // 2、保存计划