id, dispatcher_id, inspector_id, task_type_id, task_content, complete_criteria, dead_line, complete_time, dispatch_time, client_report_id, inspector_report_id, `state`, reject_times, deleted delete from ope_work_order where id = #{id,jdbcType=BIGINT} insert into ope_work_order (id, dispatcher_id, inspector_id, task_type_id, task_content, complete_criteria, dead_line, complete_time, dispatch_time, client_report_id, inspector_report_id, `state`, reject_times, deleted) values (#{id,jdbcType=BIGINT}, #{dispatcherId,jdbcType=BIGINT}, #{inspectorId,jdbcType=BIGINT}, #{taskTypeId,jdbcType=BIGINT}, #{taskContent,jdbcType=VARCHAR}, #{completeCriteria,jdbcType=VARCHAR}, #{deadLine,jdbcType=TIMESTAMP}, #{completeTime,jdbcType=TIMESTAMP}, #{dispatchTime,jdbcType=TIMESTAMP}, #{clientReportId,jdbcType=BIGINT}, #{inspectorReportId,jdbcType=BIGINT}, #{state,jdbcType=TINYINT}, #{rejectTimes,jdbcType=INTEGER}, #{deleted,jdbcType=BIGINT}) insert into ope_work_order id, dispatcher_id, inspector_id, task_type_id, task_content, complete_criteria, dead_line, complete_time, dispatch_time, client_report_id, inspector_report_id, `state`, reject_times, deleted, #{id,jdbcType=BIGINT}, #{dispatcherId,jdbcType=BIGINT}, #{inspectorId,jdbcType=BIGINT}, #{taskTypeId,jdbcType=BIGINT}, #{taskContent,jdbcType=VARCHAR}, #{completeCriteria,jdbcType=VARCHAR}, #{deadLine,jdbcType=TIMESTAMP}, #{completeTime,jdbcType=TIMESTAMP}, #{dispatchTime,jdbcType=TIMESTAMP}, #{clientReportId,jdbcType=BIGINT}, #{inspectorReportId,jdbcType=BIGINT}, #{state,jdbcType=TINYINT}, #{rejectTimes,jdbcType=INTEGER}, #{deleted,jdbcType=BIGINT}, update ope_work_order dispatcher_id = #{dispatcherId,jdbcType=BIGINT}, inspector_id = #{inspectorId,jdbcType=BIGINT}, task_type_id = #{taskTypeId,jdbcType=BIGINT}, task_content = #{taskContent,jdbcType=VARCHAR}, complete_criteria = #{completeCriteria,jdbcType=VARCHAR}, dead_line = #{deadLine,jdbcType=TIMESTAMP}, complete_time = #{completeTime,jdbcType=TIMESTAMP}, dispatch_time = #{dispatchTime,jdbcType=TIMESTAMP}, client_report_id = #{clientReportId,jdbcType=BIGINT}, inspector_report_id = #{inspectorReportId,jdbcType=BIGINT}, `state` = #{state,jdbcType=TINYINT}, reject_times = #{rejectTimes,jdbcType=INTEGER}, deleted = #{deleted,jdbcType=BIGINT}, where id = #{id,jdbcType=BIGINT} update ope_work_order set dispatcher_id = #{dispatcherId,jdbcType=BIGINT}, inspector_id = #{inspectorId,jdbcType=BIGINT}, task_type_id = #{taskTypeId,jdbcType=BIGINT}, task_content = #{taskContent,jdbcType=VARCHAR}, complete_criteria = #{completeCriteria,jdbcType=VARCHAR}, dead_line = #{deadLine,jdbcType=TIMESTAMP}, complete_time = #{completeTime,jdbcType=TIMESTAMP}, dispatch_time = #{dispatchTime,jdbcType=TIMESTAMP}, client_report_id = #{clientReportId,jdbcType=BIGINT}, inspector_report_id = #{inspectorReportId,jdbcType=BIGINT}, `state` = #{state,jdbcType=TINYINT}, reject_times = #{rejectTimes,jdbcType=INTEGER}, deleted = #{deleted,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} UPDATE ope_work_order SET deleted = UNIX_TIMESTAMP() WHERE deleted = 0 AND id = #{workOrderId}