Commit a5805f7061fd8a4d78c0d593c1b0ffdf2241d8a0

Authored by 王富生
1 parent dd1c75c7

优化

urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanDetailMapper.xml
... ... @@ -54,6 +54,8 @@
54 54 </when>
55 55 <when test="req.finishState == 3">
56 56 AND b.finish_state = 3
  57 + <![CDATA[AND b.begin_time <= #{req.localDateTime}
  58 + AND b.end_time >= #{req.localDateTime}]]>
57 59 </when>
58 60 <when test="req.finishState == 4">
59 61 AND b.finish_state = 4
... ...
urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanMapper.xml
... ... @@ -61,6 +61,8 @@
61 61 </if>
62 62 <if test="req.finishState == 3">
63 63 AND b.finish_state = 3
  64 + <![CDATA[AND b.begin_time <= #{req.localDateTime}
  65 + AND b.end_time >= #{req.localDateTime}]]>
64 66 </if>
65 67 <if test="req.finishState == 4">
66 68 AND b.finish_state = 4
... ...
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanDetailMapper.xml
... ... @@ -56,9 +56,13 @@
56 56 </when>
57 57 <when test="req.finishState == 3">
58 58 AND c.finish_state = 3
  59 + <![CDATA[AND c.begin_time <= #{req.localDateTime}
  60 + AND c.end_time >= #{req.localDateTime}]]>
59 61 </when>
60 62 <when test="req.finishState == 4">
61 63 AND c.finish_state = 4
  64 + <![CDATA[AND c.begin_time <= #{req.localDateTime}
  65 + AND c.end_time >= #{req.localDateTime}]]>
62 66 </when>
63 67 </choose>
64 68 </select>
... ...
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanMapper.xml
... ... @@ -60,9 +60,12 @@
60 60 </when>
61 61 <when test="req.finishState == 2">
62 62 AND b.finish_state = 2
  63 +
63 64 </when>
64 65 <when test="req.finishState == 3">
65 66 AND b.finish_state = 3
  67 + <![CDATA[AND b.begin_time <= #{req.localDateTime}
  68 + AND b.end_time >= #{req.localDateTime}]]>
66 69 </when>
67 70 <when test="req.finishState == 4">
68 71 AND b.finish_state = 4
... ... @@ -123,6 +126,8 @@
123 126 </if>
124 127 <if test="req.finishState == 3">
125 128 and a.finish_state = 3
  129 + <![CDATA[and c.begin_time <= #{req.localDateTime}
  130 + and c.end_time >= #{req.localDateTime}]]>
126 131 </if>
127 132 <if test="req.finishState == 4">
128 133 and a.finish_state = 4
... ...