Commit e1babab1c7ca7b23c49edfb6edb8430173a88ccf

Authored by 王富生
1 parent db97d633

养护按照道路-修复状态不一致问题(按照主表state卡条件)

urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanMapper.xml
... ... @@ -47,21 +47,21 @@
47 47 <!-- 状态过滤 -->
48 48 <choose>
49 49 <when test="req.finishState == 1">
50   - AND b.finish_state = 1
  50 + AND a.finish_state = 1
51 51 <![CDATA[AND b.begin_time <= #{req.localDateTime}
52 52 AND b.end_time >= #{req.localDateTime}]]>
53 53 </when>
54 54 <when test="req.finishState == 2">
55   - AND b.finish_state = 2
  55 + AND a.finish_state = 2
56 56  
57 57 </when>
58 58 <when test="req.finishState == 3">
59   - AND b.finish_state = 3
  59 + AND a.finish_state = 3
60 60 <![CDATA[AND b.begin_time <= #{req.localDateTime}
61 61 AND b.end_time >= #{req.localDateTime}]]>
62 62 </when>
63 63 <when test="req.finishState == 4">
64   - AND b.finish_state = 4
  64 + AND a.finish_state = 4
65 65 <![CDATA[AND b.begin_time <= #{req.localDateTime}
66 66 AND b.end_time >= #{req.localDateTime}]]>
67 67 </when>
... ...