id, uuid, delete_status, work_type, work_status, unit_id, unit_uuid, exec_classgroup_id, exec_dep_id, check_cycle, check_cycle_unit, notice_time, notice_time_unit, valid_time, valid_time_unit, next_notice_time, next_check_time, last_check_time, first_start_time update safe_check_work set delete_status = #{work.deleteStatus} id = #{work.id} #{workStatus} update safe_check_work set work_status = #{work.workStatus} where id = #{work.id} and delete_status = #{status} update safe_check_work work_type = #{work.workType}, work_status = #{work.workStatus}, exec_classgroup_id = #{work.execClassgroupId}, exec_dep_id = #{work.execDepId}, first_start_time = #{work.firstStartTime}, next_notice_time = #{work.nextNoticeTime}, next_check_time = #{work.nextCheckTime}, check_cycle = #{work.checkCycle}, check_cycle_unit = #{work.checkCycleUnit}, notice_time = #{work.noticeTime}, notice_time_unit = #{work.noticeTimeUnit}, valid_time = #{work.validTime}, valid_time_unit = #{work.validTimeUnit}, where id = #{work.id} and delete_status = #{status} update safe_check_work next_notice_time = #{work.nextNoticeTime}, next_check_time = #{work.nextCheckTime}, last_check_time = #{work.lastCheckTime}, work_status = #{newStatus}, where id = #{work.id} and delete_status = 0