| | |
| | | <if test="query.status != null"> |
| | | AND wo.status = #{query.status} |
| | | </if> |
| | | <if test="query.errorType != null and query.errType != ''"> |
| | | <if test="query.errorType != null and query.errorType != ''"> |
| | | AND wo.error_type = #{query.errorType} |
| | | </if> |
| | | <if test="query.start != null"> |
| | |
| | | LEFT JOIN t_yw_people p ON wo.yw_people_id = p.id and p.deleted = '0' |
| | | where |
| | | wo.deleted = '0' |
| | | and wo.status = 'WAIT_DISTRIBUTE' |
| | | <if test="query.unitId != null"> |
| | | AND wo.unit_id = #{query.unitId} |
| | | </if> |
| | | <if test="query.status != null and query.status != ''"> |
| | | AND wo.status = #{query.status} |
| | | </if> |
| | | ORDER BY wo.create_time DESC |
| | | </select> |
| | | |