| | |
| | | <result column="create_time" property="createTime"/> |
| | | <result column="work_order_no" property="workOrderNo"/> |
| | | <result column="unit_id" property="unitId"/> |
| | | <result column="unit_name" property="unitName"/> |
| | | <result column="unit_contact" property="unitContact"/> |
| | | <result column="unit_contact_phone" property="unitContactPhone"/> |
| | | <result column="yw_people_id" property="ywPeopleId"/> |
| | | <result column="yw_handle_time" property="ywHandleTime"/> |
| | | <result column="yw_result" property="ywResult"/> |
| | |
| | | wo.overtime, |
| | | wo.deduct, |
| | | u.unit_name, |
| | | u.unit_contact, |
| | | u.unit_contact_phone, |
| | | p.yw_person_name, |
| | | tm.name as source, |
| | | GROUP_CONCAT(DISTINCT da.dict_label ORDER BY da.dict_label SEPARATOR ',') AS errorType, |
| | |
| | | LEFT JOIN t_work_order_check_img ci ON ci.work_order_no = wo.work_order_no |
| | | LEFT JOIN t_yw_people p ON wo.yw_people_id = p.id AND p.deleted = 0 |
| | | WHERE |
| | | wo.deleted = 0 |
| | | wo.deleted = 0 and wo.status != 'WAIT_DISTRIBUTE' |
| | | <if test="query.unitId != null"> |
| | | AND wo.unit_id = #{query.unitId} |
| | | </if> |