Commit e1babab1c7ca7b23c49edfb6edb8430173a88ccf
1 parent
db97d633
养护按照道路-修复状态不一致问题(按照主表state卡条件)
Showing
1 changed file
with
4 additions
and
4 deletions
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> |