select material_id, material_no, material_name, material_price, material_state from c_yl_material
insert into c_yl_material
material_no,material_name,material_price,material_state,#{materialNo},#{materialName},#{materialPrice},#{materialState},
update c_yl_material
material_no = #{materialNo},material_name = #{materialName},material_price = #{materialPrice},material_state = #{materialState},
where material_id = #{materialId}
delete from c_yl_material where material_id = #{materialId}
delete from c_yl_material where material_id in
#{materialId}
delete from c_yl_material_bjdata
INSERT INTO c_yl_material_bjdata (material_bj_no, material_bj_name, material_bj_price)
VALUES
(#{t.materialNo,jdbcType=VARCHAR},
#{t.materialName,jdbcType=VARCHAR},
cast(#{t.materialPrice,jdbcType=DECIMAL} as decimal(18,2)))
update c_yl_material set material_name = a.material_bj_name,material_price=a.material_bj_price
from c_yl_material_bjdata a where a.material_bj_no = material_no