lin преди 3 години
родител
ревизия
1f9bcf3042
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      zoniot-rmcp/zoniot-rmcp-web/src/main/java/com/zcxk/rmcp/web/service/install/impl/InstallPlanServiceImpl.java

+ 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、保存计划