insert into pt_pro_tools (pro_id, cont_uuid,uuid, tools_name, tools_model, tools_unit, tools_num, tools_type, detection_time, next_detection_time, is_detection,admission_date, status, is_active) values (#{proId}, #{consUuid},#{uuid},#{equipName}, #{model}, #{unit}, #{num}, #{equipType},#{detectionTime}, #{nextDetectionTime}, #{isForceDetection}, #{approachDate},'0' , '1') insert into pt_cons_information(pro_id, uuid, from_type, information_type, information_path, information_name, information_size, information_user_id, information_user_name, is_active) values (#{proId}, #{uuid}, #{fromType}, #{informationType}, #{filePath}, #{fileName}, #{fileSize}, #{createUserId}, #{createUser}, '1') update pt_pro_tools set tools_name = #{equipName}, tools_model = #{model}, tools_unit = #{unit}, tools_num =#{num}, tools_type = #{equipType}, detection_time = #{detectionTime}, next_detection_time = #{nextDetectionTime}, is_detection = #{isForceDetection}, admission_date = #{approachDate}, status = '0' where uuid = #{uuid} update pt_pro_tools set is_active = '0' where tools_id = #{id}