| | |
| | | <where> |
| | | AND ord.deleted = 0 |
| | | |
| | | <if test = "dispatcherId != null"> |
| | | AND ord.dispatcher_id = #{dispatcherId} |
| | | </if> |
| | | |
| | | <if test = "inspectorId != null"> |
| | | AND ord.inspector_id = #{inspectorId} |
| | | </if> |
| | | |
| | | <if test = "dispatcher != null and dispatcher !=''"> |
| | | AND us1.name like CONCAT('%',#{dispatcher},'%') |
| | | </if> |
| | | |
| | | <if test = "inspector != null and inspector !=''"> |
| | | AND us2.name like CONCAT('%',#{inspector},'%') |
| | | </if> |
| | | |
| | | <if test = "state != null"> |
| | | AND ord.state = #{state} |
| | | </if> |
| | | |
| | | <if test = "timeStart != null and timeStop != null"> |
| | |
| | | <where> |
| | | AND ord.deleted = 0 |
| | | |
| | | <if test = "dispatcherId != null"> |
| | | AND ord.dispatcher_id = #{dispatcherId} |
| | | </if> |
| | | |
| | | <if test = "inspectorId != null"> |
| | | AND ord.inspector_id = #{inspectorId} |
| | | </if> |
| | | |
| | | <if test = "dispatcher != null and dispatcher !=''"> |
| | | AND us1.name like CONCAT('%',#{dispatcher},'%') |
| | | </if> |
| | |
| | | AND us2.name like CONCAT('%',#{inspector},'%') |
| | | </if> |
| | | |
| | | <if test = "state != null"> |
| | | AND ord.state = #{state} |
| | | </if> |
| | | |
| | | <if test = "timeStart != null and timeStop != null"> |
| | | AND ord.dispatch_time BETWEEN #{timeStart} AND #{timeStop} |
| | | </if> |