insert into tld_material(code, name, tld_id, specification_and_model, unit_of_measurement, size, is_not_disable, is_recommend, min_num, max_num, type, company_number) values (#{code}, #{name}, #{tldId}, #{specificationAndModel}, #{unitOfMeasurement}, '0', '0', '0', "0", "0", #{typeVal}, '0') insert into ${tableName}(code, name, tld_id, type) values (#{code}, #{name}, #{tldId}, #{typeVal}) insert into tld_inventory_gs(material_id, amount, account_sleeve) values (#{materialId}, #{num}, #{typeVal}) update tld_material code = #{code}, name = #{name}, tld_id = #{tldId}, specification_and_model = #{specificationAndModel}, unit_of_measurement = #{unitOfMeasurement}, size = #{size}, wllb_class = #{wllbClass}, is_not_disable = #{isNotDisable}, is_recommend = #{isRecommend}, part_type = #{partType}, min_num = #{minNum}, max_num = #{maxNum}, company_number = #{companyNumber}, modify_user = #{modifyUser},modify_time=now(), where id = #{id} update tld_material material_id = #{materialId}, code = #{code}, name = #{name}, tld_id = #{tldId}, where id = #{id} update ${tableName} material_id = #{materialId}, code = #{code}, name = #{name}, tld_id = #{tldId}, where id = #{id} delete from ${tableName} where id = #{id} delete from tld_inventory_gs insert into tld_access(type, data, scrq) value (#{type},#{data},now()) insert into tld_log_data(user_id, scrq, data, type, document_type) value (#{userId},now(),#{data},#{type},#{documentType}) insert into tld_storage_location(storage_location_code, storage_location_name, warehouse_where) value (#{storageLocationCode},#{storageLocationName},#{warehouseWhere})