| | |
| | | <if test="query.status != null"> |
| | | and terr.status = #{query.status} |
| | | </if> |
| | | <if test="query.status == null"> |
| | | and terr.status != -1 |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | AND terr.create_time BETWEEN #{query.startTime} AND #{query.endTime} |
| | | </if> |
| | |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="query.status == null"> |
| | | and terr.status != -1 |
| | | </if> |
| | | <if test="query.roleType != null and (query.roleType == 3 or query.roleType == 4 or query.roleType == 5)"> |
| | | AND terr.status != 4 |
| | | </if> |
| | | AND terr.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY terr.create_time DESC |