wxz 2 years ago
parent
commit
58eff6d6d0
  1. 3
      epmet-admin/epmet-admin-server/src/main/resources/logback-spring.xml
  2. 3
      epmet-auth/src/main/resources/logback-spring.xml
  3. 3
      epmet-gateway/src/main/resources/logback-spring.xml
  4. 3
      epmet-module/data-aggregator/data-aggregator-server/src/main/resources/logback-spring.xml
  5. 3
      epmet-module/data-report/data-report-server/src/main/resources/logback-spring.xml
  6. 3
      epmet-module/data-statistical/data-statistical-server/src/main/resources/logback-spring.xml
  7. 3
      epmet-module/epmet-activiti/epmet-activiti-server/src/main/resources/logback-spring.xml
  8. 3
      epmet-module/epmet-common-service/common-service-server/src/main/resources/logback-spring.xml
  9. 3
      epmet-module/epmet-demo/epmet-demo-server/src/main/resources/logback-spring.xml
  10. 3
      epmet-module/epmet-ext/epmet-ext-server/src/main/resources/logback-spring.xml
  11. 3
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/logback-spring.xml
  12. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcServiceRecordV2Dao.xml
  13. 3
      epmet-module/epmet-job/epmet-job-server/src/main/resources/logback-spring.xml
  14. 3
      epmet-module/epmet-message/epmet-message-server/src/main/resources/logback-spring.xml
  15. 3
      epmet-module/epmet-oss/epmet-oss-server/src/main/resources/logback-spring.xml
  16. 3
      epmet-module/epmet-point/epmet-point-server/src/main/resources/logback-spring.xml
  17. 3
      epmet-module/epmet-third/epmet-third-server/src/main/resources/logback-spring.xml
  18. 3
      epmet-module/gov-access/gov-access-server/src/main/resources/logback-spring.xml
  19. 3
      epmet-module/gov-grid/gov-grid-server/src/main/resources/logback-spring.xml
  20. 3
      epmet-module/gov-issue/gov-issue-server/src/main/resources/logback-spring.xml
  21. 3
      epmet-module/gov-mine/gov-mine-server/src/main/resources/logback-spring.xml
  22. 7
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/excel/EnterpriseImportExcelDTO.java
  23. 13
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/excel/handler/IcEnterpriseExcelImportListener.java
  24. 45
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcEnterpriseServiceImpl.java
  25. BIN
      epmet-module/gov-org/gov-org-server/src/main/resources/excel/enterprise_patrol_import_tem.xlsx
  26. 3
      epmet-module/gov-org/gov-org-server/src/main/resources/logback-spring.xml
  27. 3
      epmet-module/gov-project/gov-project-server/src/main/resources/logback-spring.xml
  28. 2
      epmet-module/gov-project/gov-project-server/src/main/resources/mapper/IcEventDao.xml
  29. 3
      epmet-module/gov-voice/gov-voice-server/src/main/resources/logback-spring.xml
  30. 3
      epmet-module/open-data-worker/open-data-worker-server/src/main/resources/logback-spring.xml
  31. 3
      epmet-module/oper-access/oper-access-server/src/main/resources/logback-spring.xml
  32. 3
      epmet-module/oper-crm/oper-crm-server/src/main/resources/logback-spring.xml
  33. 3
      epmet-module/oper-customize/oper-customize-server/src/main/resources/logback-spring.xml
  34. 3
      epmet-module/resi-group/resi-group-server/src/main/resources/logback-spring.xml
  35. 3
      epmet-module/resi-guide/resi-guide-server/src/main/resources/logback-spring.xml
  36. 3
      epmet-module/resi-hall/resi-hall-server/src/main/resources/logback-spring.xml
  37. 3
      epmet-module/resi-home/resi-home-server/src/main/resources/logback-spring.xml
  38. 3
      epmet-module/resi-mine/resi-mine-server/src/main/resources/logback-spring.xml
  39. 3
      epmet-module/resi-partymember/resi-partymember-server/src/main/resources/logback-spring.xml
  40. 3
      epmet-module/resi-voice/resi-voice-server/src/main/resources/logback-spring.xml
  41. 35
      epmet-user/epmet-user-client/src/main/java/com/epmet/remote/EpmetUserRemoteService.java
  42. 11
      epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiUserDao.java
  43. 4
      epmet-user/epmet-user-server/src/main/java/com/epmet/entity/IcResiUserEntity.java
  44. 16
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiCollectServiceImpl.java
  45. 6
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserImportServiceImpl.java
  46. 3
      epmet-user/epmet-user-server/src/main/resources/logback-spring.xml
  47. 13
      epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserDao.xml

3
epmet-admin/epmet-admin-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/admin"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/admin"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>

3
epmet-auth/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/auth"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/auth"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-gateway/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/gateway"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/gateway"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/data-aggregator/data-aggregator-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/data-aggregator"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/data-aggregator"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/data-report/data-report-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/data-report"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/data-report"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/data-statistical/data-statistical-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/data-statistical"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/data-statistical"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/epmet-activiti/epmet-activiti-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/activiti"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/activiti"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>

3
epmet-module/epmet-common-service/common-service-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/common-service"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/common-service"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/epmet-demo/epmet-demo-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/demo"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/demo"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>

3
epmet-module/epmet-ext/epmet-ext-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/ext"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/ext"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/heart"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/heart"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

2
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcServiceRecordV2Dao.xml

@ -40,7 +40,7 @@
<if test='serviceTimeEnd != null and serviceTimeEnd != ""'> <if test='serviceTimeEnd != null and serviceTimeEnd != ""'>
AND sr.SERVICE_TIME_END <![CDATA[ <= ]]> #{serviceTimeEnd} AND sr.SERVICE_TIME_END <![CDATA[ <= ]]> #{serviceTimeEnd}
</if> </if>
ORDER BY sr.CREATED_TIME DESC ORDER BY sr.SERVICE_TIME_START DESC,sr.SERVICE_TIME_END DESC
</select> </select>

3
epmet-module/epmet-job/epmet-job-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/job"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/job"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/epmet-message/epmet-message-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/message"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/message"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/epmet-oss/epmet-oss-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/oss"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/oss"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/epmet-point/epmet-point-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/point"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/point"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/epmet-third/epmet-third-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/third"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/third"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/gov-access/gov-access-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/gov-access"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/gov-access"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>

3
epmet-module/gov-grid/gov-grid-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/gov-grid"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/gov-grid"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/gov-issue/gov-issue-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/gov-issue"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/gov-issue"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/gov-mine/gov-mine-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/gov-mine"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/gov-mine"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

7
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/excel/EnterpriseImportExcelDTO.java

@ -5,7 +5,6 @@ import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/** /**
@ -59,9 +58,9 @@ public class EnterpriseImportExcelDTO {
* 4:100人以上 * 4:100人以上
* 改为手输数字了 * 改为手输数字了
*/ */
@NotNull(message = "规模不能为空") @NotBlank(message = "规模不能为空")
@ExcelProperty(value = "规模") @ExcelProperty(value = "规模")
private Integer scaleTotal; private String scaleTotal;
/** /**
* 场所负责人 * 场所负责人
@ -110,7 +109,7 @@ public class EnterpriseImportExcelDTO {
@ColumnWidth(20) @ColumnWidth(20)
@ExcelProperty(value = "规模") @ExcelProperty(value = "规模")
private Integer scaleTotal; private String scaleTotal;
@ColumnWidth(20) @ColumnWidth(20)
@ExcelProperty(value = "负责人") @ExcelProperty(value = "负责人")

13
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/excel/handler/IcEnterpriseExcelImportListener.java

@ -5,6 +5,8 @@ import com.alibaba.excel.read.listener.ReadListener;
import com.epmet.commons.tools.constant.NumConstant; import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.commons.tools.constant.StrConstant; import com.epmet.commons.tools.constant.StrConstant;
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult;
import com.epmet.commons.tools.exception.EpmetErrorCode;
import com.epmet.commons.tools.exception.EpmetException;
import com.epmet.commons.tools.exception.ExceptionUtils; import com.epmet.commons.tools.exception.ExceptionUtils;
import com.epmet.commons.tools.exception.ValidateException; import com.epmet.commons.tools.exception.ValidateException;
import com.epmet.commons.tools.utils.ConvertUtils; import com.epmet.commons.tools.utils.ConvertUtils;
@ -67,11 +69,16 @@ public class IcEnterpriseExcelImportListener implements ReadListener<EnterpriseI
// log.warn("有数据吗?"+JSON.toJSONString(data)); // log.warn("有数据吗?"+JSON.toJSONString(data));
// 不能为空先校验数据 // 不能为空先校验数据
ValidatorUtils.validateEntity(data); ValidatorUtils.validateEntity(data);
try {
Integer.parseInt(data.getScaleTotal());
} catch (NumberFormatException e) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "", "规模请正确填写场所人数");
}
// 去除空格 // 去除空格
ObjectUtil.objectToTrim(data); ObjectUtil.objectToTrim(data);
// 根据网格名是否能找到网格id // 根据网格名是否能找到网格id
if (!gridMap.containsKey(data.getGridName())) { if (!gridMap.containsKey(data.getGridName())) {
throw new ValidateException(String.format("您所在的组织,不存在【%s】", data.getGridName())); throw new ValidateException(String.format("场所区域为网格名称,您所在的组织,不存在【%s】", data.getGridName()));
} }
if(!placeTypeMap.containsKey(data.getPlaceTypeName())){ if(!placeTypeMap.containsKey(data.getPlaceTypeName())){
throw new ValidateException(String.format("【%s】场所类型不存在",data.getPlaceTypeName())); throw new ValidateException(String.format("【%s】场所类型不存在",data.getPlaceTypeName()));
@ -92,7 +99,7 @@ public class IcEnterpriseExcelImportListener implements ReadListener<EnterpriseI
enterpriseEntity.setLatitude(StrConstant.EPMETY_STR); enterpriseEntity.setLatitude(StrConstant.EPMETY_STR);
//规模 //规模
// enterpriseEntity.setScale(scaleMap.get(data.getScaleName())); // enterpriseEntity.setScale(scaleMap.get(data.getScaleName()));
enterpriseEntity.setScaleTotal(data.getScaleTotal()); enterpriseEntity.setScaleTotal(Integer.valueOf(data.getScaleTotal()));
enterpriseEntity.setPlaceCategory("九小场所".equals(data.getPlaceCategoryName()) ? "0" : "1"); enterpriseEntity.setPlaceCategory("九小场所".equals(data.getPlaceCategoryName()) ? "0" : "1");
//网格id+场所名称 //网格id+场所名称
@ -118,6 +125,8 @@ public class IcEnterpriseExcelImportListener implements ReadListener<EnterpriseI
String errorMsg = null; String errorMsg = null;
if (e instanceof ValidateException) { if (e instanceof ValidateException) {
errorMsg = ((ValidateException) e).getMsg(); errorMsg = ((ValidateException) e).getMsg();
}else if(e instanceof EpmetException){
errorMsg=((EpmetException) e).getMsg();
}else { }else {
errorMsg = "未知错误"; errorMsg = "未知错误";
log.error("【企事业单位导入】出错:{}", ExceptionUtils.getErrorStackTrace(e)); log.error("【企事业单位导入】出错:{}", ExceptionUtils.getErrorStackTrace(e));

45
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcEnterpriseServiceImpl.java

@ -3,6 +3,7 @@ package com.epmet.service.impl;
import com.alibaba.excel.EasyExcel; import com.alibaba.excel.EasyExcel;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; import com.epmet.commons.mybatis.service.impl.BaseServiceImpl;
import com.epmet.commons.tools.aop.NoRepeatSubmit; import com.epmet.commons.tools.aop.NoRepeatSubmit;
@ -170,7 +171,16 @@ public class IcEnterpriseServiceImpl extends BaseServiceImpl<IcEnterpriseDao, Ic
enterprisePatrolRecordDao.insert(patrolRecordEntity); enterprisePatrolRecordDao.insert(patrolRecordEntity);
} else { } else {
patrolRecordEntity.setId(formDTO.getPatrolId()); patrolRecordEntity.setId(formDTO.getPatrolId());
enterprisePatrolRecordDao.updateById(patrolRecordEntity); LambdaUpdateWrapper<IcEnterprisePatrolRecordEntity> update=new LambdaUpdateWrapper<>();
update.eq(IcEnterprisePatrolRecordEntity::getId, formDTO.getPatrolId())
.set(IcEnterprisePatrolRecordEntity::getPatrolTime, formDTO.getPatrolTime())
.set(IcEnterprisePatrolRecordEntity::getStaffId, formDTO.getStaffId())
.set(IcEnterprisePatrolRecordEntity::getStaffName, formDTO.getStaffName())
.set(IcEnterprisePatrolRecordEntity::getMobile, formDTO.getMobile())
.set(IcEnterprisePatrolRecordEntity::getResult, formDTO.getResult())
.set(IcEnterprisePatrolRecordEntity::getDetailed, formDTO.getDetailed())
.set(IcEnterprisePatrolRecordEntity::getReviewTime, formDTO.getReviewTime());
enterprisePatrolRecordDao.update(null,update);
//删除之前的图片 //删除之前的图片
enterprisePatrolAttachmentDao.deleteByPatrolId(formDTO.getPatrolId(), formDTO.getUserId()); enterprisePatrolAttachmentDao.deleteByPatrolId(formDTO.getPatrolId(), formDTO.getUserId());
} }
@ -187,7 +197,19 @@ public class IcEnterpriseServiceImpl extends BaseServiceImpl<IcEnterpriseDao, Ic
sort++; sort++;
} }
// 更新主表的最新结果和最新检查时间 // 更新主表的最新结果和最新检查时间
baseDao.updateLatestPatrol(formDTO.getEnterpriseId(), patrolRecordEntity.getPatrolTime(), patrolRecordEntity.getResult(), formDTO.getUserId()); // 获取一下最新的巡检时间和巡检结果
LambdaQueryWrapper<IcEnterprisePatrolRecordEntity> queryWrapper = new LambdaQueryWrapper();
queryWrapper.eq(IcEnterprisePatrolRecordEntity::getEnterpriseId, formDTO.getEnterpriseId())
.orderByDesc(IcEnterprisePatrolRecordEntity::getPatrolTime)
.orderByDesc(IcEnterprisePatrolRecordEntity::getCreatedTime)
.last("limit 1");
IcEnterprisePatrolRecordEntity latestPatrol = enterprisePatrolRecordDao.selectOne(queryWrapper);
if (null != latestPatrol) {
// 更新主表的最新结果和最新检查时间
baseDao.updateLatestPatrol(formDTO.getEnterpriseId(), latestPatrol.getPatrolTime(), latestPatrol.getResult(), formDTO.getUserId());
}else{
baseDao.updateLatestPatrol(formDTO.getEnterpriseId(), null, StrConstant.EPMETY_STR, formDTO.getUserId());
}
return patrolRecordEntity.getId(); return patrolRecordEntity.getId();
} }
@ -203,14 +225,27 @@ public class IcEnterpriseServiceImpl extends BaseServiceImpl<IcEnterpriseDao, Ic
if (null == origin) { if (null == origin) {
return; return;
} }
Date nowTime=new Date();
//1、删除巡查记录 //1、删除巡查记录
enterprisePatrolRecordDao.deleteById(patrolId); LambdaUpdateWrapper<IcEnterprisePatrolRecordEntity> patrolUpdate = new LambdaUpdateWrapper<>();
patrolUpdate.eq(IcEnterprisePatrolRecordEntity::getId, patrolId)
.set(IcEnterprisePatrolRecordEntity::getUpdatedBy, currentUserId)
.set(IcEnterprisePatrolRecordEntity::getUpdatedTime, nowTime)
.set(IcEnterprisePatrolRecordEntity::getDelFlag, NumConstant.ONE_STR);
enterprisePatrolRecordDao.update(null, patrolUpdate);
//2、删除之前的图片 //2、删除之前的图片
enterprisePatrolAttachmentDao.deleteByPatrolId(patrolId, currentUserId); enterprisePatrolAttachmentDao.deleteByPatrolId(patrolId, currentUserId);
// 3、如果是记录清空,那主表的最近一次巡查时间和最新结果也置空 // 3、如果是记录清空,那主表的最近一次巡查时间和最新结果也置空
LambdaQueryWrapper<IcEnterprisePatrolRecordEntity> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<IcEnterprisePatrolRecordEntity> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(IcEnterprisePatrolRecordEntity::getEnterpriseId, origin.getEnterpriseId()); queryWrapper.eq(IcEnterprisePatrolRecordEntity::getEnterpriseId, origin.getEnterpriseId())
if (NumConstant.ZERO == enterprisePatrolRecordDao.selectCount(queryWrapper)) { .orderByDesc(IcEnterprisePatrolRecordEntity::getPatrolTime)
.orderByDesc(IcEnterprisePatrolRecordEntity::getCreatedTime)
.last("limit 1");
IcEnterprisePatrolRecordEntity latestPatrol = enterprisePatrolRecordDao.selectOne(queryWrapper);
if (null != latestPatrol) {
// 更新主表的最新结果和最新检查时间
baseDao.updateLatestPatrol(origin.getEnterpriseId(), latestPatrol.getPatrolTime(), latestPatrol.getResult(), currentUserId);
} else {
baseDao.updateLatestPatrol(origin.getEnterpriseId(), null, StrConstant.EPMETY_STR, currentUserId); baseDao.updateLatestPatrol(origin.getEnterpriseId(), null, StrConstant.EPMETY_STR, currentUserId);
} }
} }

BIN
epmet-module/gov-org/gov-org-server/src/main/resources/excel/enterprise_patrol_import_tem.xlsx

Binary file not shown.

3
epmet-module/gov-org/gov-org-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/gov-org"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/gov-org"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/gov-project/gov-project-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/gov-project"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/gov-project"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

2
epmet-module/gov-project/gov-project-server/src/main/resources/mapper/IcEventDao.xml

@ -247,7 +247,7 @@
#{secondId} #{secondId}
</foreach> </foreach>
</if> </if>
order by ie.created_time desc, ie.latest_operated_time desc order by ie.happen_time desc, ie.latest_operated_time desc
</select> </select>
<select id="listEventsByPCategoryInOrg" resultType="com.epmet.dto.result.IcEventResultDTO"> <select id="listEventsByPCategoryInOrg" resultType="com.epmet.dto.result.IcEventResultDTO">

3
epmet-module/gov-voice/gov-voice-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/gov-voice"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/gov-voice"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/open-data-worker/open-data-worker-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/open-data"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/open-data"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>

3
epmet-module/oper-access/oper-access-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/oper-access"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/oper-access"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/oper-crm/oper-crm-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/oper-crm"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/oper-crm"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/oper-customize/oper-customize-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/oper-customize"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/oper-customize"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/resi-group/resi-group-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/resi-group"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/resi-group"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/resi-guide/resi-guide-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/resi-guide"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/resi-guide"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/resi-hall/resi-hall-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/resi-hall"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/resi-hall"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/resi-home/resi-home-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/resi-home"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/resi-home"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/resi-mine/resi-mine-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/resi-mine"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/resi-mine"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/resi-partymember/resi-partymember-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/resi-partymember"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/resi-partymember"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

3
epmet-module/resi-voice/resi-voice-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/resi-voice"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/resi-voice"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

35
epmet-user/epmet-user-client/src/main/java/com/epmet/remote/EpmetUserRemoteService.java

@ -0,0 +1,35 @@
package com.epmet.remote;
import com.epmet.commons.tools.constant.ServiceConstant;
import com.epmet.commons.tools.feign.ResultDataResolver;
import com.epmet.commons.tools.utils.EpmetRequestHolder;
import com.epmet.dto.form.LoginUserDetailsFormDTO;
import com.epmet.dto.result.LoginUserDetailsResultDTO;
import com.epmet.feign.EpmetUserOpenFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* epmet用户远程服务工具
*/
@Component
public class EpmetUserRemoteService implements ResultDataResolver {
@Autowired
private EpmetUserOpenFeignClient epmetUserOpenFeignClient;
/**
* 查询当前登录用户信息
* @return
*/
public LoginUserDetailsResultDTO getLoginUserDetails() {
// 不传组织id,则基于当前组织查询
LoginUserDetailsFormDTO loinUserForm = new LoginUserDetailsFormDTO();
loinUserForm.setApp(EpmetRequestHolder.getLoginUserApp());
loinUserForm.setClient(EpmetRequestHolder.getLoginUserClient());
loinUserForm.setUserId(EpmetRequestHolder.getLoginUserId());
LoginUserDetailsResultDTO loginUserDetailsResultDTO = getResultDataOrThrowsException(epmetUserOpenFeignClient.getLoginUserDetails(loinUserForm), ServiceConstant.GOV_ORG_SERVER,
null, null, "查询当前工作人员所属组织信息失败");
return loginUserDetailsResultDTO;
}
}

11
epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiUserDao.java

@ -61,6 +61,17 @@ public interface IcResiUserDao extends BaseDao<IcResiUserEntity> {
**/ **/
void upTable(@Param("tableName") String tableName, @Param("id") String id, @Param("map") Map<String, ?> map); void upTable(@Param("tableName") String tableName, @Param("id") String id, @Param("map") Map<String, ?> map);
/**
* @description: 选择性更新只更新不为null的
* @param tableName:
* @param id:
* @param map:
* @return
* @author: WangXianZhang
* @date: 2023/4/23 9:03 PM
*/
void updateTableSelective(@Param("tableName") String tableName, @Param("id") String id, @Param("map") Map<String, ?> map);
List<Map<String, Object>> selectListResiMap(@Param("customerId") String customerId, List<Map<String, Object>> selectListResiMap(@Param("customerId") String customerId,
@Param("formCode") String formCode, @Param("formCode") String formCode,
@Param("conditions") List<ResiUserQueryValueDTO> conditions, @Param("conditions") List<ResiUserQueryValueDTO> conditions,

4
epmet-user/epmet-user-server/src/main/java/com/epmet/entity/IcResiUserEntity.java

@ -42,12 +42,12 @@ public class IcResiUserEntity extends BaseEpmetEntity {
private String customerId; private String customerId;
/** /**
* * 组织Id
*/ */
private String agencyId; private String agencyId;
/** /**
* * 组织的pids 含agencyId本身
*/ */
private String pids; private String pids;

16
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiCollectServiceImpl.java

@ -15,6 +15,7 @@ import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache;
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; import com.epmet.commons.tools.redis.common.bean.GridInfoCache;
import com.epmet.commons.tools.security.dto.TokenDto; import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.commons.tools.utils.ConvertUtils; import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.utils.PidUtils;
import com.epmet.commons.tools.utils.Result; import com.epmet.commons.tools.utils.Result;
import com.epmet.dao.IcResiCollectDao; import com.epmet.dao.IcResiCollectDao;
import com.epmet.dao.IcResiMemberDao; import com.epmet.dao.IcResiMemberDao;
@ -491,8 +492,12 @@ public class IcResiCollectServiceImpl extends BaseServiceImpl<IcResiCollectDao,
throw new EpmetException(EpmetErrorCode.ORG_ADD_FAILED.getCode(), errorMsg, errorMsg); throw new EpmetException(EpmetErrorCode.ORG_ADD_FAILED.getCode(), errorMsg, errorMsg);
} }
} }
AgencyInfoCache agencyInfoCache = CustomerOrgRedis.getAgencyInfo(icResiCollectEntity.getAgencyId());
userEntity.setPids(icResiCollectEntity.getPids() + ":" + icResiCollectEntity.getAgencyId()); // ic_resi_user表的组织的pids 含agencyId本身 if (null == agencyInfoCache) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "所属组织查询异常,agencyId:" + icResiCollectEntity.getAgencyId(), "所属组织查询异常");
}
// userEntity.setPids(icResiCollectEntity.getPids() + ":" + icResiCollectEntity.getAgencyId()); // ic_resi_user表的组织的pids 含agencyId本身
userEntity.setPids(PidUtils.convertPid2OrgIdPath(icResiCollectEntity.getAgencyId(), agencyInfoCache.getPids()));
userEntity.setAgencyId(icResiCollectEntity.getAgencyId()); userEntity.setAgencyId(icResiCollectEntity.getAgencyId());
userEntity.setGridId(icResiCollectEntity.getGridId()); userEntity.setGridId(icResiCollectEntity.getGridId());
userEntity.setVillageId(icResiCollectEntity.getVillageId()); userEntity.setVillageId(icResiCollectEntity.getVillageId());
@ -547,7 +552,12 @@ public class IcResiCollectServiceImpl extends BaseServiceImpl<IcResiCollectDao,
// 新增人员 // 新增人员
IcResiUserEntity userEntity = new IcResiUserEntity(); IcResiUserEntity userEntity = new IcResiUserEntity();
userEntity.setPids(icResiCollectEntity.getPids() + ":" + icResiCollectEntity.getAgencyId()); // ic_resi_user表的组织的pids 含agencyId本身 AgencyInfoCache agencyInfoCache = CustomerOrgRedis.getAgencyInfo(icResiCollectEntity.getAgencyId());
if (null == agencyInfoCache) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "所属组织查询异常,agencyId:" + icResiCollectEntity.getAgencyId(), "所属组织查询异常");
}
// userEntity.setPids(icResiCollectEntity.getPids() + ":" + icResiCollectEntity.getAgencyId()); // ic_resi_user表的组织的pids 含agencyId本身 !!!
userEntity.setPids(PidUtils.convertPid2OrgIdPath(icResiCollectEntity.getAgencyId(), agencyInfoCache.getPids()));
userEntity.setAgencyId(icResiCollectEntity.getAgencyId()); userEntity.setAgencyId(icResiCollectEntity.getAgencyId());
userEntity.setGridId(icResiCollectEntity.getGridId()); userEntity.setGridId(icResiCollectEntity.getGridId());
userEntity.setVillageId(icResiCollectEntity.getVillageId()); userEntity.setVillageId(icResiCollectEntity.getVillageId());

6
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserImportServiceImpl.java

@ -547,7 +547,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res
if (existingResiMap != null) { if (existingResiMap != null) {
// 修改居民信息 // 修改居民信息
icResiUserDao.upTable(tableName, existingResiMap.get("ID"), columnAndValues); icResiUserDao.updateTableSelective(tableName, existingResiMap.get("ID"), columnAndValues);
// 任意组织维度一个发生变化,则放到调动居民缓存中 // 任意组织维度一个发生变化,则放到调动居民缓存中
ResiImportChangedData transferData; ResiImportChangedData transferData;
@ -747,7 +747,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res
if (CollectionUtils.isNotEmpty(subInfos)) { if (CollectionUtils.isNotEmpty(subInfos)) {
Map<String, Object> subInfo = subInfos.get(0); Map<String, Object> subInfo = subInfos.get(0);
// 附加信息存在,更新附加表内容 // 附加信息存在,更新附加表内容
icResiUserDao.upTable(targetTableName, subInfo.get("ID").toString(), columnAndValues); icResiUserDao.updateTableSelective(targetTableName, subInfo.get("ID").toString(), columnAndValues);
} else { } else {
// 新增附加表信息 // 新增附加表信息
columnAndValues.put("CREATED_BY", currentUserId); columnAndValues.put("CREATED_BY", currentUserId);
@ -1577,7 +1577,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res
private void updateMainTableResiTypeFlag(IcResiUserTableEnum icResiUserTableEnum, String resiUserId) { private void updateMainTableResiTypeFlag(IcResiUserTableEnum icResiUserTableEnum, String resiUserId) {
HashMap<String, Boolean> map = new HashMap<>(); HashMap<String, Boolean> map = new HashMap<>();
map.put(icResiUserTableEnum.getMainTableFlagColumnName(), true); map.put(icResiUserTableEnum.getMainTableFlagColumnName(), true);
icResiUserDao.upTable(IcResiUserTableEnum.IC_RESI_USER.getTableName(), resiUserId, map); icResiUserDao.updateTableSelective(IcResiUserTableEnum.IC_RESI_USER.getTableName(), resiUserId, map);
} }
/** /**

3
epmet-user/epmet-user-server/src/main/resources/logback-spring.xml

@ -3,7 +3,8 @@
<!--<include resource="org/springframework/boot/logging/logback/base.xml"/>--> <!--<include resource="org/springframework/boot/logging/logback/base.xml"/>-->
<include resource="logback-base.xml"/> <include resource="logback-base.xml"/>
<property name="log.path" value="logs/epmetuser"/> <!-- 统一调整Logback日志输出目录,执行jvm参数传入。默认./logs/myservice。参数指定方式:-Dlog.dir=/Volumes/data/epmetlog,则会打印到/Volumes/data/epmetlog/myservice。最后不要加/ -->
<property name="log.path" value="${log.dir:-logs}/epmetuser"/>
<springProperty scope="context" name="appname" source="spring.application.name"/> <springProperty scope="context" name="appname" source="spring.application.name"/>
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> <springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/>

13
epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserDao.xml

@ -73,6 +73,19 @@
WHERE id = #{id} WHERE id = #{id}
</update> </update>
<!-- 选择性更新(只更新不为null的) -->
<update id="updateTableSelective">
UPDATE ${tableName}
SET
<foreach collection="map.entrySet()" index="key" item="value" separator=",">
<if test="value != null and value != ''">
${key} = #{value}
</if>
</foreach>
,UPDATED_TIME = NOW()
WHERE id = #{id}
</update>
<select id="selectListMapById" parameterType="map" resultType="map"> <select id="selectListMapById" parameterType="map" resultType="map">
select * from ic_resi_user where del_flag='0' and id=#{icResiUserId} and customer_id=#{customerId} select * from ic_resi_user where del_flag='0' and id=#{icResiUserId} and customer_id=#{customerId}

Loading…
Cancel
Save