Commit 8fc67012b5d98abab2822359023f8a52e8e0f0e7

Authored by 颜惠青
2 parents a83fd943 833dcd73

Merge remote-tracking branch 'origin/master'

urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanMapper.xml
@@ -47,21 +47,21 @@ @@ -47,21 +47,21 @@
47 <!-- 状态过滤 --> 47 <!-- 状态过滤 -->
48 <choose> 48 <choose>
49 <when test="req.finishState == 1"> 49 <when test="req.finishState == 1">
50 - AND b.finish_state = 1 50 + AND a.finish_state = 1
51 <![CDATA[AND b.begin_time <= #{req.localDateTime} 51 <![CDATA[AND b.begin_time <= #{req.localDateTime}
52 AND b.end_time >= #{req.localDateTime}]]> 52 AND b.end_time >= #{req.localDateTime}]]>
53 </when> 53 </when>
54 <when test="req.finishState == 2"> 54 <when test="req.finishState == 2">
55 - AND b.finish_state = 2 55 + AND a.finish_state = 2
56 56
57 </when> 57 </when>
58 <when test="req.finishState == 3"> 58 <when test="req.finishState == 3">
59 - AND b.finish_state = 3 59 + AND a.finish_state = 3
60 <![CDATA[AND b.begin_time <= #{req.localDateTime} 60 <![CDATA[AND b.begin_time <= #{req.localDateTime}
61 AND b.end_time >= #{req.localDateTime}]]> 61 AND b.end_time >= #{req.localDateTime}]]>
62 </when> 62 </when>
63 <when test="req.finishState == 4"> 63 <when test="req.finishState == 4">
64 - AND b.finish_state = 4 64 + AND a.finish_state = 4
65 <![CDATA[AND b.begin_time <= #{req.localDateTime} 65 <![CDATA[AND b.begin_time <= #{req.localDateTime}
66 AND b.end_time >= #{req.localDateTime}]]> 66 AND b.end_time >= #{req.localDateTime}]]>
67 </when> 67 </when>
@@ -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 # 允许循环依赖,因为项目是三层架构,无法避免这个情况。