select id, bill_code, batch_no, scan_date, scan_status, group_status, scan_man, scan_site, batch_volume, batch_parcel_qty, batch_weight, waybill_batch_status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_tms_site_batch_dtl insert into emis_tms_site_batch_dtl bill_code, batch_no, scan_date, scan_status, group_status, scan_man, scan_site, batch_volume, batch_parcel_qty, batch_weight, waybill_batch_status, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site, #{billCode}, #{batchNo}, #{scanDate}, #{scanStatus}, #{groupStatus}, #{scanMan}, #{scanSite}, #{batchVolume}, #{batchParcelQty}, #{batchWeight}, #{waybillBatchStatus}, #{remark}, #{tenantId}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{createSite}, #{updateSite}, update emis_tms_site_batch_dtl bill_code = #{billCode}, batch_no = #{batchNo}, scan_date = #{scanDate}, scan_status = #{scanStatus}, group_status = #{groupStatus}, scan_man = #{scanMan}, scan_site = #{scanSite}, batch_volume = #{batchVolume}, batch_parcel_qty = #{batchParcelQty}, batch_weight = #{batchWeight}, waybill_batch_status = #{waybillBatchStatus}, 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}, where id = #{id} update emis_tms_site_batch_dtl set del_flag = '1' where id = #{id} update emis_tms_site_batch_dtl set del_flag = '1' where id in #{id} update emis_tms_site_batch_dtl set del_flag = '1' where batch_no = #{batchNo} and del_flag = '0' update emis_tms_site_batch_dtl batch_volume = #{batchVolume}, batch_parcel_qty = #{batchParcelQty}, batch_weight = #{batchWeight} where bill_code = #{billCode} and del_flag = '0' update emis_tms_site_batch_dtl set waybill_batch_status = '2' where batch_no in #{batchNo} and bill_code = #{billCode} and del_flag = '0'