2024-02-29 08:23:35 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
< !DOCTYPE mapper
2024-03-01 06:47:57 +00:00
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2024-02-29 08:23:35 +00:00
<mapper namespace= "com.xdadan.erp.emis.mapper.EmisWaybillMapper" >
2024-03-01 06:47:57 +00:00
2024-02-29 08:23:35 +00:00
<resultMap type= "EmisWaybill" id= "EmisWaybillResult" >
<result property= "id" column= "id" />
<result property= "orderSn" column= "order_sn" />
<result property= "custOrderId" column= "cust_order_id" />
<result property= "billCode" column= "bill_code" />
<result property= "billCodeSub" column= "bill_code_sub" />
<result property= "orderStatus" column= "order_status" />
2024-04-11 05:47:34 +00:00
<result property= "waybillStatus" column= "waybill_status" />
2024-02-29 08:23:35 +00:00
<result property= "orderType" column= "order_type" />
2024-03-19 12:54:06 +00:00
<result property= "orderDate" column= "order_date" />
2024-03-01 06:47:57 +00:00
<result property= "userId" column= "user_id" />
2024-02-29 08:23:35 +00:00
<result property= "customerCode" column= "customer_code" />
<result property= "customerName" column= "customer_name" />
<result property= "openId" column= "open_id" />
<result property= "receiveName" column= "receive_name" />
<result property= "receiveCompany" column= "receive_company" />
<result property= "receiveMobile" column= "receive_mobile" />
<result property= "receiveTel" column= "receive_tel" />
<result property= "receiveCountry" column= "receive_country" />
<result property= "receiveProvince" column= "receive_province" />
<result property= "receiveCity" column= "receive_city" />
<result property= "receiveCounty" column= "receive_county" />
<result property= "receiveTown" column= "receive_town" />
<result property= "receiveAddress" column= "receive_address" />
<result property= "receivePostcode" column= "receive_postcode" />
2024-04-11 05:47:34 +00:00
<result property= "receivePcd" column= "receive_pcd" />
2024-02-29 08:23:35 +00:00
<result property= "sendName" column= "send_name" />
<result property= "sendCompany" column= "send_company" />
<result property= "sendMobile" column= "send_mobile" />
<result property= "sendTel" column= "send_tel" />
<result property= "sendCountry" column= "send_country" />
<result property= "sendProvince" column= "send_province" />
<result property= "sendCity" column= "send_city" />
<result property= "sendCounty" column= "send_county" />
<result property= "sendTown" column= "send_town" />
<result property= "sendAddress" column= "send_address" />
<result property= "sendPostcode" column= "send_postcode" />
2024-04-11 05:47:34 +00:00
<result property= "sendPcd" column= "send_pcd" />
2024-02-29 08:23:35 +00:00
<result property= "paymentType" column= "payment_type" />
2024-03-31 15:19:52 +00:00
<result property= "calcFeeType" column= "calc_fee_type" />
2024-04-11 05:47:34 +00:00
<result property= "custNo" column= "cust_no" />
2024-05-22 23:27:08 +00:00
<result property= "custName" column= "cust_name" />
2024-02-29 08:23:35 +00:00
<result property= "transLineType" column= "trans_line_type" />
<result property= "productType" column= "product_type" />
2024-03-01 06:47:57 +00:00
<result property= "timeType" column= "time_type" />
<result property= "meterType" column= "meter_type" />
2024-05-20 10:24:31 +00:00
<result property= "carryType" column= "carry_type" />
2024-02-29 08:23:35 +00:00
<result property= "customsClear" column= "customs_clear" />
<result property= "customsEclaration" column= "customs_eclaration" />
2024-03-01 06:47:57 +00:00
<result property= "estimateDate" column= "estimate_date" />
2024-02-29 08:23:35 +00:00
<result property= "packType" column= "pack_type" />
<result property= "dispatchMethod" column= "dispatch_method" />
<result property= "pickupMethod" column= "pickup_method" />
<result property= "pickStartDate" column= "pick_start_date" />
<result property= "pickFinishDate" column= "pick_finish_date" />
<result property= "pickFailReason" column= "pick_fail_reason" />
<result property= "intoWarehouseCode" column= "into_warehouse_code" />
<result property= "intoWarehouseName" column= "into_warehouse_name" />
<result property= "intoWarehouseAddress" column= "into_warehouse_address" />
<result property= "intoWarehouseContact" column= "into_warehouse_contact" />
<result property= "intoWarehousePhone" column= "into_warehouse_phone" />
<result property= "intoWarehouseBillCode" column= "into_warehouse_bill_code" />
2024-04-27 10:31:11 +00:00
<result property= "warehouseInNo" column= "warehouse_in_no" />
2024-02-29 08:23:35 +00:00
<result property= "customerDeliveryBeginTime" column= "customer_delivery_begin_time" />
<result property= "customerDeliveryEndTime" column= "customer_delivery_end_time" />
<result property= "goodsType" column= "goods_type" />
<result property= "goodsInfo" column= "goods_info" />
2024-04-27 10:31:11 +00:00
<result property= "goodsPics" column= "goods_pics" />
<result property= "blPrepareInFreight" column= "bl_prepare_in_freight" />
<result property= "prepareInEstFee" column= "prepare_in_est_fee" />
<result property= "prepareInRealFee" column= "prepare_in_real_fee" />
<result property= "prepareInExpress" column= "prepare_in_express" />
<result property= "prepareInBillCode" column= "prepare_in_bill_code" />
<result property= "prepareInRemark" column= "prepare_in_remark" />
<result property= "prepareInSupplier" column= "prepare_in_supplier" />
2024-02-29 08:23:35 +00:00
<result property= "totalWeight" column= "total_weight" />
<result property= "totalVolume" column= "total_volume" />
<result property= "parcelQty" column= "parcel_qty" />
<result property= "billWeight" column= "bill_weight" />
<result property= "volumeWeight" column= "volume_weight" />
<result property= "currency" column= "currency" />
2024-03-01 06:47:57 +00:00
<result property= "settlementWeight" column= "settlement_weight" />
2024-05-20 10:24:31 +00:00
<result property= "scanWeight" column= "scan_weight" />
2024-03-01 06:47:57 +00:00
<result property= "feeWeight" column= "fee_weight" />
2024-02-29 08:23:35 +00:00
<result property= "freight" column= "freight" />
2024-05-20 10:24:31 +00:00
<result property= "realPaymentType" column= "real_payment_type" />
<result property= "realFee" column= "real_fee" />
<result property= "blSpecialQuote" column= "bl_special_quote" />
2024-02-29 08:23:35 +00:00
<result property= "blOverLong" column= "bl_over_long" />
<result property= "blBill" column= "bl_bill" />
2024-04-11 05:47:34 +00:00
<result property= "blBillText" column= "bl_bill_text" />
2024-02-29 08:23:35 +00:00
<result property= "blOverWeight" column= "bl_over_weight" />
<result property= "overWeightNumber" column= "over_weight_number" />
<result property= "feeRemaker" column= "fee_remaker" />
<result property= "thirdCode" column= "third_code" />
<result property= "realValue" column= "real_value" />
<result property= "blInsure" column= "bl_insure" />
<result property= "insureValue" column= "insure_value" />
<result property= "insureValueCurrency" column= "insure_value_currency" />
<result property= "insureFeeCurrency" column= "insure_fee_currency" />
<result property= "insureFee" column= "insure_fee" />
<result property= "insureRemark" column= "insure_remark" />
<result property= "insureSiteCode" column= "insure_site_code" />
<result property= "insureDate" column= "insure_date" />
<result property= "blPrint" column= "bl_print" />
<result property= "printManCode" column= "print_man_code" />
<result property= "printSite" column= "print_site" />
<result property= "printDate" column= "print_date" />
<result property= "printCount" column= "print_count" />
<result property= "blDispFd" column= "bl_disp_fd" />
<result property= "transferCode" column= "transfer_code" />
<result property= "transferBillcode" column= "transfer_billcode" />
2024-04-11 05:47:34 +00:00
<result property= "dispFdDate" column= "disp_fd_date" />
<result property= "dispFdReason" column= "disp_fd_reason" />
2024-03-08 11:34:22 +00:00
<result property= "currentSiteCode" column= "current_site_code" />
<result property= "nextSiteCode" column= "next_site_code" />
<result property= "lastSiteCode" column= "last_site_code" />
2024-03-19 12:54:06 +00:00
<result property= "registerSiteCode" column= "register_site_code" />
<result property= "registerDate" column= "register_date" />
<result property= "registerManCode" column= "register_man_code" />
<result property= "takePieceEmployeeCode" column= "take_piece_employee_code" />
2024-02-29 08:23:35 +00:00
<result property= "sendSiteCode" column= "send_site_code" />
2024-03-19 12:54:06 +00:00
<result property= "sendDate" column= "send_date" />
2024-02-29 08:23:35 +00:00
<result property= "dispatchManCode" column= "dispatch_man_code" />
<result property= "dispatchDate" column= "dispatch_date" />
<result property= "dispatchSiteCode" column= "dispatch_site_code" />
<result property= "produceBillDate" column= "produce_bill_date" />
<result property= "produceBillSiteCode" column= "produce_bill_site_code" />
<result property= "produceBillManCode" column= "produce_bill_man_code" />
<result property= "destinationCode" column= "destination_code" />
<result property= "destinationProvince" column= "destination_province" />
<result property= "destinationCity" column= "destination_city" />
<result property= "destinationCounty" column= "destination_county" />
2024-03-31 05:05:14 +00:00
<result property= "dispatchUnderlingSiteCode" column= "dispatch_underling_site_code" />
2024-02-29 08:23:35 +00:00
<result property= "destinationCenterCode" column= "destination_center_code" />
<result property= "marketManCode" column= "market_man_code" />
<result property= "payee" column= "payee" />
<result property= "salesmen" column= "salesmen" />
<result property= "operateEmployeeCode" column= "operate_employee_code" />
<result property= "blIsQuestion" column= "bl_is_question" />
2024-04-28 16:08:11 +00:00
<result property= "problemType" column= "problem_type" />
2024-02-29 08:23:35 +00:00
<result property= "problemCause" column= "problem_cause" />
2024-04-28 16:08:11 +00:00
<result property= "problemDelayDays" column= "problem_delay_days" />
2024-02-29 08:23:35 +00:00
<result property= "blMessage" column= "bl_message" />
<result property= "blAcceptMessage" column= "bl_accept_message" />
2024-03-31 08:38:13 +00:00
<result property= "blGenSubbill" column= "bl_gen_subbill" />
2024-02-29 08:23:35 +00:00
<result property= "signMan" column= "sign_man" />
<result property= "signManCode" column= "sign_man_code" />
<result property= "signSiteCode" column= "sign_site_code" />
<result property= "signDate" column= "sign_date" />
<result property= "billPicSendRmk" column= "bill_pic_send_rmk" />
<result property= "billPicDispatchRmk" column= "bill_pic_dispatch_rmk" />
2024-03-19 12:54:06 +00:00
<result property= "timezoneOffset" column= "timezone_offset" />
2024-05-22 23:27:08 +00:00
<result property= "paymentStatus" column= "payment_status" />
<result property= "paymentDate" column= "payment_date" />
<result property= "paymentRemark" column= "payment_remark" />
<result property= "orderRemark" column= "order_remark" />
2024-05-20 10:24:31 +00:00
<result property= "dataFrom" column= "data_from" />
2024-05-22 23:27:08 +00:00
<result property= "remark" column= "remark" />
2024-02-29 08:23:35 +00:00
<result property= "delFlag" column= "del_flag" />
<result property= "createBy" column= "create_by" />
<result property= "createTime" column= "create_time" />
<result property= "updateBy" column= "update_by" />
<result property= "updateTime" column= "update_time" />
2024-04-11 05:47:34 +00:00
<result property= "createSite" column= "create_site" />
<result property= "updateSite" column= "update_site" />
2024-05-06 16:07:24 +00:00
<association property= "receiveCountryName" column= "receive_country" select= "selectCountryNameByCode" />
<association property= "receiveProvinceName" column= "receive_province" select= "selectRegionNameByCode" />
<association property= "receiveCityName" column= "receive_city" select= "selectRegionNameByCode" />
2024-05-30 06:42:10 +00:00
<association property= "receiveCountyName" column= "receive_county" select= "selectRegionNameByCode" />
2024-05-06 16:07:24 +00:00
<association property= "sendCountryName" column= "send_country" select= "selectCountryNameByCode" />
<association property= "sendProvinceName" column= "send_province" select= "selectRegionNameByCode" />
<association property= "sendCityName" column= "send_city" select= "selectRegionNameByCode" />
2024-05-30 06:42:10 +00:00
<association property= "sendCountyName" column= "send_county" select= "selectRegionNameByCode" />
2024-05-06 16:07:24 +00:00
2024-05-16 20:12:13 +00:00
<association property= "productTypeName" column= "product_type" select= "selectProdNameByCode" />
<association property= "transLineTypeName" column= "trans_line_type" select= "selectLineNameByCode" />
<association property= "sendSiteName" column= "send_site_code" select= "selectSiteNameByCode" />
2024-05-16 21:51:35 +00:00
<association property= "dispatchUnderlingSiteName" column= "dispatch_underling_site_code" select= "selectSiteNameByCode" />
2024-05-16 22:08:55 +00:00
<association property= "destinationName" column= "destination_code" select= "selectDestNameByCode" />
2024-05-16 21:51:35 +00:00
<association property= "dispatchSiteName" column= "dispatch_site_code" select= "selectSiteNameByCode" />
<association property= "dispatchManName" column= "dispatch_man_code" select= "selectEmpNameByCode" />
2024-05-16 22:08:55 +00:00
<association property= "printSiteName" column= "print_site" select= "selectSiteNameByCode" />
2024-05-16 21:51:35 +00:00
<association property= "printManName" column= "print_man_code" select= "selectEmpNameByCode" />
2024-05-22 10:27:17 +00:00
<association property= "takePieceEmployeeName" column= "take_piece_employee_code" select= "selectEmpNameByCode" />
2024-05-22 11:20:18 +00:00
<association property= "operateEmployeeName" column= "operate_employee_code" select= "selectEmpNameByCode" />
2024-05-22 23:44:40 +00:00
<association property= "registerSiteName" column= "register_site_code" select= "selectSiteNameByCode" />
<association property= "registerManName" column= "register_man_code" select= "selectEmpNameByCode" />
2024-05-23 05:17:45 +00:00
<association property= "lastScanRecord" column= "bill_code" select= "selectLastRecordByBillCode" />
2024-05-22 23:44:40 +00:00
2024-02-29 08:23:35 +00:00
</resultMap>
2024-05-23 05:17:45 +00:00
<resultMap type= "EmisTmsScanRecord" id= "EmisTmsScanRecordResult" >
<result property= "id" column= "id" />
<result property= "billCode" column= "bill_code" />
<result property= "orderSn" column= "order_sn" />
<result property= "scanType" column= "scan_type" />
<result property= "preOrNextStation" column= "pre_or_next_station" />
<result property= "preOrNextStationCode" column= "pre_or_next_station_code" />
<result property= "preOrNextStationPhone" column= "pre_or_next_station_phone" />
<result property= "preOrNextManCode" column= "pre_or_next_man_code" />
<result property= "preOrNextManPhone" column= "pre_or_next_man_phone" />
<result property= "scanDate" column= "scan_date" />
<result property= "scanManCode" column= "scan_man_code" />
<result property= "scanManPhone" column= "scan_man_phone" />
<result property= "scanMan" column= "scan_man" />
<result property= "preOrNextMan" column= "pre_or_next_man" />
<result property= "scanSite" column= "scan_site" />
<result property= "scanSiteCode" column= "scan_site_code" />
<result property= "scanSitePhone" column= "scan_site_phone" />
<result property= "scanWeight" column= "scan_weight" />
<result property= "weight" column= "weight" />
<result property= "destSiteCode" column= "dest_site_code" />
<result property= "destCode" column= "dest_code" />
<result property= "dispatchOrSendMan" column= "dispatch_or_send_man" />
<result property= "dispatchOrSendManCode" column= "dispatch_or_send_man_code" />
<result property= "dispatchOrSendManPhone" column= "dispatch_or_send_man_phone" />
<result property= "signDate" column= "sign_date" />
<result property= "signMan" column= "sign_man" />
<result property= "signSite" column= "sign_site" />
<result property= "signSiteCode" column= "sign_site_code" />
<result property= "recordMan" column= "record_man" />
<result property= "recordManCode" column= "record_man_code" />
<result property= "recordManPhone" column= "record_man_phone" />
<result property= "recordSiteCode" column= "record_site_code" />
<result property= "carNo" column= "car_no" />
<result property= "bagNo" column= "bag_no" />
<result property= "truckMan" column= "truck_man" />
<result property= "truckCode" column= "truck_code" />
<result property= "dataFrom" column= "data_from" />
<result property= "picUrl" column= "pic_url" />
<result property= "status" column= "status" />
<result property= "delFlag" column= "del_flag" />
<result property= "createBy" column= "create_by" />
<result property= "createTime" column= "create_time" />
<result property= "updateBy" column= "update_by" />
<result property= "updateTime" column= "update_time" />
<result property= "remark" column= "remark" />
<result property= "updateSite" column= "update_site" />
<result property= "createSite" column= "create_site" />
</resultMap>
<select id= "selectLastRecordByBillCode" parameterType= "string" resultMap= "EmisTmsScanRecordResult" >
select id, bill_code, order_sn, scan_type, pre_or_next_station, pre_or_next_station_code, pre_or_next_station_phone, pre_or_next_man_code, pre_or_next_man_phone, scan_date, scan_man_code, scan_man_phone, scan_man, pre_or_next_man, scan_site, scan_site_code, scan_site_phone, scan_weight, weight, dest_site_code, dest_code, dispatch_or_send_man, dispatch_or_send_man_code, dispatch_or_send_man_phone, sign_date, sign_man, sign_site, sign_site_code, record_man, record_man_code, record_man_phone, record_site_code, car_no, bag_no, truck_man, truck_code, data_from, pic_url, status, del_flag, create_by, create_time, update_by, update_time, remark, update_site, create_site
from emis_tms_scan_record a
where a.bill_code = #{billCode}
order by create_time desc limit 1
</select>
2024-05-16 21:51:35 +00:00
<select id= "selectDestNameByCode" parameterType= "String" resultType= "string" >
2024-05-16 22:08:55 +00:00
select a.dest_name from emis_destination a where a.dest_code = #{code} and a.del_flag='0' limit 1
2024-05-16 21:51:35 +00:00
</select>
2024-05-16 20:12:13 +00:00
<select id= "selectSiteNameByCode" parameterType= "String" resultType= "string" >
2024-05-16 21:51:35 +00:00
select a.site_name from emis_site a where a.site_code = #{code} and a.del_flag='0' limit 1
2024-05-16 20:12:13 +00:00
</select>
2024-05-16 21:51:35 +00:00
2024-05-06 16:07:24 +00:00
<select id= "selectCountryNameByCode" parameterType= "String" resultType= "string" >
2024-05-16 21:51:35 +00:00
select a.name from emis_country a where a.code = #{code} and a.del_flag='0' limit 1
2024-05-06 16:07:24 +00:00
</select>
<select id= "selectRegionNameByCode" parameterType= "String" resultType= "string" >
2024-05-16 21:51:35 +00:00
select a.region_name from emis_region a where a.region_code = #{code} and a.del_flag='0' limit 1
2024-05-06 16:07:24 +00:00
</select>
<select id= "selectSiteNameByCode" parameterType= "String" resultType= "string" >
2024-05-16 21:51:35 +00:00
select a.site_name from emis_site a where a.site_code = #{code} and a.del_flag='0' limit 1
2024-05-06 16:07:24 +00:00
</select>
<select id= "selectEmpNameByCode" parameterType= "String" resultType= "string" >
2024-05-16 21:51:35 +00:00
select a.emp_name from sys_user a where a.emp_code = #{code} and a.del_flag='0' limit 1
2024-05-06 16:07:24 +00:00
</select>
<select id= "selectProdNameByCode" parameterType= "String" resultType= "string" >
2024-05-16 21:51:35 +00:00
select a.prod_name from emis_trans_product a where a.prod_code = #{code} and a.del_flag='0' limit 1
2024-05-06 16:07:24 +00:00
</select>
2024-05-16 20:12:13 +00:00
<select id= "selectLineNameByCode" parameterType= "String" resultType= "string" >
2024-05-16 21:51:35 +00:00
select a.line_name from emis_trans_line a where a.line_code = #{code} and a.del_flag='0' limit 1
2024-05-16 20:12:13 +00:00
</select>
2024-02-29 08:23:35 +00:00
<sql id= "selectEmisWaybillVo" >
2024-05-22 23:27:08 +00:00
select id, order_sn, cust_order_id, bill_code, bill_code_sub, order_status, waybill_status, order_type, order_date, user_id, customer_code, customer_name, open_id, receive_name, receive_company, receive_mobile, receive_tel, receive_country, receive_province, receive_city, receive_county, receive_town, receive_address, receive_postcode, receive_pcd, send_name, send_company, send_mobile, send_tel, send_country, send_province, send_city, send_county, send_town, send_address, send_postcode, send_pcd, payment_type, calc_fee_type, cust_no, cust_name, trans_line_type, product_type, time_type, meter_type, carry_type, customs_clear, customs_eclaration, estimate_date, pack_type, dispatch_method, pickup_method, pick_start_date, pick_finish_date, pick_fail_reason, into_warehouse_code, into_warehouse_name, into_warehouse_address, into_warehouse_contact, into_warehouse_phone, into_warehouse_bill_code, warehouse_in_no, customer_delivery_begin_time, customer_delivery_end_time, goods_type, goods_info, goods_pics, bl_prepare_in_freight, prepare_in_est_fee, prepare_in_real_fee, prepare_in_express, prepare_in_bill_code, prepare_in_remark, prepare_in_supplier, total_weight, total_volume, parcel_qty, bill_weight, volume_weight, currency, settlement_weight, scan_weight, fee_weight, freight, real_payment_type, real_fee, bl_special_quote, bl_over_long, bl_bill, bl_bill_text, bl_over_weight, over_weight_number, fee_remaker, third_code, real_value, bl_insure, insure_value, insure_value_currency, insure_fee_currency, insure_fee, insure_remark, insure_site_code, insure_date, bl_print, print_man_code, print_site, print_date, print_count, bl_disp_fd, transfer_code, transfer_billcode, disp_fd_date, disp_fd_reason, current_site_code, next_site_code, last_site_code, register_site_code, register_date, register_man_code, take_piece_employee_code, send_site_code, send_date, dispatch_man_code, dispatch_date, dispatch_site_code, produce_bill_date, produce_bill_site_code, produce_bill_man_code, destination_code, destination_province, destination_city, destination_county, dispatch_underling_site_code, destination_center_code, market_man_code, payee, salesmen, operate_employee_code, bl_is_question, problem_type, problem_cause, problem_delay_days, bl_message, bl_accept_message, bl_gen_subbill, sign_man, sign_man_code, sign_site_code, sign_date, bill_pic_send_rmk, bill_pic_dispatch_rmk, timezone_offset, payment_status, payment_date, payment_remark, order_remark, data_from, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_waybill
2024-02-29 08:23:35 +00:00
</sql>
2024-05-08 11:34:34 +00:00
<select id= "selectWaybillStatByEmpCode" parameterType= "String" resultType= "map" >
2024-05-08 11:01:23 +00:00
select waybill_status as waybillStatus,count(1) as cnt from emis_waybill
2024-05-08 11:33:05 +00:00
<where >
del_flag='0'
<if test= "empCode != null and empCode != ''" >
and take_piece_employee_code=#{empCode}
</if>
<if test= "waybillStatus != null and waybillStatus != ''" >
and waybill_status=#{waybillStatus}
</if>
</where>
2024-05-08 11:01:23 +00:00
group by waybill_status
</select>
<select id= "selectCommissionStatDataByEmp" parameterType= "String" resultType= "map" >
select waybill_status as waybillStatus,count(1) as cnt from emis_waybill
where take_piece_employee_code is not null
group by waybill_status
</select>
2024-04-28 16:08:11 +00:00
<select id= "selectEmisWaybillByBillCode" parameterType= "String" resultMap= "EmisWaybillResult" >
<include refid= "selectEmisWaybillVo" />
<where >
2024-05-19 20:21:59 +00:00
bill_code = #{billCode} or FIND_IN_SET(#{billCode},bill_code_sub)
2024-04-28 16:08:11 +00:00
</where>
2024-05-19 20:21:59 +00:00
limit 1
2024-04-28 16:08:11 +00:00
</select>
<select id= "selectEmisWaybillByOrderSn" parameterType= "String" resultMap= "EmisWaybillResult" >
<include refid= "selectEmisWaybillVo" />
<where >
order_sn = #{orderSn}
</where>
</select>
2024-04-30 14:34:56 +00:00
<select id= "selectEmisWaybillByMutiBillCode" parameterType= "String" resultMap= "EmisWaybillResult" >
2024-05-20 10:24:31 +00:00
select
id, order_sn, cust_order_id, bill_code, bill_code_sub, order_status, waybill_status, order_type, order_date, user_id, customer_code, customer_name, receive_customer_code, receive_customer_name, third_customer_code, third_customer_name, open_id, receive_name, receive_company, receive_mobile, receive_tel, receive_country, receive_province, receive_city, receive_county, receive_town, receive_address, receive_postcode, receive_pcd, send_name, send_company, send_mobile, send_tel, send_country, send_province, send_city, send_county, send_town, send_address, send_postcode, send_pcd, payment_type, calc_fee_type, cust_no, trans_line_type, product_type, time_type, meter_type, carry_type, customs_clear, customs_eclaration, estimate_date, pack_type, dispatch_method, pickup_method, pick_start_date, pick_finish_date, pick_fail_reason, into_warehouse_code, into_warehouse_name, into_warehouse_address, into_warehouse_contact, into_warehouse_phone, into_warehouse_bill_code, warehouse_in_no, customer_delivery_begin_time, customer_delivery_end_time, goods_type, goods_info, goods_pics, bl_prepare_in_freight, prepare_in_est_fee, prepare_in_real_fee, prepare_in_express, prepare_in_bill_code, prepare_in_remark, prepare_in_supplier, total_weight, total_volume, parcel_qty, bill_weight, volume_weight, currency, settlement_weight, scan_weight, fee_weight, freight, real_payment_type, real_fee, bl_special_quote, bl_over_long, bl_bill, bl_bill_text, bl_over_weight, over_weight_number, fee_remaker, third_code, real_value, bl_insure, insure_value, insure_value_currency, insure_fee_currency, insure_fee, insure_remark, insure_site_code, insure_date, bl_print, print_man_code, print_site, print_date, print_count, bl_disp_fd, transfer_code, transfer_billcode, disp_fd_date, disp_fd_reason, current_site_code, next_site_code, last_site_code, register_site_code, register_date, register_man_code, take_piece_employee_code, send_site_code, send_date, dispatch_man_code, dispatch_date, dispatch_site_code, produce_bill_date, produce_bill_site_code, produce_bill_man_code, destination_code, destination_province, destination_city, destination_county, dispatch_underling_site_code, destination_center_code, market_man_code, payee, salesmen, operate_employee_code, bl_is_question, problem_type, problem_cause, problem_delay_days, bl_message, bl_accept_message, bl_gen_subbill, sign_man, sign_man_code, sign_site_code, sign_date, bill_pic_send_rmk, bill_pic_dispatch_rmk, timezone_offset, data_from, del_flag, create_by, create_time, update_by, update_time, remark, create_site, update_site
2024-04-30 14:34:56 +00:00
from emis_waybill
where billCode in
<foreach item= "id" collection= "array" open= "(" separator= "," close= ")" >
#{billCode}
</foreach>
</select>
2024-04-28 16:08:11 +00:00
2024-02-29 08:23:35 +00:00
<select id= "selectEmisWaybillList" parameterType= "EmisWaybill" resultMap= "EmisWaybillResult" >
<include refid= "selectEmisWaybillVo" />
2024-03-01 06:47:57 +00:00
<where >
2024-05-20 23:20:20 +00:00
del_flag='0'
2024-02-29 08:23:35 +00:00
<if test= "id != null " > and id = #{id}</if>
2024-05-23 04:05:20 +00:00
<if test= "orderSn != null and orderSn != ''" > and FIND_IN_SET(`order_sn`,#{orderSn}) </if>
2024-05-23 04:45:34 +00:00
<if test= "custOrderId != null and custOrderId != ''" > and cust_order_id=#{custOrderId}</if>
2024-05-23 04:05:20 +00:00
<if test= "billCode != null and billCode != ''" > and FIND_IN_SET(`bill_code`,#{billCode}) </if>
2024-02-29 08:23:35 +00:00
<if test= "billCodeSub != null and billCodeSub != ''" > and bill_code_sub like concat('%', #{billCodeSub}, '%')</if>
<if test= "orderStatus != null and orderStatus != ''" > and order_status like concat('%', #{orderStatus}, '%')</if>
2024-04-11 05:47:34 +00:00
<if test= "waybillStatus != null and waybillStatus != ''" > and waybill_status like concat('%', #{waybillStatus}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "orderType != null and orderType != ''" > and order_type like concat('%', #{orderType}, '%')</if>
2024-03-19 12:54:06 +00:00
<if test= "orderDate != null " > and order_date = #{orderDate}</if>
2024-03-01 06:47:57 +00:00
<if test= "userId != null " > and user_id = #{userId}</if>
2024-02-29 08:23:35 +00:00
<if test= "customerCode != null and customerCode != ''" > and customer_code like concat('%', #{customerCode}, '%')</if>
<if test= "customerName != null and customerName != ''" > and customer_name like concat('%', #{customerName}, '%')</if>
<if test= "openId != null and openId != ''" > and open_id like concat('%', #{openId}, '%')</if>
<if test= "receiveName != null and receiveName != ''" > and receive_name like concat('%', #{receiveName}, '%')</if>
<if test= "receiveCompany != null and receiveCompany != ''" > and receive_company like concat('%', #{receiveCompany}, '%')</if>
<if test= "receiveMobile != null and receiveMobile != ''" > and receive_mobile like concat('%', #{receiveMobile}, '%')</if>
<if test= "receiveTel != null and receiveTel != ''" > and receive_tel like concat('%', #{receiveTel}, '%')</if>
<if test= "receiveCountry != null and receiveCountry != ''" > and receive_country like concat('%', #{receiveCountry}, '%')</if>
<if test= "receiveProvince != null and receiveProvince != ''" > and receive_province like concat('%', #{receiveProvince}, '%')</if>
<if test= "receiveCity != null and receiveCity != ''" > and receive_city like concat('%', #{receiveCity}, '%')</if>
<if test= "receiveCounty != null and receiveCounty != ''" > and receive_county like concat('%', #{receiveCounty}, '%')</if>
<if test= "receiveTown != null and receiveTown != ''" > and receive_town like concat('%', #{receiveTown}, '%')</if>
<if test= "receiveAddress != null and receiveAddress != ''" > and receive_address like concat('%', #{receiveAddress}, '%')</if>
<if test= "receivePostcode != null and receivePostcode != ''" > and receive_postcode like concat('%', #{receivePostcode}, '%')</if>
2024-04-11 05:47:34 +00:00
<if test= "receivePcd != null and receivePcd != ''" > and receive_pcd like concat('%', #{receivePcd}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "sendName != null and sendName != ''" > and send_name like concat('%', #{sendName}, '%')</if>
<if test= "sendCompany != null and sendCompany != ''" > and send_company like concat('%', #{sendCompany}, '%')</if>
<if test= "sendMobile != null and sendMobile != ''" > and send_mobile like concat('%', #{sendMobile}, '%')</if>
<if test= "sendTel != null and sendTel != ''" > and send_tel like concat('%', #{sendTel}, '%')</if>
<if test= "sendCountry != null and sendCountry != ''" > and send_country like concat('%', #{sendCountry}, '%')</if>
<if test= "sendProvince != null and sendProvince != ''" > and send_province like concat('%', #{sendProvince}, '%')</if>
<if test= "sendCity != null and sendCity != ''" > and send_city like concat('%', #{sendCity}, '%')</if>
<if test= "sendCounty != null and sendCounty != ''" > and send_county like concat('%', #{sendCounty}, '%')</if>
<if test= "sendTown != null and sendTown != ''" > and send_town like concat('%', #{sendTown}, '%')</if>
<if test= "sendAddress != null and sendAddress != ''" > and send_address like concat('%', #{sendAddress}, '%')</if>
<if test= "sendPostcode != null and sendPostcode != ''" > and send_postcode like concat('%', #{sendPostcode}, '%')</if>
2024-04-11 05:47:34 +00:00
<if test= "sendPcd != null and sendPcd != ''" > and send_pcd like concat('%', #{sendPcd}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "paymentType != null and paymentType != ''" > and payment_type like concat('%', #{paymentType}, '%')</if>
2024-03-31 15:19:52 +00:00
<if test= "calcFeeType != null and calcFeeType != ''" > and calc_fee_type like concat('%', #{calcFeeType}, '%')</if>
2024-04-11 05:47:34 +00:00
<if test= "custNo != null and custNo != ''" > and cust_no like concat('%', #{custNo}, '%')</if>
2024-05-22 23:51:32 +00:00
<if test= "custName != null and custName != ''" > and cust_name like concat('%', #{custName}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "transLineType != null and transLineType != ''" > and trans_line_type like concat('%', #{transLineType}, '%')</if>
<if test= "productType != null and productType != ''" > and product_type like concat('%', #{productType}, '%')</if>
2024-03-01 06:47:57 +00:00
<if test= "timeType != null and timeType != ''" > and time_type like concat('%', #{timeType}, '%')</if>
<if test= "meterType != null and meterType != ''" > and meter_type like concat('%', #{meterType}, '%')</if>
2024-05-20 10:24:31 +00:00
<if test= "carryType != null and carryType != ''" > and carry_type like concat('%', #{carryType}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "customsClear != null and customsClear != ''" > and customs_clear like concat('%', #{customsClear}, '%')</if>
<if test= "customsEclaration != null and customsEclaration != ''" > and customs_eclaration like concat('%', #{customsEclaration}, '%')</if>
2024-03-01 06:47:57 +00:00
<if test= "estimateDate != null " > and estimate_date = #{estimateDate}</if>
2024-02-29 08:23:35 +00:00
<if test= "packType != null and packType != ''" > and pack_type like concat('%', #{packType}, '%')</if>
<if test= "dispatchMethod != null and dispatchMethod != ''" > and dispatch_method like concat('%', #{dispatchMethod}, '%')</if>
<if test= "pickupMethod != null and pickupMethod != ''" > and pickup_method like concat('%', #{pickupMethod}, '%')</if>
<if test= "pickStartDate != null " > and pick_start_date = #{pickStartDate}</if>
<if test= "pickFinishDate != null " > and pick_finish_date = #{pickFinishDate}</if>
<if test= "pickFailReason != null and pickFailReason != ''" > and pick_fail_reason like concat('%', #{pickFailReason}, '%')</if>
<if test= "intoWarehouseCode != null and intoWarehouseCode != ''" > and into_warehouse_code like concat('%', #{intoWarehouseCode}, '%')</if>
<if test= "intoWarehouseName != null and intoWarehouseName != ''" > and into_warehouse_name like concat('%', #{intoWarehouseName}, '%')</if>
<if test= "intoWarehouseAddress != null and intoWarehouseAddress != ''" > and into_warehouse_address like concat('%', #{intoWarehouseAddress}, '%')</if>
<if test= "intoWarehouseContact != null and intoWarehouseContact != ''" > and into_warehouse_contact like concat('%', #{intoWarehouseContact}, '%')</if>
<if test= "intoWarehousePhone != null and intoWarehousePhone != ''" > and into_warehouse_phone like concat('%', #{intoWarehousePhone}, '%')</if>
<if test= "intoWarehouseBillCode != null and intoWarehouseBillCode != ''" > and into_warehouse_bill_code like concat('%', #{intoWarehouseBillCode}, '%')</if>
2024-04-27 10:31:11 +00:00
<if test= "warehouseInNo != null and warehouseInNo != ''" > and warehouse_in_no like concat('%', #{warehouseInNo}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "customerDeliveryBeginTime != null and customerDeliveryBeginTime != ''" > and customer_delivery_begin_time like concat('%', #{customerDeliveryBeginTime}, '%')</if>
<if test= "customerDeliveryEndTime != null and customerDeliveryEndTime != ''" > and customer_delivery_end_time like concat('%', #{customerDeliveryEndTime}, '%')</if>
<if test= "goodsType != null and goodsType != ''" > and goods_type like concat('%', #{goodsType}, '%')</if>
<if test= "goodsInfo != null and goodsInfo != ''" > and goods_info like concat('%', #{goodsInfo}, '%')</if>
2024-04-27 10:31:11 +00:00
<if test= "goodsPics != null and goodsPics != ''" > and goods_pics like concat('%', #{goodsPics}, '%')</if>
<if test= "blPrepareInFreight != null and blPrepareInFreight != ''" > and bl_prepare_in_freight like concat('%', #{blPrepareInFreight}, '%')</if>
<if test= "prepareInEstFee != null " > and prepare_in_est_fee = #{prepareInEstFee}</if>
<if test= "prepareInRealFee != null " > and prepare_in_real_fee = #{prepareInRealFee}</if>
<if test= "prepareInExpress != null and prepareInExpress != ''" > and prepare_in_express like concat('%', #{prepareInExpress}, '%')</if>
<if test= "prepareInBillCode != null and prepareInBillCode != ''" > and prepare_in_bill_code like concat('%', #{prepareInBillCode}, '%')</if>
<if test= "prepareInRemark != null and prepareInRemark != ''" > and prepare_in_remark like concat('%', #{prepareInRemark}, '%')</if>
<if test= "prepareInSupplier != null and prepareInSupplier != ''" > and prepare_in_supplier like concat('%', #{prepareInSupplier}, '%')</if>
2024-05-20 10:24:31 +00:00
<if test= "totalWeight != null " > and total_weight = #{totalWeight}</if>
<if test= "totalVolume != null " > and total_volume = #{totalVolume}</if>
<if test= "parcelQty != null " > and parcel_qty = #{parcelQty}</if>
<if test= "billWeight != null " > and bill_weight = #{billWeight}</if>
<if test= "volumeWeight != null " > and volume_weight = #{volumeWeight}</if>
2024-02-29 08:23:35 +00:00
<if test= "currency != null and currency != ''" > and currency like concat('%', #{currency}, '%')</if>
2024-05-20 10:24:31 +00:00
<if test= "settlementWeight != null " > and settlement_weight = #{settlementWeight}</if>
<if test= "scanWeight != null " > and scan_weight = #{scanWeight}</if>
<if test= "feeWeight != null " > and fee_weight = #{feeWeight}</if>
<if test= "freight != null " > and freight = #{freight}</if>
<if test= "realPaymentType != null and realPaymentType != ''" > and real_payment_type like concat('%', #{realPaymentType}, '%')</if>
<if test= "realFee != null " > and real_fee = #{realFee}</if>
<if test= "blSpecialQuote != null and blSpecialQuote != ''" > and bl_special_quote like concat('%', #{blSpecialQuote}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "blOverLong != null and blOverLong != ''" > and bl_over_long like concat('%', #{blOverLong}, '%')</if>
<if test= "blBill != null and blBill != ''" > and bl_bill like concat('%', #{blBill}, '%')</if>
2024-04-11 05:47:34 +00:00
<if test= "blBillText != null and blBillText != ''" > and bl_bill_text like concat('%', #{blBillText}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "blOverWeight != null and blOverWeight != ''" > and bl_over_weight like concat('%', #{blOverWeight}, '%')</if>
<if test= "overWeightNumber != null and overWeightNumber != ''" > and over_weight_number like concat('%', #{overWeightNumber}, '%')</if>
<if test= "feeRemaker != null and feeRemaker != ''" > and fee_remaker like concat('%', #{feeRemaker}, '%')</if>
<if test= "thirdCode != null and thirdCode != ''" > and third_code like concat('%', #{thirdCode}, '%')</if>
<if test= "realValue != null and realValue != ''" > and real_value like concat('%', #{realValue}, '%')</if>
<if test= "blInsure != null and blInsure != ''" > and bl_insure like concat('%', #{blInsure}, '%')</if>
<if test= "insureValue != null and insureValue != ''" > and insure_value like concat('%', #{insureValue}, '%')</if>
<if test= "insureValueCurrency != null and insureValueCurrency != ''" > and insure_value_currency like concat('%', #{insureValueCurrency}, '%')</if>
<if test= "insureFeeCurrency != null and insureFeeCurrency != ''" > and insure_fee_currency like concat('%', #{insureFeeCurrency}, '%')</if>
<if test= "insureFee != null " > and insure_fee = #{insureFee}</if>
<if test= "insureRemark != null and insureRemark != ''" > and insure_remark like concat('%', #{insureRemark}, '%')</if>
<if test= "insureSiteCode != null and insureSiteCode != ''" > and insure_site_code like concat('%', #{insureSiteCode}, '%')</if>
<if test= "insureDate != null and insureDate != ''" > and insure_date like concat('%', #{insureDate}, '%')</if>
<if test= "blPrint != null and blPrint != ''" > and bl_print like concat('%', #{blPrint}, '%')</if>
<if test= "printManCode != null and printManCode != ''" > and print_man_code like concat('%', #{printManCode}, '%')</if>
<if test= "printSite != null and printSite != ''" > and print_site like concat('%', #{printSite}, '%')</if>
<if test= "printDate != null and printDate != ''" > and print_date like concat('%', #{printDate}, '%')</if>
<if test= "printCount != null and printCount != ''" > and print_count like concat('%', #{printCount}, '%')</if>
<if test= "blDispFd != null and blDispFd != ''" > and bl_disp_fd like concat('%', #{blDispFd}, '%')</if>
<if test= "transferCode != null and transferCode != ''" > and transfer_code like concat('%', #{transferCode}, '%')</if>
<if test= "transferBillcode != null and transferBillcode != ''" > and transfer_billcode like concat('%', #{transferBillcode}, '%')</if>
2024-04-11 05:47:34 +00:00
<if test= "dispFdDate != null " > and disp_fd_date = #{dispFdDate}</if>
<if test= "dispFdReason != null and dispFdReason != ''" > and disp_fd_reason like concat('%', #{dispFdReason}, '%')</if>
2024-03-08 11:34:22 +00:00
<if test= "currentSiteCode != null and currentSiteCode != ''" > and current_site_code like concat('%', #{currentSiteCode}, '%')</if>
<if test= "nextSiteCode != null and nextSiteCode != ''" > and next_site_code like concat('%', #{nextSiteCode}, '%')</if>
<if test= "lastSiteCode != null and lastSiteCode != ''" > and last_site_code like concat('%', #{lastSiteCode}, '%')</if>
2024-03-19 12:54:06 +00:00
<if test= "registerSiteCode != null and registerSiteCode != ''" > and register_site_code like concat('%', #{registerSiteCode}, '%')</if>
<if test= "registerDate != null " > and register_date = #{registerDate}</if>
<if test= "registerManCode != null and registerManCode != ''" > and register_man_code like concat('%', #{registerManCode}, '%')</if>
<if test= "takePieceEmployeeCode != null and takePieceEmployeeCode != ''" > and take_piece_employee_code like concat('%', #{takePieceEmployeeCode}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "sendSiteCode != null and sendSiteCode != ''" > and send_site_code like concat('%', #{sendSiteCode}, '%')</if>
2024-03-19 12:54:06 +00:00
<if test= "sendDate != null " > and send_date = #{sendDate}</if>
2024-02-29 08:23:35 +00:00
<if test= "dispatchManCode != null and dispatchManCode != ''" > and dispatch_man_code like concat('%', #{dispatchManCode}, '%')</if>
<if test= "dispatchDate != null and dispatchDate != ''" > and dispatch_date like concat('%', #{dispatchDate}, '%')</if>
<if test= "dispatchSiteCode != null and dispatchSiteCode != ''" > and dispatch_site_code like concat('%', #{dispatchSiteCode}, '%')</if>
<if test= "produceBillDate != null " > and produce_bill_date = #{produceBillDate}</if>
<if test= "produceBillSiteCode != null and produceBillSiteCode != ''" > and produce_bill_site_code like concat('%', #{produceBillSiteCode}, '%')</if>
<if test= "produceBillManCode != null and produceBillManCode != ''" > and produce_bill_man_code like concat('%', #{produceBillManCode}, '%')</if>
<if test= "destinationCode != null and destinationCode != ''" > and destination_code like concat('%', #{destinationCode}, '%')</if>
<if test= "destinationProvince != null and destinationProvince != ''" > and destination_province like concat('%', #{destinationProvince}, '%')</if>
<if test= "destinationCity != null and destinationCity != ''" > and destination_city like concat('%', #{destinationCity}, '%')</if>
<if test= "destinationCounty != null and destinationCounty != ''" > and destination_county like concat('%', #{destinationCounty}, '%')</if>
2024-03-31 05:05:14 +00:00
<if test= "dispatchUnderlingSiteCode != null and dispatchUnderlingSiteCode != ''" > and dispatch_underling_site_code like concat('%', #{dispatchUnderlingSiteCode}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "destinationCenterCode != null and destinationCenterCode != ''" > and destination_center_code like concat('%', #{destinationCenterCode}, '%')</if>
<if test= "marketManCode != null and marketManCode != ''" > and market_man_code like concat('%', #{marketManCode}, '%')</if>
<if test= "payee != null and payee != ''" > and payee like concat('%', #{payee}, '%')</if>
<if test= "salesmen != null and salesmen != ''" > and salesmen like concat('%', #{salesmen}, '%')</if>
<if test= "operateEmployeeCode != null and operateEmployeeCode != ''" > and operate_employee_code like concat('%', #{operateEmployeeCode}, '%')</if>
<if test= "blIsQuestion != null and blIsQuestion != ''" > and bl_is_question like concat('%', #{blIsQuestion}, '%')</if>
2024-04-28 16:08:11 +00:00
<if test= "problemType != null and problemType != ''" > and problem_type like concat('%', #{problemType}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "problemCause != null and problemCause != ''" > and problem_cause like concat('%', #{problemCause}, '%')</if>
2024-04-28 16:08:11 +00:00
<if test= "problemDelayDays != null " > and problem_delay_days = #{problemDelayDays}</if>
2024-02-29 08:23:35 +00:00
<if test= "blMessage != null and blMessage != ''" > and bl_message like concat('%', #{blMessage}, '%')</if>
<if test= "blAcceptMessage != null and blAcceptMessage != ''" > and bl_accept_message like concat('%', #{blAcceptMessage}, '%')</if>
2024-03-31 08:38:13 +00:00
<if test= "blGenSubbill != null and blGenSubbill != ''" > and bl_gen_subbill like concat('%', #{blGenSubbill}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "signMan != null and signMan != ''" > and sign_man like concat('%', #{signMan}, '%')</if>
<if test= "signManCode != null and signManCode != ''" > and sign_man_code like concat('%', #{signManCode}, '%')</if>
<if test= "signSiteCode != null and signSiteCode != ''" > and sign_site_code like concat('%', #{signSiteCode}, '%')</if>
<if test= "signDate != null and signDate != ''" > and sign_date like concat('%', #{signDate}, '%')</if>
<if test= "billPicSendRmk != null and billPicSendRmk != ''" > and bill_pic_send_rmk like concat('%', #{billPicSendRmk}, '%')</if>
<if test= "billPicDispatchRmk != null and billPicDispatchRmk != ''" > and bill_pic_dispatch_rmk like concat('%', #{billPicDispatchRmk}, '%')</if>
2024-03-19 12:54:06 +00:00
<if test= "timezoneOffset != null and timezoneOffset != ''" > and timezone_offset like concat('%', #{timezoneOffset}, '%')</if>
2024-05-22 23:51:32 +00:00
<if test= "paymentStatus != null and paymentStatus != ''" > and payment_status like concat('%', #{paymentStatus}, '%')</if>
<if test= "paymentDate != null " > and payment_date = #{paymentDate}</if>
<if test= "paymentRemark != null and paymentRemark != ''" > and payment_remark like concat('%', #{paymentRemark}, '%')</if>
<if test= "orderRemark != null and orderRemark != ''" > and order_remark like concat('%', #{orderRemark}, '%')</if>
2024-05-20 10:24:31 +00:00
<if test= "dataFrom != null and dataFrom != ''" > and data_from like concat('%', #{dataFrom}, '%')</if>
2024-05-22 23:51:32 +00:00
<if test= "remark != null and remark != ''" > and remark like concat('%', #{remark}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "delFlag != null and delFlag != ''" > and del_flag like concat('%', #{delFlag}, '%')</if>
<if test= "createBy != null and createBy != ''" > and create_by like concat('%', #{createBy}, '%')</if>
<if test= "createTime != null " > and create_time = #{createTime}</if>
<if test= "updateBy != null and updateBy != ''" > and update_by like concat('%', #{updateBy}, '%')</if>
<if test= "updateTime != null " > and update_time = #{updateTime}</if>
2024-05-22 23:51:32 +00:00
<if test= "createSite != null and createSite != ''" > and create_site like concat('%', #{createSite}, '%')</if>
<if test= "updateSite != null and updateSite != ''" > and update_site like concat('%', #{updateSite}, '%')</if>
2024-05-12 11:19:28 +00:00
<if test= "params.beginSendDate != null and params.beginSendDate != ''" >
and send_date <![CDATA[ >= ]]> #{params.beginSendDate}
</if>
<if test= "params.endSendDate != null and params.endSendDate != ''" >
and send_date <![CDATA[ <= ]]> #{params.endSendDate}
</if>
2024-05-23 04:45:34 +00:00
<if test= "params.beginCreateTime != null and params.beginCreateTime != ''" >
2024-05-23 04:46:05 +00:00
and create_time <![CDATA[ >= ]]> #{params.beginCreateTime}
2024-05-23 04:45:34 +00:00
</if>
<if test= "params.endCreateTime != null and params.endCreateTime != ''" >
2024-05-23 04:46:05 +00:00
and create_time <![CDATA[ <= ]]> #{params.endCreateTime}
2024-05-23 04:45:34 +00:00
</if>
2024-05-12 11:19:28 +00:00
<if test= "params.printFlag != null and params.printFlag != ''" >
and bl_print=#{params.printFlag}
</if>
2024-05-28 04:41:52 +00:00
<if test= "params.isNeedPack != null and params.isNeedPack == 1" >
2024-05-28 04:41:26 +00:00
and bill_code not in( select bill_code from emis_tms_pack_dtl where del_flag='0' )
</if>
2024-05-20 23:51:51 +00:00
<if test= "params.innerQuery != null" >
2024-05-20 23:20:20 +00:00
and (
create_site=#{params.currentSiteCode}
or salesmen=#{params.currentEmpName}
or payee=#{params.currentEmpName}
)
</if>
2024-05-12 11:19:28 +00:00
2024-02-29 08:23:35 +00:00
</where>
2024-05-30 22:05:37 +00:00
2024-05-30 22:19:35 +00:00
<if test= "params.orderSnSortList != null and params.orderSnSortList.size >0 " >
2024-05-30 22:05:37 +00:00
ORDER BY FIELD
2024-05-30 22:11:08 +00:00
<foreach collection= "params.orderSnSortList" item= "name" open= "(order_sn," separator= "," close= ")" >
2024-05-30 22:05:37 +00:00
#{name}
</foreach>
,
</if>
2024-05-30 22:19:35 +00:00
<if test= "params.billCodeSortList != null and params.billCodeSortList.size >0 " >
2024-05-30 22:05:37 +00:00
ORDER BY FIELD
2024-05-30 22:11:08 +00:00
<foreach collection= "params.billCodeSortList" item= "name" open= "(bill_code," separator= "," close= ")" >
2024-05-30 22:05:37 +00:00
#{name}
</foreach>
,
</if>
2024-02-29 08:23:35 +00:00
order by create_time desc
</select>
2024-03-01 06:47:57 +00:00
2024-02-29 08:23:35 +00:00
<select id= "selectEmisWaybillById" parameterType= "Long" resultMap= "EmisWaybillResult" >
2024-05-22 23:27:08 +00:00
select id, order_sn, cust_order_id, bill_code, bill_code_sub, order_status, waybill_status, order_type, order_date, user_id, customer_code, customer_name, open_id, receive_name, receive_company, receive_mobile, receive_tel, receive_country, receive_province, receive_city, receive_county, receive_town, receive_address, receive_postcode, receive_pcd, send_name, send_company, send_mobile, send_tel, send_country, send_province, send_city, send_county, send_town, send_address, send_postcode, send_pcd, payment_type, calc_fee_type, cust_no, cust_name, trans_line_type, product_type, time_type, meter_type, carry_type, customs_clear, customs_eclaration, estimate_date, pack_type, dispatch_method, pickup_method, pick_start_date, pick_finish_date, pick_fail_reason, into_warehouse_code, into_warehouse_name, into_warehouse_address, into_warehouse_contact, into_warehouse_phone, into_warehouse_bill_code, warehouse_in_no, customer_delivery_begin_time, customer_delivery_end_time, goods_type, goods_info, goods_pics, bl_prepare_in_freight, prepare_in_est_fee, prepare_in_real_fee, prepare_in_express, prepare_in_bill_code, prepare_in_remark, prepare_in_supplier, total_weight, total_volume, parcel_qty, bill_weight, volume_weight, currency, settlement_weight, scan_weight, fee_weight, freight, real_payment_type, real_fee, bl_special_quote, bl_over_long, bl_bill, bl_bill_text, bl_over_weight, over_weight_number, fee_remaker, third_code, real_value, bl_insure, insure_value, insure_value_currency, insure_fee_currency, insure_fee, insure_remark, insure_site_code, insure_date, bl_print, print_man_code, print_site, print_date, print_count, bl_disp_fd, transfer_code, transfer_billcode, disp_fd_date, disp_fd_reason, current_site_code, next_site_code, last_site_code, register_site_code, register_date, register_man_code, take_piece_employee_code, send_site_code, send_date, dispatch_man_code, dispatch_date, dispatch_site_code, produce_bill_date, produce_bill_site_code, produce_bill_man_code, destination_code, destination_province, destination_city, destination_county, dispatch_underling_site_code, destination_center_code, market_man_code, payee, salesmen, operate_employee_code, bl_is_question, problem_type, problem_cause, problem_delay_days, bl_message, bl_accept_message, bl_gen_subbill, sign_man, sign_man_code, sign_site_code, sign_date, bill_pic_send_rmk, bill_pic_dispatch_rmk, timezone_offset, payment_status, payment_date, payment_remark, order_remark, data_from, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_waybill
2024-02-29 08:23:35 +00:00
from emis_waybill a
where a.id = #{id}
</select>
2024-03-01 06:47:57 +00:00
2024-05-21 07:17:11 +00:00
<insert id= "insertEmisWaybill" parameterType= "EmisWaybill" useGeneratedKeys= "true" keyProperty= "id" >
2024-02-29 08:23:35 +00:00
insert into emis_waybill
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
<if test= "id != null" > id,</if>
<if test= "orderSn != null and orderSn != ''" > order_sn,</if>
<if test= "custOrderId != null and custOrderId != ''" > cust_order_id,</if>
<if test= "billCode != null and billCode != ''" > bill_code,</if>
<if test= "billCodeSub != null and billCodeSub != ''" > bill_code_sub,</if>
<if test= "orderStatus != null and orderStatus != ''" > order_status,</if>
2024-04-11 05:47:34 +00:00
<if test= "waybillStatus != null and waybillStatus != ''" > waybill_status,</if>
2024-02-29 08:23:35 +00:00
<if test= "orderType != null and orderType != ''" > order_type,</if>
2024-03-19 12:54:06 +00:00
<if test= "orderDate != null" > order_date,</if>
2024-03-01 06:47:57 +00:00
<if test= "userId != null" > user_id,</if>
2024-02-29 08:23:35 +00:00
<if test= "customerCode != null and customerCode != ''" > customer_code,</if>
<if test= "customerName != null and customerName != ''" > customer_name,</if>
<if test= "openId != null and openId != ''" > open_id,</if>
<if test= "receiveName != null and receiveName != ''" > receive_name,</if>
<if test= "receiveCompany != null and receiveCompany != ''" > receive_company,</if>
<if test= "receiveMobile != null and receiveMobile != ''" > receive_mobile,</if>
<if test= "receiveTel != null and receiveTel != ''" > receive_tel,</if>
<if test= "receiveCountry != null and receiveCountry != ''" > receive_country,</if>
<if test= "receiveProvince != null and receiveProvince != ''" > receive_province,</if>
<if test= "receiveCity != null and receiveCity != ''" > receive_city,</if>
<if test= "receiveCounty != null and receiveCounty != ''" > receive_county,</if>
<if test= "receiveTown != null and receiveTown != ''" > receive_town,</if>
<if test= "receiveAddress != null and receiveAddress != ''" > receive_address,</if>
<if test= "receivePostcode != null and receivePostcode != ''" > receive_postcode,</if>
2024-04-11 05:47:34 +00:00
<if test= "receivePcd != null and receivePcd != ''" > receive_pcd,</if>
2024-02-29 08:23:35 +00:00
<if test= "sendName != null and sendName != ''" > send_name,</if>
<if test= "sendCompany != null and sendCompany != ''" > send_company,</if>
<if test= "sendMobile != null and sendMobile != ''" > send_mobile,</if>
<if test= "sendTel != null and sendTel != ''" > send_tel,</if>
<if test= "sendCountry != null and sendCountry != ''" > send_country,</if>
<if test= "sendProvince != null and sendProvince != ''" > send_province,</if>
<if test= "sendCity != null and sendCity != ''" > send_city,</if>
<if test= "sendCounty != null and sendCounty != ''" > send_county,</if>
<if test= "sendTown != null and sendTown != ''" > send_town,</if>
<if test= "sendAddress != null and sendAddress != ''" > send_address,</if>
<if test= "sendPostcode != null and sendPostcode != ''" > send_postcode,</if>
2024-04-11 05:47:34 +00:00
<if test= "sendPcd != null and sendPcd != ''" > send_pcd,</if>
2024-02-29 08:23:35 +00:00
<if test= "paymentType != null and paymentType != ''" > payment_type,</if>
2024-03-31 15:19:52 +00:00
<if test= "calcFeeType != null and calcFeeType != ''" > calc_fee_type,</if>
2024-04-11 05:47:34 +00:00
<if test= "custNo != null and custNo != ''" > cust_no,</if>
2024-05-22 23:27:08 +00:00
<if test= "custName != null and custName != ''" > cust_name,</if>
2024-02-29 08:23:35 +00:00
<if test= "transLineType != null and transLineType != ''" > trans_line_type,</if>
<if test= "productType != null and productType != ''" > product_type,</if>
2024-03-01 06:47:57 +00:00
<if test= "timeType != null and timeType != ''" > time_type,</if>
<if test= "meterType != null and meterType != ''" > meter_type,</if>
2024-05-20 10:24:31 +00:00
<if test= "carryType != null and carryType != ''" > carry_type,</if>
2024-02-29 08:23:35 +00:00
<if test= "customsClear != null and customsClear != ''" > customs_clear,</if>
<if test= "customsEclaration != null and customsEclaration != ''" > customs_eclaration,</if>
2024-03-01 06:47:57 +00:00
<if test= "estimateDate != null" > estimate_date,</if>
2024-02-29 08:23:35 +00:00
<if test= "packType != null and packType != ''" > pack_type,</if>
<if test= "dispatchMethod != null and dispatchMethod != ''" > dispatch_method,</if>
<if test= "pickupMethod != null and pickupMethod != ''" > pickup_method,</if>
<if test= "pickStartDate != null" > pick_start_date,</if>
<if test= "pickFinishDate != null" > pick_finish_date,</if>
<if test= "pickFailReason != null and pickFailReason != ''" > pick_fail_reason,</if>
<if test= "intoWarehouseCode != null and intoWarehouseCode != ''" > into_warehouse_code,</if>
<if test= "intoWarehouseName != null and intoWarehouseName != ''" > into_warehouse_name,</if>
<if test= "intoWarehouseAddress != null and intoWarehouseAddress != ''" > into_warehouse_address,</if>
<if test= "intoWarehouseContact != null and intoWarehouseContact != ''" > into_warehouse_contact,</if>
<if test= "intoWarehousePhone != null and intoWarehousePhone != ''" > into_warehouse_phone,</if>
<if test= "intoWarehouseBillCode != null and intoWarehouseBillCode != ''" > into_warehouse_bill_code,</if>
2024-04-27 10:31:11 +00:00
<if test= "warehouseInNo != null and warehouseInNo != ''" > warehouse_in_no,</if>
2024-02-29 08:23:35 +00:00
<if test= "customerDeliveryBeginTime != null and customerDeliveryBeginTime != ''" > customer_delivery_begin_time,</if>
<if test= "customerDeliveryEndTime != null and customerDeliveryEndTime != ''" > customer_delivery_end_time,</if>
<if test= "goodsType != null and goodsType != ''" > goods_type,</if>
<if test= "goodsInfo != null and goodsInfo != ''" > goods_info,</if>
2024-04-27 10:31:11 +00:00
<if test= "goodsPics != null and goodsPics != ''" > goods_pics,</if>
<if test= "blPrepareInFreight != null and blPrepareInFreight != ''" > bl_prepare_in_freight,</if>
<if test= "prepareInEstFee != null" > prepare_in_est_fee,</if>
<if test= "prepareInRealFee != null" > prepare_in_real_fee,</if>
<if test= "prepareInExpress != null and prepareInExpress != ''" > prepare_in_express,</if>
<if test= "prepareInBillCode != null and prepareInBillCode != ''" > prepare_in_bill_code,</if>
<if test= "prepareInRemark != null and prepareInRemark != ''" > prepare_in_remark,</if>
<if test= "prepareInSupplier != null and prepareInSupplier != ''" > prepare_in_supplier,</if>
2024-04-11 05:47:34 +00:00
<if test= "totalWeight != null" > total_weight,</if>
<if test= "totalVolume != null" > total_volume,</if>
<if test= "parcelQty != null" > parcel_qty,</if>
<if test= "billWeight != null" > bill_weight,</if>
<if test= "volumeWeight != null" > volume_weight,</if>
2024-02-29 08:23:35 +00:00
<if test= "currency != null and currency != ''" > currency,</if>
2024-04-11 05:47:34 +00:00
<if test= "settlementWeight != null" > settlement_weight,</if>
2024-05-20 10:24:31 +00:00
<if test= "scanWeight != null" > scan_weight,</if>
2024-04-11 05:47:34 +00:00
<if test= "feeWeight != null" > fee_weight,</if>
<if test= "freight != null" > freight,</if>
2024-05-20 10:24:31 +00:00
<if test= "realPaymentType != null and realPaymentType != ''" > real_payment_type,</if>
<if test= "realFee != null" > real_fee,</if>
<if test= "blSpecialQuote != null and blSpecialQuote != ''" > bl_special_quote,</if>
2024-02-29 08:23:35 +00:00
<if test= "blOverLong != null and blOverLong != ''" > bl_over_long,</if>
<if test= "blBill != null and blBill != ''" > bl_bill,</if>
2024-04-11 05:47:34 +00:00
<if test= "blBillText != null and blBillText != ''" > bl_bill_text,</if>
2024-02-29 08:23:35 +00:00
<if test= "blOverWeight != null and blOverWeight != ''" > bl_over_weight,</if>
<if test= "overWeightNumber != null and overWeightNumber != ''" > over_weight_number,</if>
<if test= "feeRemaker != null and feeRemaker != ''" > fee_remaker,</if>
<if test= "thirdCode != null and thirdCode != ''" > third_code,</if>
<if test= "realValue != null and realValue != ''" > real_value,</if>
<if test= "blInsure != null and blInsure != ''" > bl_insure,</if>
<if test= "insureValue != null and insureValue != ''" > insure_value,</if>
<if test= "insureValueCurrency != null and insureValueCurrency != ''" > insure_value_currency,</if>
<if test= "insureFeeCurrency != null and insureFeeCurrency != ''" > insure_fee_currency,</if>
<if test= "insureFee != null" > insure_fee,</if>
<if test= "insureRemark != null and insureRemark != ''" > insure_remark,</if>
<if test= "insureSiteCode != null and insureSiteCode != ''" > insure_site_code,</if>
<if test= "insureDate != null and insureDate != ''" > insure_date,</if>
<if test= "blPrint != null and blPrint != ''" > bl_print,</if>
<if test= "printManCode != null and printManCode != ''" > print_man_code,</if>
<if test= "printSite != null and printSite != ''" > print_site,</if>
<if test= "printDate != null and printDate != ''" > print_date,</if>
<if test= "printCount != null and printCount != ''" > print_count,</if>
<if test= "blDispFd != null and blDispFd != ''" > bl_disp_fd,</if>
<if test= "transferCode != null and transferCode != ''" > transfer_code,</if>
<if test= "transferBillcode != null and transferBillcode != ''" > transfer_billcode,</if>
2024-04-11 05:47:34 +00:00
<if test= "dispFdDate != null" > disp_fd_date,</if>
<if test= "dispFdReason != null and dispFdReason != ''" > disp_fd_reason,</if>
2024-03-08 11:34:22 +00:00
<if test= "currentSiteCode != null and currentSiteCode != ''" > current_site_code,</if>
<if test= "nextSiteCode != null and nextSiteCode != ''" > next_site_code,</if>
<if test= "lastSiteCode != null and lastSiteCode != ''" > last_site_code,</if>
2024-03-19 12:54:06 +00:00
<if test= "registerSiteCode != null and registerSiteCode != ''" > register_site_code,</if>
<if test= "registerDate != null" > register_date,</if>
<if test= "registerManCode != null and registerManCode != ''" > register_man_code,</if>
<if test= "takePieceEmployeeCode != null and takePieceEmployeeCode != ''" > take_piece_employee_code,</if>
2024-02-29 08:23:35 +00:00
<if test= "sendSiteCode != null and sendSiteCode != ''" > send_site_code,</if>
2024-03-19 12:54:06 +00:00
<if test= "sendDate != null" > send_date,</if>
2024-02-29 08:23:35 +00:00
<if test= "dispatchManCode != null and dispatchManCode != ''" > dispatch_man_code,</if>
<if test= "dispatchDate != null and dispatchDate != ''" > dispatch_date,</if>
<if test= "dispatchSiteCode != null and dispatchSiteCode != ''" > dispatch_site_code,</if>
<if test= "produceBillDate != null" > produce_bill_date,</if>
<if test= "produceBillSiteCode != null and produceBillSiteCode != ''" > produce_bill_site_code,</if>
<if test= "produceBillManCode != null and produceBillManCode != ''" > produce_bill_man_code,</if>
<if test= "destinationCode != null and destinationCode != ''" > destination_code,</if>
<if test= "destinationProvince != null and destinationProvince != ''" > destination_province,</if>
<if test= "destinationCity != null and destinationCity != ''" > destination_city,</if>
<if test= "destinationCounty != null and destinationCounty != ''" > destination_county,</if>
2024-03-31 05:05:14 +00:00
<if test= "dispatchUnderlingSiteCode != null and dispatchUnderlingSiteCode != ''" > dispatch_underling_site_code,</if>
2024-02-29 08:23:35 +00:00
<if test= "destinationCenterCode != null and destinationCenterCode != ''" > destination_center_code,</if>
<if test= "marketManCode != null and marketManCode != ''" > market_man_code,</if>
<if test= "payee != null and payee != ''" > payee,</if>
<if test= "salesmen != null and salesmen != ''" > salesmen,</if>
<if test= "operateEmployeeCode != null and operateEmployeeCode != ''" > operate_employee_code,</if>
<if test= "blIsQuestion != null and blIsQuestion != ''" > bl_is_question,</if>
2024-04-28 16:08:11 +00:00
<if test= "problemType != null and problemType != ''" > problem_type,</if>
2024-02-29 08:23:35 +00:00
<if test= "problemCause != null and problemCause != ''" > problem_cause,</if>
2024-04-28 16:08:11 +00:00
<if test= "problemDelayDays != null" > problem_delay_days,</if>
2024-02-29 08:23:35 +00:00
<if test= "blMessage != null and blMessage != ''" > bl_message,</if>
<if test= "blAcceptMessage != null and blAcceptMessage != ''" > bl_accept_message,</if>
2024-03-31 08:38:13 +00:00
<if test= "blGenSubbill != null and blGenSubbill != ''" > bl_gen_subbill,</if>
2024-02-29 08:23:35 +00:00
<if test= "signMan != null and signMan != ''" > sign_man,</if>
<if test= "signManCode != null and signManCode != ''" > sign_man_code,</if>
<if test= "signSiteCode != null and signSiteCode != ''" > sign_site_code,</if>
<if test= "signDate != null and signDate != ''" > sign_date,</if>
<if test= "billPicSendRmk != null and billPicSendRmk != ''" > bill_pic_send_rmk,</if>
<if test= "billPicDispatchRmk != null and billPicDispatchRmk != ''" > bill_pic_dispatch_rmk,</if>
2024-03-19 12:54:06 +00:00
<if test= "timezoneOffset != null and timezoneOffset != ''" > timezone_offset,</if>
2024-05-22 23:27:08 +00:00
<if test= "paymentStatus != null and paymentStatus != ''" > payment_status,</if>
<if test= "paymentDate != null" > payment_date,</if>
<if test= "paymentRemark != null and paymentRemark != ''" > payment_remark,</if>
<if test= "orderRemark != null and orderRemark != ''" > order_remark,</if>
2024-05-20 10:24:31 +00:00
<if test= "dataFrom != null and dataFrom != ''" > data_from,</if>
2024-05-22 23:27:08 +00:00
<if test= "remark != null and remark != ''" > remark,</if>
2024-02-29 08:23:35 +00:00
<if test= "delFlag != null and delFlag != ''" > del_flag,</if>
<if test= "createBy != null and createBy != ''" > create_by,</if>
<if test= "createTime != null" > create_time,</if>
<if test= "updateBy != null and updateBy != ''" > update_by,</if>
<if test= "updateTime != null" > update_time,</if>
2024-04-11 05:47:34 +00:00
<if test= "createSite != null and createSite != ''" > create_site,</if>
<if test= "updateSite != null and updateSite != ''" > update_site,</if>
2024-03-01 06:47:57 +00:00
</trim>
2024-02-29 08:23:35 +00:00
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "id != null" > #{id},</if>
<if test= "orderSn != null and orderSn != ''" > #{orderSn},</if>
<if test= "custOrderId != null and custOrderId != ''" > #{custOrderId},</if>
<if test= "billCode != null and billCode != ''" > #{billCode},</if>
<if test= "billCodeSub != null and billCodeSub != ''" > #{billCodeSub},</if>
<if test= "orderStatus != null and orderStatus != ''" > #{orderStatus},</if>
2024-04-11 05:47:34 +00:00
<if test= "waybillStatus != null and waybillStatus != ''" > #{waybillStatus},</if>
2024-02-29 08:23:35 +00:00
<if test= "orderType != null and orderType != ''" > #{orderType},</if>
2024-03-19 12:54:06 +00:00
<if test= "orderDate != null" > #{orderDate},</if>
2024-03-01 06:47:57 +00:00
<if test= "userId != null" > #{userId},</if>
2024-02-29 08:23:35 +00:00
<if test= "customerCode != null and customerCode != ''" > #{customerCode},</if>
<if test= "customerName != null and customerName != ''" > #{customerName},</if>
<if test= "openId != null and openId != ''" > #{openId},</if>
<if test= "receiveName != null and receiveName != ''" > #{receiveName},</if>
<if test= "receiveCompany != null and receiveCompany != ''" > #{receiveCompany},</if>
<if test= "receiveMobile != null and receiveMobile != ''" > #{receiveMobile},</if>
<if test= "receiveTel != null and receiveTel != ''" > #{receiveTel},</if>
<if test= "receiveCountry != null and receiveCountry != ''" > #{receiveCountry},</if>
<if test= "receiveProvince != null and receiveProvince != ''" > #{receiveProvince},</if>
<if test= "receiveCity != null and receiveCity != ''" > #{receiveCity},</if>
<if test= "receiveCounty != null and receiveCounty != ''" > #{receiveCounty},</if>
<if test= "receiveTown != null and receiveTown != ''" > #{receiveTown},</if>
<if test= "receiveAddress != null and receiveAddress != ''" > #{receiveAddress},</if>
<if test= "receivePostcode != null and receivePostcode != ''" > #{receivePostcode},</if>
2024-04-11 05:47:34 +00:00
<if test= "receivePcd != null and receivePcd != ''" > #{receivePcd},</if>
2024-02-29 08:23:35 +00:00
<if test= "sendName != null and sendName != ''" > #{sendName},</if>
<if test= "sendCompany != null and sendCompany != ''" > #{sendCompany},</if>
<if test= "sendMobile != null and sendMobile != ''" > #{sendMobile},</if>
<if test= "sendTel != null and sendTel != ''" > #{sendTel},</if>
<if test= "sendCountry != null and sendCountry != ''" > #{sendCountry},</if>
<if test= "sendProvince != null and sendProvince != ''" > #{sendProvince},</if>
<if test= "sendCity != null and sendCity != ''" > #{sendCity},</if>
<if test= "sendCounty != null and sendCounty != ''" > #{sendCounty},</if>
<if test= "sendTown != null and sendTown != ''" > #{sendTown},</if>
<if test= "sendAddress != null and sendAddress != ''" > #{sendAddress},</if>
<if test= "sendPostcode != null and sendPostcode != ''" > #{sendPostcode},</if>
2024-04-11 05:47:34 +00:00
<if test= "sendPcd != null and sendPcd != ''" > #{sendPcd},</if>
2024-02-29 08:23:35 +00:00
<if test= "paymentType != null and paymentType != ''" > #{paymentType},</if>
2024-03-31 15:19:52 +00:00
<if test= "calcFeeType != null and calcFeeType != ''" > #{calcFeeType},</if>
2024-04-11 05:47:34 +00:00
<if test= "custNo != null and custNo != ''" > #{custNo},</if>
2024-05-22 23:27:08 +00:00
<if test= "custName != null and custName != ''" > #{custName},</if>
2024-02-29 08:23:35 +00:00
<if test= "transLineType != null and transLineType != ''" > #{transLineType},</if>
<if test= "productType != null and productType != ''" > #{productType},</if>
2024-03-01 06:47:57 +00:00
<if test= "timeType != null and timeType != ''" > #{timeType},</if>
<if test= "meterType != null and meterType != ''" > #{meterType},</if>
2024-05-20 10:24:31 +00:00
<if test= "carryType != null and carryType != ''" > #{carryType},</if>
2024-02-29 08:23:35 +00:00
<if test= "customsClear != null and customsClear != ''" > #{customsClear},</if>
<if test= "customsEclaration != null and customsEclaration != ''" > #{customsEclaration},</if>
2024-03-01 06:47:57 +00:00
<if test= "estimateDate != null" > #{estimateDate},</if>
2024-02-29 08:23:35 +00:00
<if test= "packType != null and packType != ''" > #{packType},</if>
<if test= "dispatchMethod != null and dispatchMethod != ''" > #{dispatchMethod},</if>
<if test= "pickupMethod != null and pickupMethod != ''" > #{pickupMethod},</if>
<if test= "pickStartDate != null" > #{pickStartDate},</if>
<if test= "pickFinishDate != null" > #{pickFinishDate},</if>
<if test= "pickFailReason != null and pickFailReason != ''" > #{pickFailReason},</if>
<if test= "intoWarehouseCode != null and intoWarehouseCode != ''" > #{intoWarehouseCode},</if>
<if test= "intoWarehouseName != null and intoWarehouseName != ''" > #{intoWarehouseName},</if>
<if test= "intoWarehouseAddress != null and intoWarehouseAddress != ''" > #{intoWarehouseAddress},</if>
<if test= "intoWarehouseContact != null and intoWarehouseContact != ''" > #{intoWarehouseContact},</if>
<if test= "intoWarehousePhone != null and intoWarehousePhone != ''" > #{intoWarehousePhone},</if>
<if test= "intoWarehouseBillCode != null and intoWarehouseBillCode != ''" > #{intoWarehouseBillCode},</if>
2024-04-27 10:31:11 +00:00
<if test= "warehouseInNo != null and warehouseInNo != ''" > #{warehouseInNo},</if>
2024-02-29 08:23:35 +00:00
<if test= "customerDeliveryBeginTime != null and customerDeliveryBeginTime != ''" > #{customerDeliveryBeginTime},</if>
<if test= "customerDeliveryEndTime != null and customerDeliveryEndTime != ''" > #{customerDeliveryEndTime},</if>
<if test= "goodsType != null and goodsType != ''" > #{goodsType},</if>
<if test= "goodsInfo != null and goodsInfo != ''" > #{goodsInfo},</if>
2024-04-27 10:31:11 +00:00
<if test= "goodsPics != null and goodsPics != ''" > #{goodsPics},</if>
<if test= "blPrepareInFreight != null and blPrepareInFreight != ''" > #{blPrepareInFreight},</if>
<if test= "prepareInEstFee != null" > #{prepareInEstFee},</if>
<if test= "prepareInRealFee != null" > #{prepareInRealFee},</if>
<if test= "prepareInExpress != null and prepareInExpress != ''" > #{prepareInExpress},</if>
<if test= "prepareInBillCode != null and prepareInBillCode != ''" > #{prepareInBillCode},</if>
<if test= "prepareInRemark != null and prepareInRemark != ''" > #{prepareInRemark},</if>
<if test= "prepareInSupplier != null and prepareInSupplier != ''" > #{prepareInSupplier},</if>
2024-04-11 05:47:34 +00:00
<if test= "totalWeight != null" > #{totalWeight},</if>
<if test= "totalVolume != null" > #{totalVolume},</if>
<if test= "parcelQty != null" > #{parcelQty},</if>
<if test= "billWeight != null" > #{billWeight},</if>
<if test= "volumeWeight != null" > #{volumeWeight},</if>
2024-02-29 08:23:35 +00:00
<if test= "currency != null and currency != ''" > #{currency},</if>
2024-04-11 05:47:34 +00:00
<if test= "settlementWeight != null" > #{settlementWeight},</if>
2024-05-20 10:24:31 +00:00
<if test= "scanWeight != null" > #{scanWeight},</if>
2024-04-11 05:47:34 +00:00
<if test= "feeWeight != null" > #{feeWeight},</if>
<if test= "freight != null" > #{freight},</if>
2024-05-20 10:24:31 +00:00
<if test= "realPaymentType != null and realPaymentType != ''" > #{realPaymentType},</if>
<if test= "realFee != null" > #{realFee},</if>
<if test= "blSpecialQuote != null and blSpecialQuote != ''" > #{blSpecialQuote},</if>
2024-02-29 08:23:35 +00:00
<if test= "blOverLong != null and blOverLong != ''" > #{blOverLong},</if>
<if test= "blBill != null and blBill != ''" > #{blBill},</if>
2024-04-11 05:47:34 +00:00
<if test= "blBillText != null and blBillText != ''" > #{blBillText},</if>
2024-02-29 08:23:35 +00:00
<if test= "blOverWeight != null and blOverWeight != ''" > #{blOverWeight},</if>
<if test= "overWeightNumber != null and overWeightNumber != ''" > #{overWeightNumber},</if>
<if test= "feeRemaker != null and feeRemaker != ''" > #{feeRemaker},</if>
<if test= "thirdCode != null and thirdCode != ''" > #{thirdCode},</if>
<if test= "realValue != null and realValue != ''" > #{realValue},</if>
<if test= "blInsure != null and blInsure != ''" > #{blInsure},</if>
<if test= "insureValue != null and insureValue != ''" > #{insureValue},</if>
<if test= "insureValueCurrency != null and insureValueCurrency != ''" > #{insureValueCurrency},</if>
<if test= "insureFeeCurrency != null and insureFeeCurrency != ''" > #{insureFeeCurrency},</if>
<if test= "insureFee != null" > #{insureFee},</if>
<if test= "insureRemark != null and insureRemark != ''" > #{insureRemark},</if>
<if test= "insureSiteCode != null and insureSiteCode != ''" > #{insureSiteCode},</if>
<if test= "insureDate != null and insureDate != ''" > #{insureDate},</if>
<if test= "blPrint != null and blPrint != ''" > #{blPrint},</if>
<if test= "printManCode != null and printManCode != ''" > #{printManCode},</if>
<if test= "printSite != null and printSite != ''" > #{printSite},</if>
<if test= "printDate != null and printDate != ''" > #{printDate},</if>
<if test= "printCount != null and printCount != ''" > #{printCount},</if>
<if test= "blDispFd != null and blDispFd != ''" > #{blDispFd},</if>
<if test= "transferCode != null and transferCode != ''" > #{transferCode},</if>
<if test= "transferBillcode != null and transferBillcode != ''" > #{transferBillcode},</if>
2024-04-11 05:47:34 +00:00
<if test= "dispFdDate != null" > #{dispFdDate},</if>
<if test= "dispFdReason != null and dispFdReason != ''" > #{dispFdReason},</if>
2024-03-08 11:34:22 +00:00
<if test= "currentSiteCode != null and currentSiteCode != ''" > #{currentSiteCode},</if>
<if test= "nextSiteCode != null and nextSiteCode != ''" > #{nextSiteCode},</if>
<if test= "lastSiteCode != null and lastSiteCode != ''" > #{lastSiteCode},</if>
2024-03-19 12:54:06 +00:00
<if test= "registerSiteCode != null and registerSiteCode != ''" > #{registerSiteCode},</if>
<if test= "registerDate != null" > #{registerDate},</if>
<if test= "registerManCode != null and registerManCode != ''" > #{registerManCode},</if>
<if test= "takePieceEmployeeCode != null and takePieceEmployeeCode != ''" > #{takePieceEmployeeCode},</if>
2024-02-29 08:23:35 +00:00
<if test= "sendSiteCode != null and sendSiteCode != ''" > #{sendSiteCode},</if>
2024-03-19 12:54:06 +00:00
<if test= "sendDate != null" > #{sendDate},</if>
2024-02-29 08:23:35 +00:00
<if test= "dispatchManCode != null and dispatchManCode != ''" > #{dispatchManCode},</if>
<if test= "dispatchDate != null and dispatchDate != ''" > #{dispatchDate},</if>
<if test= "dispatchSiteCode != null and dispatchSiteCode != ''" > #{dispatchSiteCode},</if>
<if test= "produceBillDate != null" > #{produceBillDate},</if>
<if test= "produceBillSiteCode != null and produceBillSiteCode != ''" > #{produceBillSiteCode},</if>
<if test= "produceBillManCode != null and produceBillManCode != ''" > #{produceBillManCode},</if>
<if test= "destinationCode != null and destinationCode != ''" > #{destinationCode},</if>
<if test= "destinationProvince != null and destinationProvince != ''" > #{destinationProvince},</if>
<if test= "destinationCity != null and destinationCity != ''" > #{destinationCity},</if>
<if test= "destinationCounty != null and destinationCounty != ''" > #{destinationCounty},</if>
2024-03-31 05:05:14 +00:00
<if test= "dispatchUnderlingSiteCode != null and dispatchUnderlingSiteCode != ''" > #{dispatchUnderlingSiteCode},</if>
2024-02-29 08:23:35 +00:00
<if test= "destinationCenterCode != null and destinationCenterCode != ''" > #{destinationCenterCode},</if>
<if test= "marketManCode != null and marketManCode != ''" > #{marketManCode},</if>
<if test= "payee != null and payee != ''" > #{payee},</if>
<if test= "salesmen != null and salesmen != ''" > #{salesmen},</if>
<if test= "operateEmployeeCode != null and operateEmployeeCode != ''" > #{operateEmployeeCode},</if>
<if test= "blIsQuestion != null and blIsQuestion != ''" > #{blIsQuestion},</if>
2024-04-28 16:08:11 +00:00
<if test= "problemType != null and problemType != ''" > #{problemType},</if>
2024-02-29 08:23:35 +00:00
<if test= "problemCause != null and problemCause != ''" > #{problemCause},</if>
2024-04-28 16:08:11 +00:00
<if test= "problemDelayDays != null" > #{problemDelayDays},</if>
2024-02-29 08:23:35 +00:00
<if test= "blMessage != null and blMessage != ''" > #{blMessage},</if>
<if test= "blAcceptMessage != null and blAcceptMessage != ''" > #{blAcceptMessage},</if>
2024-03-31 08:38:13 +00:00
<if test= "blGenSubbill != null and blGenSubbill != ''" > #{blGenSubbill},</if>
2024-02-29 08:23:35 +00:00
<if test= "signMan != null and signMan != ''" > #{signMan},</if>
<if test= "signManCode != null and signManCode != ''" > #{signManCode},</if>
<if test= "signSiteCode != null and signSiteCode != ''" > #{signSiteCode},</if>
<if test= "signDate != null and signDate != ''" > #{signDate},</if>
<if test= "billPicSendRmk != null and billPicSendRmk != ''" > #{billPicSendRmk},</if>
<if test= "billPicDispatchRmk != null and billPicDispatchRmk != ''" > #{billPicDispatchRmk},</if>
2024-03-19 12:54:06 +00:00
<if test= "timezoneOffset != null and timezoneOffset != ''" > #{timezoneOffset},</if>
2024-05-22 23:27:08 +00:00
<if test= "paymentStatus != null and paymentStatus != ''" > #{paymentStatus},</if>
<if test= "paymentDate != null" > #{paymentDate},</if>
<if test= "paymentRemark != null and paymentRemark != ''" > #{paymentRemark},</if>
<if test= "orderRemark != null and orderRemark != ''" > #{orderRemark},</if>
2024-05-20 10:24:31 +00:00
<if test= "dataFrom != null and dataFrom != ''" > #{dataFrom},</if>
2024-05-22 23:27:08 +00:00
<if test= "remark != null and remark != ''" > #{remark},</if>
2024-02-29 08:23:35 +00:00
<if test= "delFlag != null and delFlag != ''" > #{delFlag},</if>
<if test= "createBy != null and createBy != ''" > #{createBy},</if>
<if test= "createTime != null" > #{createTime},</if>
<if test= "updateBy != null and updateBy != ''" > #{updateBy},</if>
<if test= "updateTime != null" > #{updateTime},</if>
2024-04-11 05:47:34 +00:00
<if test= "createSite != null and createSite != ''" > #{createSite},</if>
<if test= "updateSite != null and updateSite != ''" > #{updateSite},</if>
2024-03-01 06:47:57 +00:00
</trim>
2024-02-29 08:23:35 +00:00
</insert>
2024-05-20 10:24:31 +00:00
2024-02-29 08:23:35 +00:00
<update id= "updateEmisWaybill" parameterType= "EmisWaybill" >
update emis_waybill
<trim prefix= "SET" suffixOverrides= "," >
2024-05-20 09:42:50 +00:00
<if test= "custOrderId != null and custOrderId != ''" > cust_order_id = #{custOrderId},</if>
2024-02-29 08:23:35 +00:00
<if test= "billCodeSub != null and billCodeSub != ''" > bill_code_sub = #{billCodeSub},</if>
2024-05-20 09:42:50 +00:00
<if test= "orderType != null and orderType != ''" > order_type = #{orderType},</if>
<if test= "orderDate != null" > order_date = #{orderDate},</if>
<if test= "userId != null" > user_id = #{userId},</if>
<if test= "customerCode != null and customerCode != ''" > customer_code = #{customerCode},</if>
<if test= "customerName != null and customerName != ''" > customer_name = #{customerName},</if>
<if test= "openId != null and openId != ''" > open_id = #{openId},</if>
2024-02-29 08:23:35 +00:00
<if test= "receiveName != null and receiveName != ''" > receive_name = #{receiveName},</if>
<if test= "receiveCompany != null and receiveCompany != ''" > receive_company = #{receiveCompany},</if>
<if test= "receiveMobile != null and receiveMobile != ''" > receive_mobile = #{receiveMobile},</if>
<if test= "receiveTel != null and receiveTel != ''" > receive_tel = #{receiveTel},</if>
<if test= "receiveCountry != null and receiveCountry != ''" > receive_country = #{receiveCountry},</if>
<if test= "receiveProvince != null and receiveProvince != ''" > receive_province = #{receiveProvince},</if>
<if test= "receiveCity != null and receiveCity != ''" > receive_city = #{receiveCity},</if>
<if test= "receiveCounty != null and receiveCounty != ''" > receive_county = #{receiveCounty},</if>
<if test= "receiveTown != null and receiveTown != ''" > receive_town = #{receiveTown},</if>
<if test= "receiveAddress != null and receiveAddress != ''" > receive_address = #{receiveAddress},</if>
<if test= "receivePostcode != null and receivePostcode != ''" > receive_postcode = #{receivePostcode},</if>
2024-04-11 05:47:34 +00:00
<if test= "receivePcd != null and receivePcd != ''" > receive_pcd = #{receivePcd},</if>
2024-02-29 08:23:35 +00:00
<if test= "sendName != null and sendName != ''" > send_name = #{sendName},</if>
<if test= "sendCompany != null and sendCompany != ''" > send_company = #{sendCompany},</if>
<if test= "sendMobile != null and sendMobile != ''" > send_mobile = #{sendMobile},</if>
<if test= "sendTel != null and sendTel != ''" > send_tel = #{sendTel},</if>
<if test= "sendCountry != null and sendCountry != ''" > send_country = #{sendCountry},</if>
<if test= "sendProvince != null and sendProvince != ''" > send_province = #{sendProvince},</if>
<if test= "sendCity != null and sendCity != ''" > send_city = #{sendCity},</if>
<if test= "sendCounty != null and sendCounty != ''" > send_county = #{sendCounty},</if>
<if test= "sendTown != null and sendTown != ''" > send_town = #{sendTown},</if>
<if test= "sendAddress != null and sendAddress != ''" > send_address = #{sendAddress},</if>
<if test= "sendPostcode != null and sendPostcode != ''" > send_postcode = #{sendPostcode},</if>
2024-04-11 05:47:34 +00:00
<if test= "sendPcd != null and sendPcd != ''" > send_pcd = #{sendPcd},</if>
2024-02-29 08:23:35 +00:00
<if test= "paymentType != null and paymentType != ''" > payment_type = #{paymentType},</if>
2024-03-31 15:19:52 +00:00
<if test= "calcFeeType != null and calcFeeType != ''" > calc_fee_type = #{calcFeeType},</if>
2024-04-11 05:47:34 +00:00
<if test= "custNo != null and custNo != ''" > cust_no = #{custNo},</if>
2024-05-22 23:27:08 +00:00
<if test= "custName != null and custName != ''" > cust_name = #{custName},</if>
2024-02-29 08:23:35 +00:00
<if test= "transLineType != null and transLineType != ''" > trans_line_type = #{transLineType},</if>
<if test= "productType != null and productType != ''" > product_type = #{productType},</if>
2024-03-01 06:47:57 +00:00
<if test= "timeType != null and timeType != ''" > time_type = #{timeType},</if>
<if test= "meterType != null and meterType != ''" > meter_type = #{meterType},</if>
2024-05-20 09:42:50 +00:00
<if test= "carryType != null and carryType != ''" > carry_type = #{carryType},</if>
2024-02-29 08:23:35 +00:00
<if test= "customsClear != null and customsClear != ''" > customs_clear = #{customsClear},</if>
<if test= "customsEclaration != null and customsEclaration != ''" > customs_eclaration = #{customsEclaration},</if>
2024-03-01 06:47:57 +00:00
<if test= "estimateDate != null" > estimate_date = #{estimateDate},</if>
2024-02-29 08:23:35 +00:00
<if test= "packType != null and packType != ''" > pack_type = #{packType},</if>
<if test= "dispatchMethod != null and dispatchMethod != ''" > dispatch_method = #{dispatchMethod},</if>
<if test= "pickupMethod != null and pickupMethod != ''" > pickup_method = #{pickupMethod},</if>
<if test= "pickStartDate != null" > pick_start_date = #{pickStartDate},</if>
<if test= "pickFinishDate != null" > pick_finish_date = #{pickFinishDate},</if>
<if test= "pickFailReason != null and pickFailReason != ''" > pick_fail_reason = #{pickFailReason},</if>
<if test= "intoWarehouseCode != null and intoWarehouseCode != ''" > into_warehouse_code = #{intoWarehouseCode},</if>
<if test= "intoWarehouseName != null and intoWarehouseName != ''" > into_warehouse_name = #{intoWarehouseName},</if>
<if test= "intoWarehouseAddress != null and intoWarehouseAddress != ''" > into_warehouse_address = #{intoWarehouseAddress},</if>
<if test= "intoWarehouseContact != null and intoWarehouseContact != ''" > into_warehouse_contact = #{intoWarehouseContact},</if>
<if test= "intoWarehousePhone != null and intoWarehousePhone != ''" > into_warehouse_phone = #{intoWarehousePhone},</if>
<if test= "intoWarehouseBillCode != null and intoWarehouseBillCode != ''" > into_warehouse_bill_code = #{intoWarehouseBillCode},</if>
2024-04-27 10:31:11 +00:00
<if test= "warehouseInNo != null and warehouseInNo != ''" > warehouse_in_no = #{warehouseInNo},</if>
2024-02-29 08:23:35 +00:00
<if test= "customerDeliveryBeginTime != null and customerDeliveryBeginTime != ''" > customer_delivery_begin_time = #{customerDeliveryBeginTime},</if>
<if test= "customerDeliveryEndTime != null and customerDeliveryEndTime != ''" > customer_delivery_end_time = #{customerDeliveryEndTime},</if>
<if test= "goodsType != null and goodsType != ''" > goods_type = #{goodsType},</if>
<if test= "goodsInfo != null and goodsInfo != ''" > goods_info = #{goodsInfo},</if>
2024-04-27 10:31:11 +00:00
<if test= "goodsPics != null and goodsPics != ''" > goods_pics = #{goodsPics},</if>
<if test= "blPrepareInFreight != null and blPrepareInFreight != ''" > bl_prepare_in_freight = #{blPrepareInFreight},</if>
<if test= "prepareInEstFee != null" > prepare_in_est_fee = #{prepareInEstFee},</if>
<if test= "prepareInRealFee != null" > prepare_in_real_fee = #{prepareInRealFee},</if>
<if test= "prepareInExpress != null and prepareInExpress != ''" > prepare_in_express = #{prepareInExpress},</if>
<if test= "prepareInBillCode != null and prepareInBillCode != ''" > prepare_in_bill_code = #{prepareInBillCode},</if>
<if test= "prepareInRemark != null and prepareInRemark != ''" > prepare_in_remark = #{prepareInRemark},</if>
<if test= "prepareInSupplier != null and prepareInSupplier != ''" > prepare_in_supplier = #{prepareInSupplier},</if>
2024-04-11 05:47:34 +00:00
<if test= "totalWeight != null" > total_weight = #{totalWeight},</if>
<if test= "totalVolume != null" > total_volume = #{totalVolume},</if>
<if test= "parcelQty != null" > parcel_qty = #{parcelQty},</if>
<if test= "billWeight != null" > bill_weight = #{billWeight},</if>
<if test= "volumeWeight != null" > volume_weight = #{volumeWeight},</if>
2024-02-29 08:23:35 +00:00
<if test= "currency != null and currency != ''" > currency = #{currency},</if>
2024-04-11 05:47:34 +00:00
<if test= "settlementWeight != null" > settlement_weight = #{settlementWeight},</if>
2024-05-20 09:42:50 +00:00
<if test= "scanWeight != null" > scan_weight = #{scanWeight},</if>
2024-04-11 05:47:34 +00:00
<if test= "feeWeight != null" > fee_weight = #{feeWeight},</if>
<if test= "freight != null" > freight = #{freight},</if>
2024-05-20 09:42:50 +00:00
<if test= "realPaymentType != null and realPaymentType != ''" > real_payment_type = #{realPaymentType},</if>
<if test= "realFee != null" > real_fee = #{realFee},</if>
<if test= "blSpecialQuote != null and blSpecialQuote != ''" > bl_special_quote = #{blSpecialQuote},</if>
2024-02-29 08:23:35 +00:00
<if test= "blOverLong != null and blOverLong != ''" > bl_over_long = #{blOverLong},</if>
2024-05-20 09:42:50 +00:00
<if test= "blBill != null and blBill != ''" > bl_bill = #{blBill},</if>
<if test= "blBillText != null and blBillText != ''" > bl_bill_text = #{blBillText},</if>
2024-02-29 08:23:35 +00:00
<if test= "blOverWeight != null and blOverWeight != ''" > bl_over_weight = #{blOverWeight},</if>
<if test= "overWeightNumber != null and overWeightNumber != ''" > over_weight_number = #{overWeightNumber},</if>
<if test= "feeRemaker != null and feeRemaker != ''" > fee_remaker = #{feeRemaker},</if>
<if test= "thirdCode != null and thirdCode != ''" > third_code = #{thirdCode},</if>
<if test= "realValue != null and realValue != ''" > real_value = #{realValue},</if>
<if test= "blInsure != null and blInsure != ''" > bl_insure = #{blInsure},</if>
<if test= "insureValue != null and insureValue != ''" > insure_value = #{insureValue},</if>
<if test= "insureValueCurrency != null and insureValueCurrency != ''" > insure_value_currency = #{insureValueCurrency},</if>
<if test= "insureFeeCurrency != null and insureFeeCurrency != ''" > insure_fee_currency = #{insureFeeCurrency},</if>
<if test= "insureFee != null" > insure_fee = #{insureFee},</if>
<if test= "insureRemark != null and insureRemark != ''" > insure_remark = #{insureRemark},</if>
<if test= "insureSiteCode != null and insureSiteCode != ''" > insure_site_code = #{insureSiteCode},</if>
<if test= "insureDate != null and insureDate != ''" > insure_date = #{insureDate},</if>
2024-05-20 09:42:50 +00:00
<if test= "blPrint != null and blPrint != ''" > bl_print = #{blPrint},</if>
<if test= "printManCode != null and printManCode != ''" > print_man_code = #{printManCode},</if>
<if test= "printSite != null and printSite != ''" > print_site = #{printSite},</if>
<if test= "printDate != null and printDate != ''" > print_date = #{printDate},</if>
<if test= "printCount != null and printCount != ''" > print_count = #{printCount},</if>
<if test= "blDispFd != null and blDispFd != ''" > bl_disp_fd = #{blDispFd},</if>
<if test= "transferCode != null and transferCode != ''" > transfer_code = #{transferCode},</if>
<if test= "transferBillcode != null and transferBillcode != ''" > transfer_billcode = #{transferBillcode},</if>
<if test= "dispFdDate != null" > disp_fd_date = #{dispFdDate},</if>
<if test= "dispFdReason != null and dispFdReason != ''" > disp_fd_reason = #{dispFdReason},</if>
<if test= "currentSiteCode != null and currentSiteCode != ''" > current_site_code = #{currentSiteCode},</if>
<if test= "nextSiteCode != null and nextSiteCode != ''" > next_site_code = #{nextSiteCode},</if>
<if test= "lastSiteCode != null and lastSiteCode != ''" > last_site_code = #{lastSiteCode},</if>
<if test= "registerSiteCode != null and registerSiteCode != ''" > register_site_code = #{registerSiteCode},</if>
<if test= "registerDate != null" > register_date = #{registerDate},</if>
<if test= "registerManCode != null and registerManCode != ''" > register_man_code = #{registerManCode},</if>
2024-03-19 12:54:06 +00:00
<if test= "takePieceEmployeeCode != null and takePieceEmployeeCode != ''" > take_piece_employee_code = #{takePieceEmployeeCode},</if>
2024-05-20 09:42:50 +00:00
<if test= "sendSiteCode != null and sendSiteCode != ''" > send_site_code = #{sendSiteCode},</if>
<if test= "sendDate != null" > send_date = #{sendDate},</if>
<if test= "dispatchManCode != null and dispatchManCode != ''" > dispatch_man_code = #{dispatchManCode},</if>
<if test= "dispatchDate != null and dispatchDate != ''" > dispatch_date = #{dispatchDate},</if>
<if test= "dispatchSiteCode != null and dispatchSiteCode != ''" > dispatch_site_code = #{dispatchSiteCode},</if>
<if test= "produceBillDate != null" > produce_bill_date = #{produceBillDate},</if>
<if test= "produceBillSiteCode != null and produceBillSiteCode != ''" > produce_bill_site_code = #{produceBillSiteCode},</if>
<if test= "produceBillManCode != null and produceBillManCode != ''" > produce_bill_man_code = #{produceBillManCode},</if>
2024-02-29 08:23:35 +00:00
<if test= "destinationCode != null and destinationCode != ''" > destination_code = #{destinationCode},</if>
<if test= "destinationProvince != null and destinationProvince != ''" > destination_province = #{destinationProvince},</if>
<if test= "destinationCity != null and destinationCity != ''" > destination_city = #{destinationCity},</if>
<if test= "destinationCounty != null and destinationCounty != ''" > destination_county = #{destinationCounty},</if>
2024-03-31 05:05:14 +00:00
<if test= "dispatchUnderlingSiteCode != null and dispatchUnderlingSiteCode != ''" > dispatch_underling_site_code = #{dispatchUnderlingSiteCode},</if>
2024-02-29 08:23:35 +00:00
<if test= "destinationCenterCode != null and destinationCenterCode != ''" > destination_center_code = #{destinationCenterCode},</if>
<if test= "marketManCode != null and marketManCode != ''" > market_man_code = #{marketManCode},</if>
<if test= "payee != null and payee != ''" > payee = #{payee},</if>
<if test= "salesmen != null and salesmen != ''" > salesmen = #{salesmen},</if>
<if test= "operateEmployeeCode != null and operateEmployeeCode != ''" > operate_employee_code = #{operateEmployeeCode},</if>
2024-05-20 09:42:50 +00:00
<if test= "blIsQuestion != null and blIsQuestion != ''" > bl_is_question = #{blIsQuestion},</if>
<if test= "problemType != null and problemType != ''" > problem_type = #{problemType},</if>
<if test= "problemCause != null and problemCause != ''" > problem_cause = #{problemCause},</if>
<if test= "problemDelayDays != null" > problem_delay_days = #{problemDelayDays},</if>
2024-02-29 08:23:35 +00:00
<if test= "blMessage != null and blMessage != ''" > bl_message = #{blMessage},</if>
<if test= "blAcceptMessage != null and blAcceptMessage != ''" > bl_accept_message = #{blAcceptMessage},</if>
2024-05-20 09:42:50 +00:00
<if test= "blGenSubbill != null and blGenSubbill != ''" > bl_gen_subbill = #{blGenSubbill},</if>
<if test= "signMan != null and signMan != ''" > sign_man = #{signMan},</if>
<if test= "signManCode != null and signManCode != ''" > sign_man_code = #{signManCode},</if>
<if test= "signSiteCode != null and signSiteCode != ''" > sign_site_code = #{signSiteCode},</if>
<if test= "signDate != null and signDate != ''" > sign_date = #{signDate},</if>
<if test= "billPicSendRmk != null and billPicSendRmk != ''" > bill_pic_send_rmk = #{billPicSendRmk},</if>
<if test= "billPicDispatchRmk != null and billPicDispatchRmk != ''" > bill_pic_dispatch_rmk = #{billPicDispatchRmk},</if>
<if test= "timezoneOffset != null and timezoneOffset != ''" > timezone_offset = #{timezoneOffset},</if>
2024-05-22 23:27:08 +00:00
<if test= "paymentStatus != null and paymentStatus != ''" > payment_status = #{paymentStatus},</if>
<if test= "paymentDate != null" > payment_date = #{paymentDate},</if>
<if test= "paymentRemark != null and paymentRemark != ''" > payment_remark = #{paymentRemark},</if>
<if test= "orderRemark != null and orderRemark != ''" > order_remark = #{orderRemark},</if>
2024-05-20 09:42:50 +00:00
<if test= "dataFrom != null and dataFrom != ''" > data_from = #{dataFrom},</if>
2024-05-22 23:27:08 +00:00
<if test= "remark != null and remark != ''" > remark = #{remark},</if>
2024-05-20 09:42:50 +00:00
<if test= "delFlag != null and delFlag != ''" > del_flag = #{delFlag},</if>
<if test= "createBy != null and createBy != ''" > create_by = #{createBy},</if>
<if test= "createTime != null" > create_time = #{createTime},</if>
2024-02-29 08:23:35 +00:00
<if test= "updateBy != null and updateBy != ''" > update_by = #{updateBy},</if>
<if test= "updateTime != null" > update_time = #{updateTime},</if>
2024-05-20 09:42:50 +00:00
<if test= "createSite != null and createSite != ''" > create_site = #{createSite},</if>
2024-04-11 05:47:34 +00:00
<if test= "updateSite != null and updateSite != ''" > update_site = #{updateSite},</if>
2024-02-29 08:23:35 +00:00
</trim>
where id = #{id}
</update>
2024-05-20 09:42:50 +00:00
<update id= "updateEmisWaybillByBillCode" parameterType= "EmisWaybill" >
update emis_waybill
<trim prefix= "SET" suffixOverrides= "," >
<if test= "custOrderId != null and custOrderId != ''" > cust_order_id = #{custOrderId},</if>
<if test= "billCodeSub != null and billCodeSub != ''" > bill_code_sub = #{billCodeSub},</if>
<if test= "orderType != null and orderType != ''" > order_type = #{orderType},</if>
<if test= "orderDate != null" > order_date = #{orderDate},</if>
<if test= "userId != null" > user_id = #{userId},</if>
<if test= "customerCode != null and customerCode != ''" > customer_code = #{customerCode},</if>
<if test= "customerName != null and customerName != ''" > customer_name = #{customerName},</if>
<if test= "openId != null and openId != ''" > open_id = #{openId},</if>
<if test= "receiveName != null and receiveName != ''" > receive_name = #{receiveName},</if>
<if test= "receiveCompany != null and receiveCompany != ''" > receive_company = #{receiveCompany},</if>
<if test= "receiveMobile != null and receiveMobile != ''" > receive_mobile = #{receiveMobile},</if>
<if test= "receiveTel != null and receiveTel != ''" > receive_tel = #{receiveTel},</if>
<if test= "receiveCountry != null and receiveCountry != ''" > receive_country = #{receiveCountry},</if>
<if test= "receiveProvince != null and receiveProvince != ''" > receive_province = #{receiveProvince},</if>
<if test= "receiveCity != null and receiveCity != ''" > receive_city = #{receiveCity},</if>
<if test= "receiveCounty != null and receiveCounty != ''" > receive_county = #{receiveCounty},</if>
<if test= "receiveTown != null and receiveTown != ''" > receive_town = #{receiveTown},</if>
<if test= "receiveAddress != null and receiveAddress != ''" > receive_address = #{receiveAddress},</if>
<if test= "receivePostcode != null and receivePostcode != ''" > receive_postcode = #{receivePostcode},</if>
<if test= "receivePcd != null and receivePcd != ''" > receive_pcd = #{receivePcd},</if>
<if test= "sendName != null and sendName != ''" > send_name = #{sendName},</if>
<if test= "sendCompany != null and sendCompany != ''" > send_company = #{sendCompany},</if>
<if test= "sendMobile != null and sendMobile != ''" > send_mobile = #{sendMobile},</if>
<if test= "sendTel != null and sendTel != ''" > send_tel = #{sendTel},</if>
<if test= "sendCountry != null and sendCountry != ''" > send_country = #{sendCountry},</if>
<if test= "sendProvince != null and sendProvince != ''" > send_province = #{sendProvince},</if>
<if test= "sendCity != null and sendCity != ''" > send_city = #{sendCity},</if>
<if test= "sendCounty != null and sendCounty != ''" > send_county = #{sendCounty},</if>
<if test= "sendTown != null and sendTown != ''" > send_town = #{sendTown},</if>
<if test= "sendAddress != null and sendAddress != ''" > send_address = #{sendAddress},</if>
<if test= "sendPostcode != null and sendPostcode != ''" > send_postcode = #{sendPostcode},</if>
<if test= "sendPcd != null and sendPcd != ''" > send_pcd = #{sendPcd},</if>
<if test= "paymentType != null and paymentType != ''" > payment_type = #{paymentType},</if>
<if test= "calcFeeType != null and calcFeeType != ''" > calc_fee_type = #{calcFeeType},</if>
<if test= "custNo != null and custNo != ''" > cust_no = #{custNo},</if>
2024-05-22 23:27:08 +00:00
<if test= "custName != null and custName != ''" > cust_name = #{custName},</if>
2024-05-20 09:42:50 +00:00
<if test= "transLineType != null and transLineType != ''" > trans_line_type = #{transLineType},</if>
<if test= "productType != null and productType != ''" > product_type = #{productType},</if>
<if test= "timeType != null and timeType != ''" > time_type = #{timeType},</if>
<if test= "meterType != null and meterType != ''" > meter_type = #{meterType},</if>
<if test= "carryType != null and carryType != ''" > carry_type = #{carryType},</if>
<if test= "customsClear != null and customsClear != ''" > customs_clear = #{customsClear},</if>
<if test= "customsEclaration != null and customsEclaration != ''" > customs_eclaration = #{customsEclaration},</if>
<if test= "estimateDate != null" > estimate_date = #{estimateDate},</if>
<if test= "packType != null and packType != ''" > pack_type = #{packType},</if>
<if test= "dispatchMethod != null and dispatchMethod != ''" > dispatch_method = #{dispatchMethod},</if>
<if test= "pickupMethod != null and pickupMethod != ''" > pickup_method = #{pickupMethod},</if>
<if test= "pickStartDate != null" > pick_start_date = #{pickStartDate},</if>
<if test= "pickFinishDate != null" > pick_finish_date = #{pickFinishDate},</if>
<if test= "pickFailReason != null and pickFailReason != ''" > pick_fail_reason = #{pickFailReason},</if>
<if test= "intoWarehouseCode != null and intoWarehouseCode != ''" > into_warehouse_code = #{intoWarehouseCode},</if>
<if test= "intoWarehouseName != null and intoWarehouseName != ''" > into_warehouse_name = #{intoWarehouseName},</if>
<if test= "intoWarehouseAddress != null and intoWarehouseAddress != ''" > into_warehouse_address = #{intoWarehouseAddress},</if>
<if test= "intoWarehouseContact != null and intoWarehouseContact != ''" > into_warehouse_contact = #{intoWarehouseContact},</if>
<if test= "intoWarehousePhone != null and intoWarehousePhone != ''" > into_warehouse_phone = #{intoWarehousePhone},</if>
<if test= "intoWarehouseBillCode != null and intoWarehouseBillCode != ''" > into_warehouse_bill_code = #{intoWarehouseBillCode},</if>
<if test= "warehouseInNo != null and warehouseInNo != ''" > warehouse_in_no = #{warehouseInNo},</if>
<if test= "customerDeliveryBeginTime != null and customerDeliveryBeginTime != ''" > customer_delivery_begin_time = #{customerDeliveryBeginTime},</if>
<if test= "customerDeliveryEndTime != null and customerDeliveryEndTime != ''" > customer_delivery_end_time = #{customerDeliveryEndTime},</if>
<if test= "goodsType != null and goodsType != ''" > goods_type = #{goodsType},</if>
<if test= "goodsInfo != null and goodsInfo != ''" > goods_info = #{goodsInfo},</if>
<if test= "goodsPics != null and goodsPics != ''" > goods_pics = #{goodsPics},</if>
<if test= "blPrepareInFreight != null and blPrepareInFreight != ''" > bl_prepare_in_freight = #{blPrepareInFreight},</if>
<if test= "prepareInEstFee != null" > prepare_in_est_fee = #{prepareInEstFee},</if>
<if test= "prepareInRealFee != null" > prepare_in_real_fee = #{prepareInRealFee},</if>
<if test= "prepareInExpress != null and prepareInExpress != ''" > prepare_in_express = #{prepareInExpress},</if>
<if test= "prepareInBillCode != null and prepareInBillCode != ''" > prepare_in_bill_code = #{prepareInBillCode},</if>
<if test= "prepareInRemark != null and prepareInRemark != ''" > prepare_in_remark = #{prepareInRemark},</if>
<if test= "prepareInSupplier != null and prepareInSupplier != ''" > prepare_in_supplier = #{prepareInSupplier},</if>
<if test= "totalWeight != null" > total_weight = #{totalWeight},</if>
<if test= "totalVolume != null" > total_volume = #{totalVolume},</if>
<if test= "parcelQty != null" > parcel_qty = #{parcelQty},</if>
<if test= "billWeight != null" > bill_weight = #{billWeight},</if>
<if test= "volumeWeight != null" > volume_weight = #{volumeWeight},</if>
<if test= "currency != null and currency != ''" > currency = #{currency},</if>
<if test= "settlementWeight != null" > settlement_weight = #{settlementWeight},</if>
<if test= "scanWeight != null" > scan_weight = #{scanWeight},</if>
<if test= "feeWeight != null" > fee_weight = #{feeWeight},</if>
<if test= "freight != null" > freight = #{freight},</if>
<if test= "realPaymentType != null and realPaymentType != ''" > real_payment_type = #{realPaymentType},</if>
<if test= "realFee != null" > real_fee = #{realFee},</if>
<if test= "blSpecialQuote != null and blSpecialQuote != ''" > bl_special_quote = #{blSpecialQuote},</if>
<if test= "blOverLong != null and blOverLong != ''" > bl_over_long = #{blOverLong},</if>
<if test= "blBill != null and blBill != ''" > bl_bill = #{blBill},</if>
<if test= "blBillText != null and blBillText != ''" > bl_bill_text = #{blBillText},</if>
<if test= "blOverWeight != null and blOverWeight != ''" > bl_over_weight = #{blOverWeight},</if>
<if test= "overWeightNumber != null and overWeightNumber != ''" > over_weight_number = #{overWeightNumber},</if>
<if test= "feeRemaker != null and feeRemaker != ''" > fee_remaker = #{feeRemaker},</if>
<if test= "thirdCode != null and thirdCode != ''" > third_code = #{thirdCode},</if>
<if test= "realValue != null and realValue != ''" > real_value = #{realValue},</if>
<if test= "blInsure != null and blInsure != ''" > bl_insure = #{blInsure},</if>
<if test= "insureValue != null and insureValue != ''" > insure_value = #{insureValue},</if>
<if test= "insureValueCurrency != null and insureValueCurrency != ''" > insure_value_currency = #{insureValueCurrency},</if>
<if test= "insureFeeCurrency != null and insureFeeCurrency != ''" > insure_fee_currency = #{insureFeeCurrency},</if>
<if test= "insureFee != null" > insure_fee = #{insureFee},</if>
<if test= "insureRemark != null and insureRemark != ''" > insure_remark = #{insureRemark},</if>
<if test= "insureSiteCode != null and insureSiteCode != ''" > insure_site_code = #{insureSiteCode},</if>
<if test= "insureDate != null and insureDate != ''" > insure_date = #{insureDate},</if>
<if test= "blPrint != null and blPrint != ''" > bl_print = #{blPrint},</if>
<if test= "printManCode != null and printManCode != ''" > print_man_code = #{printManCode},</if>
<if test= "printSite != null and printSite != ''" > print_site = #{printSite},</if>
<if test= "printDate != null and printDate != ''" > print_date = #{printDate},</if>
<if test= "printCount != null and printCount != ''" > print_count = #{printCount},</if>
<if test= "blDispFd != null and blDispFd != ''" > bl_disp_fd = #{blDispFd},</if>
<if test= "transferCode != null and transferCode != ''" > transfer_code = #{transferCode},</if>
<if test= "transferBillcode != null and transferBillcode != ''" > transfer_billcode = #{transferBillcode},</if>
<if test= "dispFdDate != null" > disp_fd_date = #{dispFdDate},</if>
<if test= "dispFdReason != null and dispFdReason != ''" > disp_fd_reason = #{dispFdReason},</if>
<if test= "currentSiteCode != null and currentSiteCode != ''" > current_site_code = #{currentSiteCode},</if>
<if test= "nextSiteCode != null and nextSiteCode != ''" > next_site_code = #{nextSiteCode},</if>
<if test= "lastSiteCode != null and lastSiteCode != ''" > last_site_code = #{lastSiteCode},</if>
<if test= "registerSiteCode != null and registerSiteCode != ''" > register_site_code = #{registerSiteCode},</if>
<if test= "registerDate != null" > register_date = #{registerDate},</if>
<if test= "registerManCode != null and registerManCode != ''" > register_man_code = #{registerManCode},</if>
<if test= "takePieceEmployeeCode != null and takePieceEmployeeCode != ''" > take_piece_employee_code = #{takePieceEmployeeCode},</if>
<if test= "sendSiteCode != null and sendSiteCode != ''" > send_site_code = #{sendSiteCode},</if>
<if test= "sendDate != null" > send_date = #{sendDate},</if>
<if test= "dispatchManCode != null and dispatchManCode != ''" > dispatch_man_code = #{dispatchManCode},</if>
<if test= "dispatchDate != null and dispatchDate != ''" > dispatch_date = #{dispatchDate},</if>
<if test= "dispatchSiteCode != null and dispatchSiteCode != ''" > dispatch_site_code = #{dispatchSiteCode},</if>
<if test= "produceBillDate != null" > produce_bill_date = #{produceBillDate},</if>
<if test= "produceBillSiteCode != null and produceBillSiteCode != ''" > produce_bill_site_code = #{produceBillSiteCode},</if>
<if test= "produceBillManCode != null and produceBillManCode != ''" > produce_bill_man_code = #{produceBillManCode},</if>
<if test= "destinationCode != null and destinationCode != ''" > destination_code = #{destinationCode},</if>
<if test= "destinationProvince != null and destinationProvince != ''" > destination_province = #{destinationProvince},</if>
<if test= "destinationCity != null and destinationCity != ''" > destination_city = #{destinationCity},</if>
<if test= "destinationCounty != null and destinationCounty != ''" > destination_county = #{destinationCounty},</if>
<if test= "dispatchUnderlingSiteCode != null and dispatchUnderlingSiteCode != ''" > dispatch_underling_site_code = #{dispatchUnderlingSiteCode},</if>
<if test= "destinationCenterCode != null and destinationCenterCode != ''" > destination_center_code = #{destinationCenterCode},</if>
<if test= "marketManCode != null and marketManCode != ''" > market_man_code = #{marketManCode},</if>
<if test= "payee != null and payee != ''" > payee = #{payee},</if>
<if test= "salesmen != null and salesmen != ''" > salesmen = #{salesmen},</if>
<if test= "operateEmployeeCode != null and operateEmployeeCode != ''" > operate_employee_code = #{operateEmployeeCode},</if>
<if test= "blIsQuestion != null and blIsQuestion != ''" > bl_is_question = #{blIsQuestion},</if>
<if test= "problemType != null and problemType != ''" > problem_type = #{problemType},</if>
<if test= "problemCause != null and problemCause != ''" > problem_cause = #{problemCause},</if>
<if test= "problemDelayDays != null" > problem_delay_days = #{problemDelayDays},</if>
<if test= "blMessage != null and blMessage != ''" > bl_message = #{blMessage},</if>
<if test= "blAcceptMessage != null and blAcceptMessage != ''" > bl_accept_message = #{blAcceptMessage},</if>
<if test= "blGenSubbill != null and blGenSubbill != ''" > bl_gen_subbill = #{blGenSubbill},</if>
<if test= "signMan != null and signMan != ''" > sign_man = #{signMan},</if>
<if test= "signManCode != null and signManCode != ''" > sign_man_code = #{signManCode},</if>
<if test= "signSiteCode != null and signSiteCode != ''" > sign_site_code = #{signSiteCode},</if>
<if test= "signDate != null and signDate != ''" > sign_date = #{signDate},</if>
<if test= "billPicSendRmk != null and billPicSendRmk != ''" > bill_pic_send_rmk = #{billPicSendRmk},</if>
<if test= "billPicDispatchRmk != null and billPicDispatchRmk != ''" > bill_pic_dispatch_rmk = #{billPicDispatchRmk},</if>
<if test= "timezoneOffset != null and timezoneOffset != ''" > timezone_offset = #{timezoneOffset},</if>
2024-05-22 23:27:08 +00:00
<if test= "paymentStatus != null and paymentStatus != ''" > payment_status = #{paymentStatus},</if>
<if test= "paymentDate != null" > payment_date = #{paymentDate},</if>
<if test= "paymentRemark != null and paymentRemark != ''" > payment_remark = #{paymentRemark},</if>
<if test= "orderRemark != null and orderRemark != ''" > order_remark = #{orderRemark},</if>
2024-05-20 09:42:50 +00:00
<if test= "dataFrom != null and dataFrom != ''" > data_from = #{dataFrom},</if>
2024-05-22 23:27:08 +00:00
<if test= "remark != null and remark != ''" > remark = #{remark},</if>
2024-05-20 09:42:50 +00:00
<if test= "delFlag != null and delFlag != ''" > del_flag = #{delFlag},</if>
<if test= "createBy != null and createBy != ''" > create_by = #{createBy},</if>
<if test= "createTime != null" > create_time = #{createTime},</if>
<if test= "updateBy != null and updateBy != ''" > update_by = #{updateBy},</if>
<if test= "updateTime != null" > update_time = #{updateTime},</if>
<if test= "createSite != null and createSite != ''" > create_site = #{createSite},</if>
<if test= "updateSite != null and updateSite != ''" > update_site = #{updateSite},</if>
</trim>
where bill_code=#{billCode}
</update>
2024-05-08 05:29:47 +00:00
2024-05-14 03:07:53 +00:00
<update id= "updatePrintStatus" parameterType= "EmisWaybill" >
update emis_waybill set bl_print='1',print_man_code=#{printManCode},print_site=#{printSite},print_date=now(),print_count=print_count+1 where bill_code=#{billCode}
</update>
2024-05-08 05:29:47 +00:00
<update id= "changeWaybillStatusByBillCode" parameterType= "EmisWaybill" >
update emis_waybill set waybill_status=#{waybillStatus} where bill_code=#{billCode}
</update>
2024-05-14 03:07:53 +00:00
2024-05-08 05:29:47 +00:00
<update id= "changeOrderStatusByBillCode" parameterType= "EmisWaybill" >
update emis_waybill set order_status=#{orderStatus} where bill_code=#{billCode}
</update>
<update id= "changeOrderStatusByOrderSn" parameterType= "EmisWaybill" >
update emis_waybill set order_status=#{orderStatus} where order_sn=#{orderSn}
</update>
2024-02-29 08:23:35 +00:00
<delete id= "deleteEmisWaybillById" parameterType= "Long" >
2024-04-28 16:08:11 +00:00
update emis_waybill set del_flag='1' where id = #{id}
2024-02-29 08:23:35 +00:00
</delete>
<delete id= "deleteEmisWaybillByIds" parameterType= "String" >
2024-04-28 16:08:11 +00:00
update emis_waybill set del_flag='1 where id in
2024-02-29 08:23:35 +00:00
<foreach item= "id" collection= "array" open= "(" separator= "," close= ")" >
#{id}
</foreach>
</delete>
</mapper>