Merge remote-tracking branch 'origin/master'
正在显示
7 个修改的文件
包含
32 行增加
和
15 行删除
... | @@ -66,7 +66,7 @@ | ... | @@ -66,7 +66,7 @@ |
66 | <aliyun-java-sdk-core.version>3.2.3</aliyun-java-sdk-core.version> | 66 | <aliyun-java-sdk-core.version>3.2.3</aliyun-java-sdk-core.version> |
67 | <aliyun-java-sdk-dysmsapi.version>1.0.0</aliyun-java-sdk-dysmsapi.version> | 67 | <aliyun-java-sdk-dysmsapi.version>1.0.0</aliyun-java-sdk-dysmsapi.version> |
68 | <kingtroldata.core.version>2.0.3</kingtroldata.core.version> | 68 | <kingtroldata.core.version>2.0.3</kingtroldata.core.version> |
69 | <kingtroldata.flow.version>2.0.4</kingtroldata.flow.version> | 69 | <kingtroldata.flow.version>2.0.6</kingtroldata.flow.version> |
70 | <flowable.version>6.4.2</flowable.version> | 70 | <flowable.version>6.4.2</flowable.version> |
71 | <log4j2.version>2.17.0</log4j2.version> | 71 | <log4j2.version>2.17.0</log4j2.version> |
72 | </properties> | 72 | </properties> |
... | @@ -155,11 +155,10 @@ | ... | @@ -155,11 +155,10 @@ |
155 | <groupId>org.springframework.boot</groupId> | 155 | <groupId>org.springframework.boot</groupId> |
156 | <artifactId>spring-boot-starter-actuator</artifactId> | 156 | <artifactId>spring-boot-starter-actuator</artifactId> |
157 | </dependency> | 157 | </dependency> |
158 | <!-- <dependency> | 158 | <dependency> |
159 | <groupId>org.springframework.boot</groupId> | 159 | <groupId>org.springframework.boot</groupId> |
160 | <artifactId>spring-boot-devtools</artifactId> | 160 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
161 | <optional>true</optional> | 161 | </dependency> |
162 | </dependency> --> | ||
163 | 162 | ||
164 | <!-- commons --> | 163 | <!-- commons --> |
165 | <dependency> | 164 | <dependency> | ... | ... |
... | @@ -101,7 +101,7 @@ spring: | ... | @@ -101,7 +101,7 @@ spring: |
101 | driver-class-name: com.mysql.jdbc.Driver | 101 | driver-class-name: com.mysql.jdbc.Driver |
102 | # 多数据源配置 | 102 | # 多数据源配置 |
103 | pg-db: | 103 | pg-db: |
104 | url: jdbc:postgresql://20.0.99.4:10086/postgres?useUnicode=true&characterEncoding=UTF8 | 104 | url: jdbc:postgresql://112.123.135.140:10086/postgres?useUnicode=true&characterEncoding=UTF8 |
105 | username: postgres | 105 | username: postgres |
106 | password: jkauto@123 | 106 | password: jkauto@123 |
107 | driver-class-name: org.postgresql.Driver | 107 | driver-class-name: org.postgresql.Driver | ... | ... |
... | @@ -65,7 +65,6 @@ public class WorkAnalysisController { | ... | @@ -65,7 +65,6 @@ public class WorkAnalysisController { |
65 | } | 65 | } |
66 | endTime = DateUtils.checkDateByCurrentDate(endTime);//判断是否当前月,然后与当前时间对比 | 66 | endTime = DateUtils.checkDateByCurrentDate(endTime);//判断是否当前月,然后与当前时间对比 |
67 | 67 | ||
68 | |||
69 | String sql = "select d.id 'depart_id' , d.depart_name , (DATEDIFF('"+endTime+"', '"+startTime+"') +"+index+") 'day_num' , (month('"+endTime+"') - month('"+startTime+"')+"+index+" ) month_num,ifnull(aaa.count,0) 'nh_num' ,ifnull(bbb.count,0) 'szsl_num' ,ifnull(ccc.count,0) 'hy_num' ,ifnull(ddd.count,0) 'yy_month_num',ifnull(fff.count,0) 'df_month_num' ,ifnull(ggg.count,0) 'year_target_num' from sys_depart d "; | 68 | String sql = "select d.id 'depart_id' , d.depart_name , (DATEDIFF('"+endTime+"', '"+startTime+"') +"+index+") 'day_num' , (month('"+endTime+"') - month('"+startTime+"')+"+index+" ) month_num,ifnull(aaa.count,0) 'nh_num' ,ifnull(bbb.count,0) 'szsl_num' ,ifnull(ccc.count,0) 'hy_num' ,ifnull(ddd.count,0) 'yy_month_num',ifnull(fff.count,0) 'df_month_num' ,ifnull(ggg.count,0) 'year_target_num' from sys_depart d "; |
70 | sql += getWorkProgressSql(departIds, startTime, endTime, month); | 69 | sql += getWorkProgressSql(departIds, startTime, endTime, month); |
71 | sql += " where d.depart_type =1 "; | 70 | sql += " where d.depart_type =1 "; | ... | ... |
1 | package com.skua.modules.equipment.entity; | 1 | package com.skua.modules.equipment.entity; |
2 | 2 | ||
3 | import com.baomidou.mybatisplus.annotation.IdType; | 3 | import com.baomidou.mybatisplus.annotation.IdType; |
4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
4 | import com.baomidou.mybatisplus.annotation.TableId; | 5 | import com.baomidou.mybatisplus.annotation.TableId; |
5 | import com.baomidou.mybatisplus.annotation.TableName; | 6 | import com.baomidou.mybatisplus.annotation.TableName; |
6 | import com.fasterxml.jackson.annotation.JsonFormat; | 7 | import com.fasterxml.jackson.annotation.JsonFormat; |
8 | import com.skua.core.aspect.annotation.Dict; | ||
7 | import io.swagger.annotations.ApiModel; | 9 | import io.swagger.annotations.ApiModel; |
8 | import io.swagger.annotations.ApiModelProperty; | 10 | import io.swagger.annotations.ApiModelProperty; |
9 | import lombok.Data; | 11 | import lombok.Data; |
... | @@ -96,4 +98,9 @@ public class EquipmentMaintainTask { | ... | @@ -96,4 +98,9 @@ public class EquipmentMaintainTask { |
96 | @ApiModelProperty(value = "修改时间") | 98 | @ApiModelProperty(value = "修改时间") |
97 | private Date updateTime; | 99 | private Date updateTime; |
98 | private Integer delFlag; | 100 | private Integer delFlag; |
101 | |||
102 | @TableField(exist = false) | ||
103 | @ApiModelProperty(value = "维保类型") | ||
104 | @Dict(dicCode = "maintenance_type") | ||
105 | private String maintenanceType; | ||
99 | } | 106 | } | ... | ... |
sk-module-equipment/src/main/java/com/skua/modules/equipment/mapper/EquipmentMaintainPlanMapper.java
... | @@ -24,9 +24,13 @@ public interface EquipmentMaintainPlanMapper extends BaseMapper<EquipmentMaintai | ... | @@ -24,9 +24,13 @@ public interface EquipmentMaintainPlanMapper extends BaseMapper<EquipmentMaintai |
24 | void addPlanStandard(@Param("id") String id, @Param("planId") String planId, @Param("standardId") String standardId); | 24 | void addPlanStandard(@Param("id") String id, @Param("planId") String planId, @Param("standardId") String standardId); |
25 | 25 | ||
26 | void deletePlanStandard(@Param("planId") String planId); | 26 | void deletePlanStandard(@Param("planId") String planId); |
27 | void deletePlan(@Param("planId") String planId); | 27 | |
28 | void deletePlan(@Param("planId") String planId); | ||
29 | |||
28 | void addPlanSparePart(@Param("id") String id, @Param("planId") String planId, @Param("sparePartId") String sparePartId, @Param("num") Integer num); | 30 | void addPlanSparePart(@Param("id") String id, @Param("planId") String planId, @Param("sparePartId") String sparePartId, @Param("num") Integer num); |
29 | void deletePlanSparePart(@Param("planId") String planId); | 31 | |
32 | void deletePlanSparePart(@Param("planId") String planId); | ||
33 | |||
30 | List<EquipmentMaintainPlanVO> queryCustomPageList(Page<EquipmentMaintainPlanVO> pageList, @Param("equipmentMaintainPlanDTO") EquipmentMaintainPlanDTO equipmentMaintainPlanDTO); | 34 | List<EquipmentMaintainPlanVO> queryCustomPageList(Page<EquipmentMaintainPlanVO> pageList, @Param("equipmentMaintainPlanDTO") EquipmentMaintainPlanDTO equipmentMaintainPlanDTO); |
31 | 35 | ||
32 | EquipmentMaintainPlanVO queryById(@Param("id") String id); | 36 | EquipmentMaintainPlanVO queryById(@Param("id") String id); | ... | ... |
... | @@ -37,6 +37,7 @@ | ... | @@ -37,6 +37,7 @@ |
37 | SELECT | 37 | SELECT |
38 | emp.id AS id, | 38 | emp.id AS id, |
39 | emp.depart_id, | 39 | emp.depart_id, |
40 | emp.maintenance_type, | ||
40 | (select depart_name from sys_depart where id=emp.depart_id) AS departName, | 41 | (select depart_name from sys_depart where id=emp.depart_id) AS departName, |
41 | emp.plan_name AS planName, | 42 | emp.plan_name AS planName, |
42 | (select equipment_name from equipment_info where id=epe.equipment_id) AS equipmentName, | 43 | (select equipment_name from equipment_info where id=epe.equipment_id) AS equipmentName, |
... | @@ -63,6 +64,9 @@ | ... | @@ -63,6 +64,9 @@ |
63 | <if test="equipmentMaintainPlanDTO.planName !=null and equipmentMaintainPlanDTO.planName !=''"> | 64 | <if test="equipmentMaintainPlanDTO.planName !=null and equipmentMaintainPlanDTO.planName !=''"> |
64 | and emp.plan_name like concat(concat('%', #{equipmentMaintainPlanDTO.planName}), '%') | 65 | and emp.plan_name like concat(concat('%', #{equipmentMaintainPlanDTO.planName}), '%') |
65 | </if> | 66 | </if> |
67 | <if test="equipmentMaintainPlanDTO.maintenanceType !=null and equipmentMaintainPlanDTO.maintenanceType !=''"> | ||
68 | and emp.maintenance_type=#{equipmentMaintainPlanDTO.maintenanceType} | ||
69 | </if> | ||
66 | <if test="equipmentMaintainPlanDTO.planArrangerId !=null and equipmentMaintainPlanDTO.planArrangerId !=''"> | 70 | <if test="equipmentMaintainPlanDTO.planArrangerId !=null and equipmentMaintainPlanDTO.planArrangerId !=''"> |
67 | and emp.plan_arranger_id = #{equipmentMaintainPlanDTO.planArrangerId} | 71 | and emp.plan_arranger_id = #{equipmentMaintainPlanDTO.planArrangerId} |
68 | </if> | 72 | </if> | ... | ... |
... | @@ -28,6 +28,7 @@ | ... | @@ -28,6 +28,7 @@ |
28 | emp.plan_accepter_id AS planAccepterId, | 28 | emp.plan_accepter_id AS planAccepterId, |
29 | emp.plan_arranger_id, | 29 | emp.plan_arranger_id, |
30 | emt.device_administrator_id AS deviceAdministratorId, | 30 | emt.device_administrator_id AS deviceAdministratorId, |
31 | emp.maintenance_type, | ||
31 | emp.cycle AS cycle, | 32 | emp.cycle AS cycle, |
32 | emp.cycle_unit AS cycleUnit | 33 | emp.cycle_unit AS cycleUnit |
33 | FROM | 34 | FROM |
... | @@ -56,23 +57,26 @@ | ... | @@ -56,23 +57,26 @@ |
56 | and emt. depart_id=#{equipmentMaintainTask.departId} | 57 | and emt. depart_id=#{equipmentMaintainTask.departId} |
57 | </if> | 58 | </if> |
58 | <if test="equipmentMaintainTask.maintainPlanName !=null and equipmentMaintainTask.maintainPlanName !=''"> | 59 | <if test="equipmentMaintainTask.maintainPlanName !=null and equipmentMaintainTask.maintainPlanName !=''"> |
59 | and emt. maintain_plan_name like concat('%',#{equipmentMaintainTask.maintainPlanName},'%') | 60 | and emt.maintain_plan_name like concat('%',#{equipmentMaintainTask.maintainPlanName},'%') |
60 | </if> | 61 | </if> |
61 | <if test="equipmentMaintainTask.maintainMode !=null and equipmentMaintainTask.maintainMode !=''"> | 62 | <if test="equipmentMaintainTask.maintainMode !=null and equipmentMaintainTask.maintainMode !=''"> |
62 | and emt. maintain_mode=#{equipmentMaintainTask.maintainMode} | 63 | and emt.maintain_mode=#{equipmentMaintainTask.maintainMode} |
63 | </if> | 64 | </if> |
64 | <if test="equipmentMaintainTask.maintainLevel !=null and equipmentMaintainTask.maintainLevel !=''"> | 65 | <if test="equipmentMaintainTask.maintainLevel !=null and equipmentMaintainTask.maintainLevel !=''"> |
65 | and emt. maintain_level like concat('%',#{equipmentMaintainTask.maintainLevel},'%') | 66 | and emt.maintain_level like concat('%',#{equipmentMaintainTask.maintainLevel},'%') |
66 | </if> | 67 | </if> |
67 | <if test="equipmentMaintainTask.maintainerId !=null and equipmentMaintainTask.maintainerId !=''"> | 68 | <if test="equipmentMaintainTask.maintainerId !=null and equipmentMaintainTask.maintainerId !=''"> |
68 | and emt. maintainer_id=#{equipmentMaintainTask.maintainerId} | 69 | and emt.maintainer_id=#{equipmentMaintainTask.maintainerId} |
70 | </if> | ||
71 | <if test="equipmentMaintainTask.maintenanceType !=null and equipmentMaintainTask.maintenanceType !=''"> | ||
72 | and emp.maintenance_type = #{equipmentMaintainTask.maintenanceType} | ||
69 | </if> | 73 | </if> |
70 | <if test="equipmentMaintainTask.taskStartTime !=null and equipmentMaintainTask.taskStartTime !=''"> | 74 | <if test="equipmentMaintainTask.taskStartTime !=null and equipmentMaintainTask.taskStartTime !=''"> |
71 | and emt. real_end_time BETWEEN #{equipmentMaintainTask.taskStartTime} and | 75 | and emt.real_end_time BETWEEN #{equipmentMaintainTask.taskStartTime} and |
72 | #{equipmentMaintainTask.taskEndTime} | 76 | #{equipmentMaintainTask.taskEndTime} |
73 | </if> | 77 | </if> |
74 | <if test="equipmentMaintainTask.resultsEnforcement !=null and equipmentMaintainTask.resultsEnforcement !=''"> | 78 | <if test="equipmentMaintainTask.resultsEnforcement !=null and equipmentMaintainTask.resultsEnforcement !=''"> |
75 | and emt. results_enforcement=#{equipmentMaintainTask.resultsEnforcement} | 79 | and emt.results_enforcement=#{equipmentMaintainTask.resultsEnforcement} |
76 | </if> | 80 | </if> |
77 | <if test="equipmentMaintainTask.maintainTime !=null "> | 81 | <if test="equipmentMaintainTask.maintainTime !=null "> |
78 | and #{equipmentMaintainTask.maintainTime}>= emt. maintain_time | 82 | and #{equipmentMaintainTask.maintainTime}>= emt. maintain_time | ... | ... |
-
请 注册 或 登录 后发表评论