select id, batch_no, batch_name, batch_date, supplier_code, supplier_name, trans_line_type, product_type, batch_type, trans_type, start_site_code, send_country, next_site_code, air_billl_no, etd, eta, car_no, ship_no, clearance_res_status, declare_res_status, dest_country, dest_country_name, trans_weight, pack_num, total_parcel_qty, total_waybill_qty, total_volume, total_weight, total_settlement_weight, bl_profit, op_man, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site, bl_entering from emis_tms_site_batch
update emis_tms_site_batch set
bl_profit = '1'
where batch_no=#{batchNo}
update emis_tms_site_batch set
bl_entering = '1'
where batch_no=#{batchNo}
update emis_tms_site_batch set
bl_entering = '0'
where batch_no=#{batchNo}
insert into emis_tms_site_batch
batch_no,
batch_name,
batch_date,
supplier_code,
supplier_name,
trans_line_type,
product_type,
batch_type,
trans_type,
start_site_code,
send_country,
next_site_code,
air_billl_no,
etd,
eta,
car_no,
ship_no,
clearance_res_status,
declare_res_status,
dest_country,
dest_country_name,
trans_weight,
pack_num,
total_parcel_qty,
total_waybill_qty,
total_volume,
total_weight,
total_settlement_weight,
op_man,
remark,
tenant_id,
del_flag,
create_by,
create_time,
update_by,
update_time,
create_site,
update_site,
bl_entering,
#{batchNo},
#{batchName},
#{batchDate},
#{supplierCode},
#{supplierName},
#{transLineType},
#{productType},
#{batchType},
#{transType},
#{startSiteCode},
#{sendCountry},
#{nextSiteCode},
#{airBilllNo},
#{etd},
#{eta},
#{carNo},
#{shipNo},
#{clearanceResStatus},
#{declareResStatus},
#{destCountry},
#{destCountryName},
#{transWeight},
#{packNum},
#{totalParcelQty},
#{totalWaybillQty},
#{totalVolume},
#{totalWeight},
#{totalSettlementWeight},
#{opMan},
#{remark},
#{tenantId},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{createSite},
#{updateSite},
#{blEntering},
update emis_tms_site_batch
batch_no = #{batchNo},
batch_name = #{batchName},
batch_date = #{batchDate},
supplier_code = #{supplierCode},
supplier_name = #{supplierName},
trans_line_type = #{transLineType},
product_type = #{productType},
batch_type = #{batchType},
trans_type = #{transType},
start_site_code = #{startSiteCode},
send_country = #{sendCountry},
next_site_code = #{nextSiteCode},
air_billl_no = #{airBilllNo},
etd = #{etd},
eta = #{eta},
car_no = #{carNo},
ship_no = #{shipNo},
clearance_res_status = #{clearanceResStatus},
declare_res_status = #{declareResStatus},
dest_country = #{destCountry},
dest_country_name = #{destCountryName},
trans_weight = #{transWeight},
pack_num = #{packNum},
total_parcel_qty = #{totalParcelQty},
total_waybill_qty = #{totalWaybillQty},
total_volume = #{totalVolume},
total_weight = #{totalWeight},
total_settlement_weight = #{totalSettlementWeight},
op_man = #{opMan},
remark = #{remark},
tenant_id = #{tenantId},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
create_site = #{createSite},
update_site = #{updateSite},
bl_entering = #{blEntering},
where id = #{id}
update emis_tms_site_batch set del_flag='1' where id = #{id}
update emis_tms_site_batch set del_flag='1' where id in
#{id}