Commit db97d633587601611bc750d3c9e3fa97910ce51b
1 parent
c0592efb
修复不打印完成的-按照类型
Showing
2 changed files
with
6 additions
and
6 deletions
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> | ... | ... |