select spcd.id, spcd.project_id, sp.projectName, spcd.dept_id, sd.dept_name, spcd.check_type, sdd.dict_label as check_type_name, spcd.material_name, spcd.use_position, spcd.sample_num, spcd.qualified_flag, spcd.represen_num, spcd.sample_user, spcd.sample_user_name, spcd.witness_user, spcd.witness_user_name, spcd.laboratory_name, spcd.check_time, spcd.check_state, spcd.detection_result, spcd.detection_file, spcd.create_by, spcd.create_time, spcd.is_del, spcd.update_by, spcd.update_time, spcd.remark from sur_project_check_detection spcd left join sur_project sp on spcd.project_id = sp.id left join sys_dept sd on sd.dept_id = spcd.dept_id left join sys_dict_data sdd on sdd.dict_type = 'check_detection_check_type' and sdd.dict_value = spcd.check_type insert into sur_project_check_detection project_id, dept_id, check_type, material_name, use_position, sample_num, qualified_flag, represen_num, sample_user, sample_user_name, witness_user, witness_user_name, laboratory_name, check_time, check_state, detection_result, detection_file, is_del, create_by, create_time, update_by, update_time, remark, #{projectId}, #{deptId}, #{checkType}, #{materialName}, #{usePosition}, #{sampleNum}, #{qualifiedFlag}, #{represenNum}, #{sampleUser}, #{sampleUserName}, #{witnessUser}, #{witnessUserName}, #{laboratoryName}, #{checkTime}, #{checkState}, #{detectionResult}, #{detectionFile}, #{isDel}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update sur_project_check_detection project_id = #{projectId}, dept_id = #{deptId}, check_type = #{checkType}, material_name = #{materialName}, use_position = #{usePosition}, sample_num = #{sampleNum}, qualified_flag = #{qualifiedFlag}, represen_num = #{represenNum}, sample_user = #{sampleUser}, sample_user_name = #{sampleUserName}, witness_user = #{witnessUser}, witness_user_name = #{witnessUserName}, laboratory_name = #{laboratoryName}, check_time = #{checkTime}, check_state = #{checkState}, detection_result = #{detectionResult}, detection_file = #{detectionFile}, is_del = #{isDel}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} delete from sur_project_check_detection where id = #{id} delete from sur_project_check_detection where id in #{id}