Commit db97d633587601611bc750d3c9e3fa97910ce51b

Authored by 王富生
1 parent c0592efb

修复不打印完成的-按照类型

urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanMapper.xml
@@ -108,22 +108,22 @@ @@ -108,22 +108,22 @@
108 </foreach> 108 </foreach>
109 </if> 109 </if>
110 <!--状态 1:未完成;2:已完成;3:已失效--> 110 <!--状态 1:未完成;2:已完成;3:已失效-->
111 - and c.finish_state =a.finish_state 111 + -- and c.finish_state =a.finish_state
112 <if test="req.finishState == 1"> 112 <if test="req.finishState == 1">
113 - and a.finish_state = 1 113 + and c.finish_state = 1
114 <![CDATA[and c.begin_time <= #{req.localDateTime} 114 <![CDATA[and c.begin_time <= #{req.localDateTime}
115 and c.end_time >= #{req.localDateTime}]]> 115 and c.end_time >= #{req.localDateTime}]]>
116 </if> 116 </if>
117 <if test="req.finishState == 2"> 117 <if test="req.finishState == 2">
118 - and a.finish_state = 2 118 + and c.finish_state = 2
119 </if> 119 </if>
120 <if test="req.finishState == 3"> 120 <if test="req.finishState == 3">
121 - and a.finish_state = 3 121 + and c.finish_state = 3
122 <![CDATA[and c.begin_time <= #{req.localDateTime} 122 <![CDATA[and c.begin_time <= #{req.localDateTime}
123 and c.end_time >= #{req.localDateTime}]]> 123 and c.end_time >= #{req.localDateTime}]]>
124 </if> 124 </if>
125 <if test="req.finishState == 4"> 125 <if test="req.finishState == 4">
126 - and a.finish_state = 4 126 + and c.finish_state = 4
127 <![CDATA[and c.begin_time <= #{req.localDateTime} 127 <![CDATA[and c.begin_time <= #{req.localDateTime}
128 and c.end_time >= #{req.localDateTime}]]> 128 and c.end_time >= #{req.localDateTime}]]>
129 </if> 129 </if>
urbanops-server/src/main/resources/application.yaml
@@ -3,7 +3,7 @@ spring: @@ -3,7 +3,7 @@ spring:
3 name: urbanops-server 3 name: urbanops-server
4 4
5 profiles: 5 profiles:
6 - active: dev 6 + active: prod
7 7
8 main: 8 main:
9 allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。 9 allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。