UPDATE nxdt_ii.lk_cont_person SET status ='1', user_id =#{userId}, task_id = #{taskId} WHERE id = #{id} insert into nxdt_ii.pt_check_task(task_id, proc_ins_id, task_type, process_state, is_pass, create_id, create_user, version, level, pro_id, parent_uuid,examine_id) values (#{taskId}, #{processInstanceId}, #{taskType}, #{processState}, #{isPass}, #{createId}, #{createUser}, #{version}, #{level}, #{proId}, #{parentUuid},#{examineId}) insert into nxdt_ii.pt_check_task_details (task_id, proc_inst_id, version,repeated_submit,sort) values (#{taskId}, #{processInstanceId}, #{version},#{repeatedSubmit},#{sort}) update nxdt_ii.pt_check_task set proc_ins_id = #{processInstanceId}, repeated_submit = repeated_submit +1, version = #{version} where task_id = #{taskId} update nxdt_ii.lk_cont_person set into_status =#{enterStatus}, task_id = #{taskId}, proc_inst_id = #{processInstanceId} where uuid = #{personId} delete from nxdt_ii.pt_check_person where task_id = #{taskId} delete from nxdt_ii.pt_check_person_remark where task_id = #{taskId} and audit_status=2 delete from nxdt_ii.lk_audit_user_info where task_id = #{taskId} insert into nxdt_ii.pt_check_person(task_id, user_id,exam_type,type,sort,version) values (#{item.taskId},#{item.checkPerson},#{item.examineType},#{item.isActive},#{item.sort},#{item.version}) update nxdt_ii.lk_cont_person set into_status =#{statusType}, admission_date = DATE(NOW()) where uuid = #{uuid} update nxdt_ii.lk_pro_cont set into_status = #{enterStatus}, task_id = #{taskId}, proc_inst_id = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_pro_cont set into_status =#{statusType} where uuid = #{uuid} update nxdt_ii.lk_pro_sup set status = #{enterStatus}, task_id = #{taskId}, proc_inst_id = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_pro_sup set status =#{statusType} where uuid = #{uuid} update nxdt_ii.lk_cont_sub set into_status = #{enterStatus}, task_id = #{taskId}, proc_inst_id = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_cont_sub set into_status =#{statusType} where uuid = #{uuid} update nxdt_ii.lk_pro_cont set start_status = #{enterStatus}, task_id_start = #{taskId}, proc_inst_id_start = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_pro_cont set start_status =#{statusType} where uuid = #{uuid} update nxdt_ii.lk_cont_person set into_status =#{statusType}, admission_date = DATE(NOW()) where pro_id = #{proId} and cont_uuid = #{consUuid} and sub_uuid = #{subUuid} update nxdt_ii.lk_cont_sub set out_status = #{enterStatus}, task_id_out = #{taskId}, proc_inst_id_out = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_cont_sub set out_status =#{statusType} where uuid = #{uuid} update nxdt_ii.pt_pro_tools set status =#{statusType} where uuid = #{uuid} update nxdt_ii.pt_pro_tools set status = #{enterStatus}, task_id = #{taskId}, proc_inst_id = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_cont_person set out_status =#{statusType}, departure_date = DATE(NOW()) where uuid = #{uuid} update nxdt_ii.lk_cont_person set out_status = #{enterStatus}, task_id_out = #{taskId}, proc_inst_id_out = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_pro_cont set out_status = #{enterStatus}, task_id_out = #{taskId}, proc_inst_id_out = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_pro_cont set out_status =#{statusType} where uuid = #{uuid} update nxdt_ii.lk_cont_file set status =#{statusType} where uuid = #{uuid} update nxdt_ii.lk_cont_file set status = #{enterStatus}, task_id = #{taskId}, proc_inst_id = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_sup_person set status = #{statusType}, into_status = #{statusType}, admission_date = DATE(NOW()) where sup_uuid = (select sup_uuid from nxdt_ii.lk_pro_sup where uuid = #{uuid}) update nxdt_ii.sys_user set status = '0' where parent_uuid = (select sup_uuid from nxdt_ii.lk_pro_sup where uuid = #{uuid}) update nxdt_ii.sys_user set status = '0' where parent_uuid = (select cont_uuid from nxdt_ii.lk_pro_cont where uuid = #{uuid}) update nxdt_ii.sys_user set status = '0' where parent_uuid = (select sub_uuid from nxdt_ii.lk_cont_sub where uuid = #{uuid}) update nxdt_ii.pt_pro_tools set status = '3', admission_date = DATE(NOW()) where pro_id = #{proId} update nxdt_ii.lk_cont_person set out_status = '3', departure_date = DATE(NOW()), exit_reason = '分包商统一出场' where sub_uuid = #{subUuid} and pro_id = #{proId} and cont_uuid = #{consUuid} and out_status != '3' update nxdt_ii.lk_cont_person set out_status = '3', departure_date = DATE(NOW()), exit_reason = '承包包商统一出场' where pro_id = #{proId} and cont_uuid = #{consUuid} and out_status != '3' update nxdt_ii.lk_cont_sub set out_status = '3', departure_date = DATE(NOW()), exit_reason = '承包商统一出场' where pro_id = #{proId} and cont_uuid = #{consUuid} and out_status != '3' update nxdt_ii.pt_project_info set pro_status = '4' where pro_id = #{proId} update nxdt_ii.pt_project_info set pro_status = '3' where pro_id = #{proId} insert into nxdt_ii.pt_check_comment(task_id, proc_inst_id, user_id, comment, agree, reject) values (#{taskId}, #{processInstanceId}, #{userId}, #{comment}, #{agree}, #{rejectReason}) replace into nxdt_ii.pt_check_person_remark( task_id, user_id,type,version,audit_status,remark,audit_time,audit_remark )values (#{taskId},#{userId},#{type},#{vision},#{agree},#{rejectReason},now(),#{reason}) replace into nxdt_ii.lk_audit_user_info( task_id,audit_user ,audit_status ,is_audit ,version ,is_now ) values (#{taskId}, #{userId} ,#{state} ,#{isAudit} , #{version} ,#{isNow} ) update nxdt_ii.pt_check_task set is_pass = #{isPass} where task_id = #{taskId} update nxdt_ii.wz_violation_info set punish_status = '1', check_status = #{enterStatus}, task_id = #{taskId}, proc_inst_id = #{processInstanceId}, reject_reason = '' where violation_id = #{uuid} update nxdt_ii.wz_violation_info set check_status = #{statusType}, reject_reason = #{rejectReason} where violation_id = #{uuid} update nxdt_ii.yh_pitfall_info set check_state = #{enterStatus}, task_id = #{taskId}, proc_inst_id = #{processInstanceId}, reject_reason = '' where pitfall_id = #{uuid} update nxdt_ii.yh_pitfall_info set check_state = #{statusType}, reject_reason = #{rejectReason} ,is_check = '0' where pitfall_id = #{uuid} update nxdt_ii.yh_pitfall_info set delay_check_state = #{enterStatus}, delay_task_id = #{taskId}, delay_proc_inst_id = #{processInstanceId}, delay_reject_reason = '' where pitfall_id = #{uuid} UPDATE nxdt_ii.yh_pitfall_info SET delay_check_state = #{statusType}, is_delay = CASE WHEN #{statusType} != 3 THEN '0' ELSE is_delay END, delay_reject_reason = CASE WHEN #{statusType} != 3 THEN #{rejectReason} ELSE delay_reject_reason END, delay_time = CASE WHEN #{statusType} != 3 THEN NULL ELSE delay_time END WHERE pitfall_id = #{uuid}; UPDATE nxdt_ii.yh_pitfall_info SET check_status = #{checkStatus}, is_delay = '0' WHERE pitfall_id = #{id} update nxdt_ii.sys_user set status = '0' where phonenumber = (SELECT pcp.phone FROM nxdt_ii.lk_cont_person lcp LEFT JOIN nxdt_ii.pt_cons_person pcp ON lcp.cons_persion_id = pcp.cons_user_id WHERE lcp.uuid = #{uuid}) update nxdt_ii.lk_audit_user_info SET audit_status=#{state},is_audit=#{isAudit},is_now=#{isNow} where task_id=#{taskId} and audit_user=#{userId} update nxdt_ii.lk_sup_person set into_status =#{enterStatus}, task_id_into = #{taskId}, proc_inst_id_into = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.lk_sup_person set out_status =#{enterStatus}, task_id_out = #{taskId}, proc_inst_id_out = #{processInstanceId} where uuid = #{uuid} update nxdt_ii.sys_user set status = '0' where parent_uuid = (select sup_uuid from nxdt_ii.lk_sup_person where uuid = #{uuid}) update nxdt_ii.lk_sup_person set into_status =#{statusType}, admission_date = DATE(NOW()) where uuid = #{uuid} update nxdt_ii.lk_sup_person set out_status =#{statusType}, departure_date = DATE(NOW()) where uuid = #{uuid}