| | |
| | | SELECT wo.id,wo.work_order_no,wo.unit_id,woet.error_name as errorType,woet.create_time as distributeTime |
| | | FROM t_work_order wo |
| | | LEFT JOIN t_work_order_error_type woet ON woet.work_order_no = wo.work_order_no |
| | | LEFT JOIN t_work_order_auditing_record woar ON woar.work_order_no = wo.work_order_no |
| | | LEFT JOIN t_work_order_auditing_record woar ON woar.work_order_no = wo.work_order_no and woar.result = #{auditStatus} |
| | | WHERE wo.deleted = 0 AND wo.deduct = 0 AND wo.status = #{status} |
| | | AND woet.error_name in |
| | | <foreach collection="errorList" item="error" separator="," open="(" close=")"> |
| | | #{error} |
| | | </foreach> |
| | | AND woar.create_time between #{startTime} and #{endTime} and woar.result = #{auditStatus} |
| | | AND woar.create_time between #{startTime} and #{endTime} |
| | | </select> |
| | | |
| | | <update id="updateMany"> |