INSERT INTO pt_cons_person (cons_name, sex, age, phone, native, id_card, nation, home_address, address, post, work_type, face_path, person_type, create_time, update_time, is_active) VALUES (#{consName},#{sex},#{age},#{phone},#{natives},#{idCard},#{nation},#{homeAddress},#{address},#{post},#{workType},#{facePath},'2',now(),now(),'1') INSERT INTO pt_cons_information (uuid, pro_id, from_type, information_type, information_path, information_name, information_size, information_user_id, information_user_name, create_time, is_active) VALUES (#{uuid}, #{proId}, #{fromType}, #{informationType}, #{filePath}, #{fileName}, #{fileSize}, #{createId}, #{createUser}, now(), '1') INSERT INTO lk_cont_person (pro_id, cont_uuid, cons_persion_id, sub_uuid, uuid, admission_date, into_status, out_status) VALUES (#{bean.proId}, #{bean.contUuid}, #{bean.consUserId}, #{bean.subUuid}, #{bean.uuid}, now(), '0', '0') INSERT INTO sys_user (user_name, nick_name, dept_id, id_card, phonenumber, password, user_type, parent_uuid, status, del_flag, create_by, create_time, login_type, sex) VALUES (#{phone}, #{consName}, #{deptId}, #{idCard}, #{phone}, #{password}, #{userType}, #{parentUuid}, '1', '0', #{createId}, now(), '1,2,3', #{sex}) update pt_cons_person set is_active = '0' where cons_user_id = #{id} UPDATE pt_flow_process SET is_active = '0' WHERE examine_id IN #{addressId} DELETE FROM pt_check_configuration_details WHERE examine_id = #{examineId} UPDATE pt_cons_information SET is_active = '0' WHERE uuid = #{uuid} DELETE FROM lk_pro_examine_configuration WHERE examine_id IN #{addressId} insert into pt_check_task( task_name,process_id,process_state,int_task,ext_task,is_pass,create_user,create_id,version ) values ( #{taskName},#{processId},#{processState},#{taskId},#{extTask},#{isPass},#{createUser},#{createId},#{version} ) insert into pt_flow_process( send_from,examine_name,examine_type,business_type,examine_mark,create_time,update_time,is_active,status,create_id ) values ( #{ccPersons},#{examineName},#{examineType},#{businessType},#{examineMark},now(),now(),'1','0',#{createId} ) insert into lk_pro_examine_configuration( pro_id,examine_id,business_type ) values ( #{proId},#{examineId},#{businessType} ) insert into pt_check_configuration_details( examine_id,node_name,check_person,examine_type,final_judgment,create_time,is_active,sort,deptId,version ) values ( #{examineId},#{nodeName},#{checkPerson},#{examineTypes},#{finalJudgment},now(),'1',#{sort},#{deptId},#{version} ) insert into sys_user_role( user_id,role_id ) values ( #{id},#{roleId} ) update pt_cons_person set task_id = #{taskId} where cons_user_id = #{id} update lk_pro_cont set into_status = #{status},admission_date = #{admissionDate} where pro_id = #{proId} and cont_uuid =#{consUuid} update lk_cont_sub set into_status = #{status},admission_date = #{admissionDate} where pro_id = #{proId} and cont_uuid = #{consUuid} and sub_uuid = #{subUuid} update pt_flow_process set status = #{status} where examine_id = #{examineId} update pt_flow_process set examine_name = #{examineName}, examine_type = #{examineType}, business_type = #{businessType}, examine_mark = #{examineMark}, send_from = #{ccPersons}, create_id = #{createId}, version = version +1 where examine_id = #{examineId} update pt_flow_process set definition_key = #{definitionKey} where examine_id = #{examineId} update pt_cons_person cons_name = #{consName}, sex = #{sex}, age = #{age}, phone = #{phone}, native = #{natives}, id_card = #{idCard}, nation = #{nation}, home_address = #{homeAddress}, address = #{address}, post = #{post}, work_type = #{workType}, face_path = #{facePath}, where cons_user_id = #{consUserId} update lk_cont_person set into_status = '0', is_exist_file = '1' where uuid = #{uuid} update lk_cont_person set into_status = '0', out_status = '0', admission_date = null, departure_date = null, task_id=null, task_id_out=null where uuid = #{uuid} UPDATE sys_user SET user_name = #{phone}, nick_name = #{consName}, dept_id = #{deptId}, id_card = #{idCard}, phonenumber = #{phone}, password = #{password}, parent_uuid = #{parentUuid}, del_flag = '0' WHERE phonenumber = #{phone} and del_flag = '0' order by user_id desc limit 1