INSERT INTO standard_product_list (id, inspection_item, inspection_item_en, inspection_item_subclass, inspection_item_subclass_en, factory, laboratory, sample_type, sample, model, son_laboratory, unit, price, man_hour, man_hour_group, inspection_item_type, inspection_value_type, checkout_number, section, cores, method, method_s, man_day, bsm, ask, tell, standard_method_list_id, template_id, state, dic, tree, structure_item_parameter_id, inspection_item_class, inspection_item_class_en, radius, radius_list, rates, sort, conductor_material, conductor_type, check_status) VALUES #{item.id}, #{item.inspectionItem}, #{item.inspectionItemEn}, #{item.inspectionItemSubclass}, #{item.inspectionItemSubclassEn}, #{item.factory}, #{item.sonLaboratory}, #{item.sampleType}, #{item.sample}, #{item.model}, #{item.sonLaboratory}, #{item.unit}, #{item.price}, #{item.manHour}, #{item.manHourGroup}, #{item.inspectionItemType}, #{item.inspectionValueType}, #{item.checkoutNumber}, #{item.section}, #{item.cores}, #{item.method}, #{item.methodS}, #{item.manDay}, #{item.bsm}, #{item.ask}, #{item.tell}, #{item.standardMethodListId}, #{item.templateId}, #{item.state}, #{item.dic}, #{item.tree}, #{item.structureItemParameterId}, #{item.inspectionItemClass}, #{item.inspectionItemClassEn}, #{item.radius}, #{item.radiusList}, #{item.rates}, #{item.sort}, #{item.conductorMaterial}, #{item.conductorType}, #{item.checkStatus} UPDATE standard_product_list SET price=#{productList.price}, man_hour=#{productList.manHour}, section=#{productList.section}, cores=#{productList.cores}, conductor_material=#{productList.conductorMaterial}, conductor_type=#{productList.conductorType}, ask=#{productList.ask}, tell=#{productList.tell}, update_user=#{productList.updateUser}, update_time=#{productList.updateTime}, check_status=#{productList.checkStatus} WHERE id = #{productList.id} update standard_product_list set sort = sort - 1 where tree = #{tree} and standard_method_list_id = #{methodId} and sort between #{beginIndex} + 1 and #{endIndex} update standard_product_list set sort = sort + 1 where tree = #{tree} and standard_method_list_id = #{methodId} and sort between #{endIndex} and #{beginIndex} - 1 UPDATE standard_product_list SET check_status = #{checkStatus} WHERE ID IN #{item}