insert into tld_material(code,name,tld_id,specification_and_model,unit_of_measurement,size,is_not_disable,is_recommend,min_num,max_num,typ,company_number)
values(#{code},#{name},#{tldId},#{specificationAndModel},#{unitOfMeasurement},'0','0','0',"0","0",#{typeVal},#{companyNumber})
insert into ${tableName}(code,name,tld_id,type)
values(#{code},#{name},#{tldId},#{typeVal})
insert into tld_treasury_account(material_id,code,name,num,type)
values(#{materialId},#{code},#{name},#{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}
insert into tld_access(type,data,scrq) value(#{type},#{data},now())