Commit db97d633587601611bc750d3c9e3fa97910ce51b

Authored by 王富生
1 parent c0592efb

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

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