select material_id, material_xingh, material_guig, material_diany, material_dw from c_material
insert into c_material
material_xingh,material_guig,material_diany,material_dw,#{materialXingh},#{materialGuig},#{materialDiany},#{materialDw},
update c_material
material_xingh = #{materialXingh},material_guig = #{materialGuig},material_diany = #{materialDiany},material_dw = #{materialDw},
where material_id = #{materialId}
delete from c_material where material_id = #{materialId}
delete from c_material where material_id in
#{materialId}
delete from c_material_cost where cost_material_id in
#{costMaterialId}
delete from c_material_cost where cost_material_id = #{costMaterialId}
insert into c_material_cost( cost_material_id, cost_cl_id, cost_cl_qty, cost_cl_qty_2) values
( #{item.costMaterialId}, #{item.costClId}, #{item.costClQty}, #{item.costClQty2})