select req_code, c_store_bill_detail_id, tray_code, c_inv_code, c_inv_name, c_inv_std, c_inv_chart, c_inv_material, c_unit, i_qty, cargo_space, type, status, uuid ,time,cz_type from erp_hc_all
select req_code, c_store_bill_detail_id, tray_code, c_inv_code, c_inv_name, c_inv_std, c_inv_chart, c_inv_material, c_unit, i_qty, cargo_space, type, status, uuid ,time,cz_type from erp_hc
select distinct req_code,cz_type from erp_hc
select req_code,
c_store_bill_detail_id,
c_inv_code,
c_inv_name,
c_inv_std,
c_inv_chart,
c_inv_material,
c_unit ,sum(i_qty) as i_qty from erp_hc
insert into erp_hc
req_code,
c_store_bill_detail_id,
tray_code,
c_inv_code,
c_inv_name,
c_inv_std,
c_inv_chart,
c_inv_material,
c_unit,
i_qty,
cargo_space,
type,
status,
uuid,
time,
#{reqCode},
#{cStoreBillDetailId},
#{trayCode},
#{cInvCode},
#{cInvName},
#{cInvStd},
#{cInvChart},
#{cInvMaterial},
#{cUnit},
#{iQty},
#{cargoSpace},
#{type},
#{status},
#{uuid},
#{time},
update erp_hc
c_store_bill_detail_id = #{cStoreBillDetailId},
tray_code = #{trayCode},
c_inv_code = #{cInvCode},
c_inv_name = #{cInvName},
c_inv_std = #{cInvStd},
c_inv_chart = #{cInvChart},
c_inv_material = #{cInvMaterial},
c_unit = #{cUnit},
i_qty = #{iQty},
cargo_space = #{cargoSpace},
type = #{type},
status = #{status},
uuid = #{uuid},
time = #{time},
where req_code = #{reqCode}
delete from erp_hc where req_code = #{reqCode}
delete from erp_hc where req_code in
#{reqCode}