| | |
| | | <if test="createTimeStart != null and createTimeStart != '' and createTimeEnd != null and createTimeEnd != ''"> |
| | | AND ci.create_time BETWEEN #{createTimeStart} AND #{createTimeEnd} |
| | | </if> |
| | | <if test="finishTimeStart != null and finishTimeStart != '' and finishTimeEnd != null and finishTimeEnd != ''"> |
| | | AND cui.close_time BETWEEN #{finishTimeStart} AND #{finishTimeEnd} |
| | | </if> |
| | | <if test="caseType != null and caseType != ''"> |
| | | AND CI."case_type" = #{caseType} |
| | | </if> |
| | | <if test="queCity != null and queCity != ''"> |
| | | AND unit.city = #{queCity} |
| | | </if> |
| | |
| | | <if test="queRoad != null and queRoad != ''"> |
| | | AND unit.road = #{queRoad} |
| | | </if> |
| | | <if test="isFinish != null and isFinish != ''"> |
| | | <if test="isFinish == 'true'"> |
| | | AND CI."process" == '6' |
| | | </if> |
| | | <if test="isFinish == 'false'"> |
| | | AND CI."process" != '6' |
| | | </if> |
| | | </if> |
| | | <if test="groupByCaseType != null and groupByCaseType != ''"> |
| | | GROUP BY case_type_first_name |
| | | </if> |
| | | <if test="groupByArea != null and groupByArea != ''"> |
| | | <!-- AND road_name is not NULL--> |
| | | GROUP BY area_name |
| | | </if> |
| | | <if test="groupByRoad != null and groupByRoad != ''"> |
| | | <!-- AND road_name is not NULL--> |
| | | GROUP BY road_name |
| | | </if> |
| | | <if test="groupByTime != null and groupByTime != ''"> |