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" />
<result property= "orderStatusStr" column= "order_status_str" />
<result property= "orderType" column= "order_type" />
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" />
<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" />
<result property= "paymentType" column= "payment_type" />
<result property= "custNo" column= "cust_no" />
<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-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= "deliveryTime" column= "delivery_time" />
<result property= "deliveryStatus" column= "delivery_status" />
<result property= "deliveryMode" column= "delivery_mode" />
<result property= "deliverySite" column= "delivery_site" />
<result property= "deliverySiteCode" column= "delivery_site_code" />
<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" />
<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" />
<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" />
<result property= "feeWeight" column= "fee_weight" />
2024-02-29 08:23:35 +00:00
<result property= "freight" column= "freight" />
<result property= "blOverLong" column= "bl_over_long" />
<result property= "blBill" column= "bl_bill" />
<result property= "blOverWeight" column= "bl_over_weight" />
<result property= "overWeightNumber" column= "over_weight_number" />
<result property= "blBillText" column= "bl_bill_text" />
<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= "insureSite" column= "insure_site" />
<result property= "insureSiteCode" column= "insure_site_code" />
<result property= "insureDate" column= "insure_date" />
<result property= "blPrint" column= "bl_print" />
<result property= "printMan" column= "print_man" />
<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= "dispFdDate" column= "disp_fd_date" />
<result property= "dispFdReason" column= "disp_fd_reason" />
<result property= "transferCode" column= "transfer_code" />
<result property= "transferBillcode" column= "transfer_billcode" />
<result property= "sendSite" column= "send_site" />
<result property= "sendSiteCode" column= "send_site_code" />
<result property= "dispatchMan" column= "dispatch_man" />
<result property= "dispatchManCode" column= "dispatch_man_code" />
<result property= "dispatchDate" column= "dispatch_date" />
<result property= "dispatchSite" column= "dispatch_site" />
<result property= "dispatchSiteCode" column= "dispatch_site_code" />
<result property= "produceBillDate" column= "produce_bill_date" />
<result property= "produceBillSite" column= "produce_bill_site" />
<result property= "produceBillSiteCode" column= "produce_bill_site_code" />
<result property= "produceBillMan" column= "produce_bill_man" />
<result property= "produceBillManCode" column= "produce_bill_man_code" />
<result property= "destination" column= "destination" />
<result property= "destinationCode" column= "destination_code" />
<result property= "destinationProvince" column= "destination_province" />
<result property= "destinationCity" column= "destination_city" />
<result property= "destinationCounty" column= "destination_county" />
<result property= "destinationCenter" column= "destination_center" />
<result property= "destinationCenterCode" column= "destination_center_code" />
<result property= "marketMan" column= "market_man" />
<result property= "marketManCode" column= "market_man_code" />
<result property= "payee" column= "payee" />
<result property= "salesmen" column= "salesmen" />
<result property= "operateEmployee" column= "operate_employee" />
<result property= "operateEmployeeCode" column= "operate_employee_code" />
<result property= "blIsQuestion" column= "bl_is_question" />
<result property= "problemCause" column= "problem_cause" />
<result property= "blMessage" column= "bl_message" />
<result property= "blMessageText" column= "bl_message_text" />
<result property= "blAcceptMessage" column= "bl_accept_message" />
<result property= "blAcceptMessageText" column= "bl_accept_message_text" />
<result property= "signMan" column= "sign_man" />
<result property= "signManCode" column= "sign_man_code" />
<result property= "signSite" column= "sign_site" />
<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" />
<result property= "modifier" column= "modifier" />
<result property= "modifierCode" column= "modifier_code" />
<result property= "modifyDate" column= "modify_date" />
<result property= "modifySite" column= "modify_site" />
<result property= "modifySiteCode" column= "modify_site_code" />
<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" />
</resultMap>
<sql id= "selectEmisWaybillVo" >
2024-03-01 06:47:57 +00:00
select id, order_sn, cust_order_id, bill_code, bill_code_sub, order_status, order_status_str, order_type, 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, send_name, send_company, send_mobile, send_tel, send_country, send_province, send_city, send_county, send_town, send_address, send_postcode, payment_type, cust_no, trans_line_type, product_type, time_type, meter_type, customs_clear, customs_eclaration, estimate_date, pack_type, dispatch_method, pickup_method, delivery_time, delivery_status, delivery_mode, delivery_site, delivery_site_code, 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, customer_delivery_begin_time, customer_delivery_end_time, goods_type, goods_info, total_weight, total_volume, parcel_qty, bill_weight, volume_weight, currency, settlement_weight, fee_weight, freight, bl_over_long, bl_bill, bl_over_weight, over_weight_number, bl_bill_text, fee_remaker, third_code, real_value, bl_insure, insure_value, insure_value_currency, insure_fee_currency, insure_fee, insure_remark, insure_site, insure_site_code, insure_date, bl_print, print_man, print_man_code, print_site, print_date, print_count, bl_disp_fd, disp_fd_date, disp_fd_reason, transfer_code, transfer_billcode, send_site, send_site_code, dispatch_man, dispatch_man_code, dispatch_date, dispatch_site, dispatch_site_code, produce_bill_date, produce_bill_site, produce_bill_site_code, produce_bill_man, produce_bill_man_code, destination, destination_code, destination_province, destination_city, destination_county, destination_center, destination_center_code, market_man, market_man_code, payee, salesmen, operate_employee, operate_employee_code, bl_is_question, problem_cause, bl_message, bl_message_text, bl_accept_message, bl_accept_message_text, sign_man, sign_man_code, sign_site, sign_site_code, sign_date, bill_pic_send_rmk, bill_pic_dispatch_rmk, modifier, modifier_code, modify_date, modify_site, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark from emis_waybill
2024-02-29 08:23:35 +00:00
</sql>
<select id= "selectEmisWaybillList" parameterType= "EmisWaybill" resultMap= "EmisWaybillResult" >
<include refid= "selectEmisWaybillVo" />
2024-03-01 06:47:57 +00:00
<where >
2024-02-29 08:23:35 +00:00
<if test= "id != null " > and id = #{id}</if>
<if test= "orderSn != null and orderSn != ''" > and order_sn like concat('%', #{orderSn}, '%')</if>
<if test= "custOrderId != null and custOrderId != ''" > and cust_order_id like concat('%', #{custOrderId}, '%')</if>
<if test= "billCode != null and billCode != ''" > and bill_code like concat('%', #{billCode}, '%')</if>
<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>
<if test= "orderStatusStr != null and orderStatusStr != ''" > and order_status_str like concat('%', #{orderStatusStr}, '%')</if>
<if test= "orderType != null and orderType != ''" > and order_type like concat('%', #{orderType}, '%')</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>
<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>
<if test= "paymentType != null and paymentType != ''" > and payment_type like concat('%', #{paymentType}, '%')</if>
<if test= "custNo != null and custNo != ''" > and cust_no like concat('%', #{custNo}, '%')</if>
<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-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= "deliveryTime != null " > and delivery_time = #{deliveryTime}</if>
<if test= "deliveryStatus != null and deliveryStatus != ''" > and delivery_status like concat('%', #{deliveryStatus}, '%')</if>
<if test= "deliveryMode != null and deliveryMode != ''" > and delivery_mode like concat('%', #{deliveryMode}, '%')</if>
<if test= "deliverySite != null and deliverySite != ''" > and delivery_site like concat('%', #{deliverySite}, '%')</if>
<if test= "deliverySiteCode != null and deliverySiteCode != ''" > and delivery_site_code like concat('%', #{deliverySiteCode}, '%')</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>
<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>
<if test= "totalWeight != null and totalWeight != ''" > and total_weight like concat('%', #{totalWeight}, '%')</if>
<if test= "totalVolume != null and totalVolume != ''" > and total_volume like concat('%', #{totalVolume}, '%')</if>
<if test= "parcelQty != null and parcelQty != ''" > and parcel_qty like concat('%', #{parcelQty}, '%')</if>
<if test= "billWeight != null and billWeight != ''" > and bill_weight like concat('%', #{billWeight}, '%')</if>
<if test= "volumeWeight != null and volumeWeight != ''" > and volume_weight like concat('%', #{volumeWeight}, '%')</if>
<if test= "currency != null and currency != ''" > and currency like concat('%', #{currency}, '%')</if>
2024-03-01 06:47:57 +00:00
<if test= "settlementWeight != null and settlementWeight != ''" > and settlement_weight like concat('%', #{settlementWeight}, '%')</if>
<if test= "feeWeight != null and feeWeight != ''" > and fee_weight like concat('%', #{feeWeight}, '%')</if>
2024-02-29 08:23:35 +00:00
<if test= "freight != null and freight != ''" > and freight like concat('%', #{freight}, '%')</if>
<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>
<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= "blBillText != null and blBillText != ''" > and bl_bill_text like concat('%', #{blBillText}, '%')</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= "insureSite != null and insureSite != ''" > and insure_site like concat('%', #{insureSite}, '%')</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= "printMan != null and printMan != ''" > and print_man like concat('%', #{printMan}, '%')</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= "dispFdDate != null " > and disp_fd_date = #{dispFdDate}</if>
<if test= "dispFdReason != null and dispFdReason != ''" > and disp_fd_reason like concat('%', #{dispFdReason}, '%')</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>
<if test= "sendSite != null and sendSite != ''" > and send_site like concat('%', #{sendSite}, '%')</if>
<if test= "sendSiteCode != null and sendSiteCode != ''" > and send_site_code like concat('%', #{sendSiteCode}, '%')</if>
<if test= "dispatchMan != null and dispatchMan != ''" > and dispatch_man like concat('%', #{dispatchMan}, '%')</if>
<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= "dispatchSite != null and dispatchSite != ''" > and dispatch_site like concat('%', #{dispatchSite}, '%')</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= "produceBillSite != null and produceBillSite != ''" > and produce_bill_site like concat('%', #{produceBillSite}, '%')</if>
<if test= "produceBillSiteCode != null and produceBillSiteCode != ''" > and produce_bill_site_code like concat('%', #{produceBillSiteCode}, '%')</if>
<if test= "produceBillMan != null and produceBillMan != ''" > and produce_bill_man like concat('%', #{produceBillMan}, '%')</if>
<if test= "produceBillManCode != null and produceBillManCode != ''" > and produce_bill_man_code like concat('%', #{produceBillManCode}, '%')</if>
<if test= "destination != null and destination != ''" > and destination like concat('%', #{destination}, '%')</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>
<if test= "destinationCenter != null and destinationCenter != ''" > and destination_center like concat('%', #{destinationCenter}, '%')</if>
<if test= "destinationCenterCode != null and destinationCenterCode != ''" > and destination_center_code like concat('%', #{destinationCenterCode}, '%')</if>
<if test= "marketMan != null and marketMan != ''" > and market_man like concat('%', #{marketMan}, '%')</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= "operateEmployee != null and operateEmployee != ''" > and operate_employee like concat('%', #{operateEmployee}, '%')</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>
<if test= "problemCause != null and problemCause != ''" > and problem_cause like concat('%', #{problemCause}, '%')</if>
<if test= "blMessage != null and blMessage != ''" > and bl_message like concat('%', #{blMessage}, '%')</if>
<if test= "blMessageText != null and blMessageText != ''" > and bl_message_text like concat('%', #{blMessageText}, '%')</if>
<if test= "blAcceptMessage != null and blAcceptMessage != ''" > and bl_accept_message like concat('%', #{blAcceptMessage}, '%')</if>
<if test= "blAcceptMessageText != null and blAcceptMessageText != ''" > and bl_accept_message_text like concat('%', #{blAcceptMessageText}, '%')</if>
<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= "signSite != null and signSite != ''" > and sign_site like concat('%', #{signSite}, '%')</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>
<if test= "modifier != null and modifier != ''" > and modifier like concat('%', #{modifier}, '%')</if>
<if test= "modifierCode != null and modifierCode != ''" > and modifier_code like concat('%', #{modifierCode}, '%')</if>
<if test= "modifyDate != null and modifyDate != ''" > and modify_date like concat('%', #{modifyDate}, '%')</if>
<if test= "modifySite != null and modifySite != ''" > and modify_site like concat('%', #{modifySite}, '%')</if>
<if test= "modifySiteCode != null and modifySiteCode != ''" > and modify_site_code like concat('%', #{modifySiteCode}, '%')</if>
<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>
<if test= "remark != null and remark != ''" > and remark like concat('%', #{remark}, '%')</if>
</where>
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-03-01 06:47:57 +00:00
select id, order_sn, cust_order_id, bill_code, bill_code_sub, order_status, order_status_str, order_type, 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, send_name, send_company, send_mobile, send_tel, send_country, send_province, send_city, send_county, send_town, send_address, send_postcode, payment_type, cust_no, trans_line_type, product_type, time_type, meter_type, customs_clear, customs_eclaration, estimate_date, pack_type, dispatch_method, pickup_method, delivery_time, delivery_status, delivery_mode, delivery_site, delivery_site_code, 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, customer_delivery_begin_time, customer_delivery_end_time, goods_type, goods_info, total_weight, total_volume, parcel_qty, bill_weight, volume_weight, currency, settlement_weight, fee_weight, freight, bl_over_long, bl_bill, bl_over_weight, over_weight_number, bl_bill_text, fee_remaker, third_code, real_value, bl_insure, insure_value, insure_value_currency, insure_fee_currency, insure_fee, insure_remark, insure_site, insure_site_code, insure_date, bl_print, print_man, print_man_code, print_site, print_date, print_count, bl_disp_fd, disp_fd_date, disp_fd_reason, transfer_code, transfer_billcode, send_site, send_site_code, dispatch_man, dispatch_man_code, dispatch_date, dispatch_site, dispatch_site_code, produce_bill_date, produce_bill_site, produce_bill_site_code, produce_bill_man, produce_bill_man_code, destination, destination_code, destination_province, destination_city, destination_county, destination_center, destination_center_code, market_man, market_man_code, payee, salesmen, operate_employee, operate_employee_code, bl_is_question, problem_cause, bl_message, bl_message_text, bl_accept_message, bl_accept_message_text, sign_man, sign_man_code, sign_site, sign_site_code, sign_date, bill_pic_send_rmk, bill_pic_dispatch_rmk, modifier, modifier_code, modify_date, modify_site, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark
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-02-29 08:23:35 +00:00
<insert id= "insertEmisWaybill" parameterType= "EmisWaybill" >
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>
<if test= "orderStatusStr != null and orderStatusStr != ''" > order_status_str,</if>
<if test= "orderType != null and orderType != ''" > order_type,</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>
<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>
<if test= "paymentType != null and paymentType != ''" > payment_type,</if>
<if test= "custNo != null and custNo != ''" > cust_no,</if>
<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-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= "deliveryTime != null" > delivery_time,</if>
<if test= "deliveryStatus != null and deliveryStatus != ''" > delivery_status,</if>
<if test= "deliveryMode != null and deliveryMode != ''" > delivery_mode,</if>
<if test= "deliverySite != null and deliverySite != ''" > delivery_site,</if>
<if test= "deliverySiteCode != null and deliverySiteCode != ''" > delivery_site_code,</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>
<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>
<if test= "totalWeight != null and totalWeight != ''" > total_weight,</if>
<if test= "totalVolume != null and totalVolume != ''" > total_volume,</if>
<if test= "parcelQty != null and parcelQty != ''" > parcel_qty,</if>
<if test= "billWeight != null and billWeight != ''" > bill_weight,</if>
<if test= "volumeWeight != null and volumeWeight != ''" > volume_weight,</if>
<if test= "currency != null and currency != ''" > currency,</if>
2024-03-01 06:47:57 +00:00
<if test= "settlementWeight != null and settlementWeight != ''" > settlement_weight,</if>
<if test= "feeWeight != null and feeWeight != ''" > fee_weight,</if>
2024-02-29 08:23:35 +00:00
<if test= "freight != null and freight != ''" > freight,</if>
<if test= "blOverLong != null and blOverLong != ''" > bl_over_long,</if>
<if test= "blBill != null and blBill != ''" > bl_bill,</if>
<if test= "blOverWeight != null and blOverWeight != ''" > bl_over_weight,</if>
<if test= "overWeightNumber != null and overWeightNumber != ''" > over_weight_number,</if>
<if test= "blBillText != null and blBillText != ''" > bl_bill_text,</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= "insureSite != null and insureSite != ''" > insure_site,</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= "printMan != null and printMan != ''" > print_man,</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= "dispFdDate != null" > disp_fd_date,</if>
<if test= "dispFdReason != null and dispFdReason != ''" > disp_fd_reason,</if>
<if test= "transferCode != null and transferCode != ''" > transfer_code,</if>
<if test= "transferBillcode != null and transferBillcode != ''" > transfer_billcode,</if>
<if test= "sendSite != null and sendSite != ''" > send_site,</if>
<if test= "sendSiteCode != null and sendSiteCode != ''" > send_site_code,</if>
<if test= "dispatchMan != null and dispatchMan != ''" > dispatch_man,</if>
<if test= "dispatchManCode != null and dispatchManCode != ''" > dispatch_man_code,</if>
<if test= "dispatchDate != null and dispatchDate != ''" > dispatch_date,</if>
<if test= "dispatchSite != null and dispatchSite != ''" > dispatch_site,</if>
<if test= "dispatchSiteCode != null and dispatchSiteCode != ''" > dispatch_site_code,</if>
<if test= "produceBillDate != null" > produce_bill_date,</if>
<if test= "produceBillSite != null and produceBillSite != ''" > produce_bill_site,</if>
<if test= "produceBillSiteCode != null and produceBillSiteCode != ''" > produce_bill_site_code,</if>
<if test= "produceBillMan != null and produceBillMan != ''" > produce_bill_man,</if>
<if test= "produceBillManCode != null and produceBillManCode != ''" > produce_bill_man_code,</if>
<if test= "destination != null and destination != ''" > destination,</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>
<if test= "destinationCenter != null and destinationCenter != ''" > destination_center,</if>
<if test= "destinationCenterCode != null and destinationCenterCode != ''" > destination_center_code,</if>
<if test= "marketMan != null and marketMan != ''" > market_man,</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= "operateEmployee != null and operateEmployee != ''" > operate_employee,</if>
<if test= "operateEmployeeCode != null and operateEmployeeCode != ''" > operate_employee_code,</if>
<if test= "blIsQuestion != null and blIsQuestion != ''" > bl_is_question,</if>
<if test= "problemCause != null and problemCause != ''" > problem_cause,</if>
<if test= "blMessage != null and blMessage != ''" > bl_message,</if>
<if test= "blMessageText != null and blMessageText != ''" > bl_message_text,</if>
<if test= "blAcceptMessage != null and blAcceptMessage != ''" > bl_accept_message,</if>
<if test= "blAcceptMessageText != null and blAcceptMessageText != ''" > bl_accept_message_text,</if>
<if test= "signMan != null and signMan != ''" > sign_man,</if>
<if test= "signManCode != null and signManCode != ''" > sign_man_code,</if>
<if test= "signSite != null and signSite != ''" > sign_site,</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>
<if test= "modifier != null and modifier != ''" > modifier,</if>
<if test= "modifierCode != null and modifierCode != ''" > modifier_code,</if>
<if test= "modifyDate != null and modifyDate != ''" > modify_date,</if>
<if test= "modifySite != null and modifySite != ''" > modify_site,</if>
<if test= "modifySiteCode != null and modifySiteCode != ''" > modify_site_code,</if>
<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>
<if test= "remark != null and remark != ''" > remark,</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>
<if test= "orderStatusStr != null and orderStatusStr != ''" > #{orderStatusStr},</if>
<if test= "orderType != null and orderType != ''" > #{orderType},</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>
<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>
<if test= "paymentType != null and paymentType != ''" > #{paymentType},</if>
<if test= "custNo != null and custNo != ''" > #{custNo},</if>
<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-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= "deliveryTime != null" > #{deliveryTime},</if>
<if test= "deliveryStatus != null and deliveryStatus != ''" > #{deliveryStatus},</if>
<if test= "deliveryMode != null and deliveryMode != ''" > #{deliveryMode},</if>
<if test= "deliverySite != null and deliverySite != ''" > #{deliverySite},</if>
<if test= "deliverySiteCode != null and deliverySiteCode != ''" > #{deliverySiteCode},</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>
<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>
<if test= "totalWeight != null and totalWeight != ''" > #{totalWeight},</if>
<if test= "totalVolume != null and totalVolume != ''" > #{totalVolume},</if>
<if test= "parcelQty != null and parcelQty != ''" > #{parcelQty},</if>
<if test= "billWeight != null and billWeight != ''" > #{billWeight},</if>
<if test= "volumeWeight != null and volumeWeight != ''" > #{volumeWeight},</if>
<if test= "currency != null and currency != ''" > #{currency},</if>
2024-03-01 06:47:57 +00:00
<if test= "settlementWeight != null and settlementWeight != ''" > #{settlementWeight},</if>
<if test= "feeWeight != null and feeWeight != ''" > #{feeWeight},</if>
2024-02-29 08:23:35 +00:00
<if test= "freight != null and freight != ''" > #{freight},</if>
<if test= "blOverLong != null and blOverLong != ''" > #{blOverLong},</if>
<if test= "blBill != null and blBill != ''" > #{blBill},</if>
<if test= "blOverWeight != null and blOverWeight != ''" > #{blOverWeight},</if>
<if test= "overWeightNumber != null and overWeightNumber != ''" > #{overWeightNumber},</if>
<if test= "blBillText != null and blBillText != ''" > #{blBillText},</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= "insureSite != null and insureSite != ''" > #{insureSite},</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= "printMan != null and printMan != ''" > #{printMan},</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= "dispFdDate != null" > #{dispFdDate},</if>
<if test= "dispFdReason != null and dispFdReason != ''" > #{dispFdReason},</if>
<if test= "transferCode != null and transferCode != ''" > #{transferCode},</if>
<if test= "transferBillcode != null and transferBillcode != ''" > #{transferBillcode},</if>
<if test= "sendSite != null and sendSite != ''" > #{sendSite},</if>
<if test= "sendSiteCode != null and sendSiteCode != ''" > #{sendSiteCode},</if>
<if test= "dispatchMan != null and dispatchMan != ''" > #{dispatchMan},</if>
<if test= "dispatchManCode != null and dispatchManCode != ''" > #{dispatchManCode},</if>
<if test= "dispatchDate != null and dispatchDate != ''" > #{dispatchDate},</if>
<if test= "dispatchSite != null and dispatchSite != ''" > #{dispatchSite},</if>
<if test= "dispatchSiteCode != null and dispatchSiteCode != ''" > #{dispatchSiteCode},</if>
<if test= "produceBillDate != null" > #{produceBillDate},</if>
<if test= "produceBillSite != null and produceBillSite != ''" > #{produceBillSite},</if>
<if test= "produceBillSiteCode != null and produceBillSiteCode != ''" > #{produceBillSiteCode},</if>
<if test= "produceBillMan != null and produceBillMan != ''" > #{produceBillMan},</if>
<if test= "produceBillManCode != null and produceBillManCode != ''" > #{produceBillManCode},</if>
<if test= "destination != null and destination != ''" > #{destination},</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>
<if test= "destinationCenter != null and destinationCenter != ''" > #{destinationCenter},</if>
<if test= "destinationCenterCode != null and destinationCenterCode != ''" > #{destinationCenterCode},</if>
<if test= "marketMan != null and marketMan != ''" > #{marketMan},</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= "operateEmployee != null and operateEmployee != ''" > #{operateEmployee},</if>
<if test= "operateEmployeeCode != null and operateEmployeeCode != ''" > #{operateEmployeeCode},</if>
<if test= "blIsQuestion != null and blIsQuestion != ''" > #{blIsQuestion},</if>
<if test= "problemCause != null and problemCause != ''" > #{problemCause},</if>
<if test= "blMessage != null and blMessage != ''" > #{blMessage},</if>
<if test= "blMessageText != null and blMessageText != ''" > #{blMessageText},</if>
<if test= "blAcceptMessage != null and blAcceptMessage != ''" > #{blAcceptMessage},</if>
<if test= "blAcceptMessageText != null and blAcceptMessageText != ''" > #{blAcceptMessageText},</if>
<if test= "signMan != null and signMan != ''" > #{signMan},</if>
<if test= "signManCode != null and signManCode != ''" > #{signManCode},</if>
<if test= "signSite != null and signSite != ''" > #{signSite},</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>
<if test= "modifier != null and modifier != ''" > #{modifier},</if>
<if test= "modifierCode != null and modifierCode != ''" > #{modifierCode},</if>
<if test= "modifyDate != null and modifyDate != ''" > #{modifyDate},</if>
<if test= "modifySite != null and modifySite != ''" > #{modifySite},</if>
<if test= "modifySiteCode != null and modifySiteCode != ''" > #{modifySiteCode},</if>
<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>
<if test= "remark != null and remark != ''" > #{remark},</if>
2024-03-01 06:47:57 +00:00
</trim>
2024-02-29 08:23:35 +00:00
</insert>
<update id= "updateEmisWaybill" parameterType= "EmisWaybill" >
update emis_waybill
<trim prefix= "SET" suffixOverrides= "," >
<if test= "orderSn != null and orderSn != ''" > order_sn = #{orderSn},</if>
<if test= "custOrderId != null and custOrderId != ''" > cust_order_id = #{custOrderId},</if>
<if test= "billCode != null and billCode != ''" > bill_code = #{billCode},</if>
<if test= "billCodeSub != null and billCodeSub != ''" > bill_code_sub = #{billCodeSub},</if>
<if test= "orderStatus != null and orderStatus != ''" > order_status = #{orderStatus},</if>
<if test= "orderStatusStr != null and orderStatusStr != ''" > order_status_str = #{orderStatusStr},</if>
<if test= "orderType != null and orderType != ''" > order_type = #{orderType},</if>
2024-03-01 06:47:57 +00:00
<if test= "userId != null" > user_id = #{userId},</if>
2024-02-29 08:23:35 +00:00
<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= "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= "paymentType != null and paymentType != ''" > payment_type = #{paymentType},</if>
<if test= "custNo != null and custNo != ''" > cust_no = #{custNo},</if>
<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-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= "deliveryTime != null" > delivery_time = #{deliveryTime},</if>
<if test= "deliveryStatus != null and deliveryStatus != ''" > delivery_status = #{deliveryStatus},</if>
<if test= "deliveryMode != null and deliveryMode != ''" > delivery_mode = #{deliveryMode},</if>
<if test= "deliverySite != null and deliverySite != ''" > delivery_site = #{deliverySite},</if>
<if test= "deliverySiteCode != null and deliverySiteCode != ''" > delivery_site_code = #{deliverySiteCode},</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= "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= "totalWeight != null and totalWeight != ''" > total_weight = #{totalWeight},</if>
<if test= "totalVolume != null and totalVolume != ''" > total_volume = #{totalVolume},</if>
<if test= "parcelQty != null and parcelQty != ''" > parcel_qty = #{parcelQty},</if>
<if test= "billWeight != null and billWeight != ''" > bill_weight = #{billWeight},</if>
<if test= "volumeWeight != null and volumeWeight != ''" > volume_weight = #{volumeWeight},</if>
<if test= "currency != null and currency != ''" > currency = #{currency},</if>
2024-03-01 06:47:57 +00:00
<if test= "settlementWeight != null and settlementWeight != ''" > settlement_weight = #{settlementWeight},</if>
<if test= "feeWeight != null and feeWeight != ''" > fee_weight = #{feeWeight},</if>
2024-02-29 08:23:35 +00:00
<if test= "freight != null and freight != ''" > freight = #{freight},</if>
<if test= "blOverLong != null and blOverLong != ''" > bl_over_long = #{blOverLong},</if>
<if test= "blBill != null and blBill != ''" > bl_bill = #{blBill},</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= "blBillText != null and blBillText != ''" > bl_bill_text = #{blBillText},</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= "insureSite != null and insureSite != ''" > insure_site = #{insureSite},</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= "printMan != null and printMan != ''" > print_man = #{printMan},</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= "dispFdDate != null" > disp_fd_date = #{dispFdDate},</if>
<if test= "dispFdReason != null and dispFdReason != ''" > disp_fd_reason = #{dispFdReason},</if>
<if test= "transferCode != null and transferCode != ''" > transfer_code = #{transferCode},</if>
<if test= "transferBillcode != null and transferBillcode != ''" > transfer_billcode = #{transferBillcode},</if>
<if test= "sendSite != null and sendSite != ''" > send_site = #{sendSite},</if>
<if test= "sendSiteCode != null and sendSiteCode != ''" > send_site_code = #{sendSiteCode},</if>
<if test= "dispatchMan != null and dispatchMan != ''" > dispatch_man = #{dispatchMan},</if>
<if test= "dispatchManCode != null and dispatchManCode != ''" > dispatch_man_code = #{dispatchManCode},</if>
<if test= "dispatchDate != null and dispatchDate != ''" > dispatch_date = #{dispatchDate},</if>
<if test= "dispatchSite != null and dispatchSite != ''" > dispatch_site = #{dispatchSite},</if>
<if test= "dispatchSiteCode != null and dispatchSiteCode != ''" > dispatch_site_code = #{dispatchSiteCode},</if>
<if test= "produceBillDate != null" > produce_bill_date = #{produceBillDate},</if>
<if test= "produceBillSite != null and produceBillSite != ''" > produce_bill_site = #{produceBillSite},</if>
<if test= "produceBillSiteCode != null and produceBillSiteCode != ''" > produce_bill_site_code = #{produceBillSiteCode},</if>
<if test= "produceBillMan != null and produceBillMan != ''" > produce_bill_man = #{produceBillMan},</if>
<if test= "produceBillManCode != null and produceBillManCode != ''" > produce_bill_man_code = #{produceBillManCode},</if>
<if test= "destination != null and destination != ''" > destination = #{destination},</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= "destinationCenter != null and destinationCenter != ''" > destination_center = #{destinationCenter},</if>
<if test= "destinationCenterCode != null and destinationCenterCode != ''" > destination_center_code = #{destinationCenterCode},</if>
<if test= "marketMan != null and marketMan != ''" > market_man = #{marketMan},</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= "operateEmployee != null and operateEmployee != ''" > operate_employee = #{operateEmployee},</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= "problemCause != null and problemCause != ''" > problem_cause = #{problemCause},</if>
<if test= "blMessage != null and blMessage != ''" > bl_message = #{blMessage},</if>
<if test= "blMessageText != null and blMessageText != ''" > bl_message_text = #{blMessageText},</if>
<if test= "blAcceptMessage != null and blAcceptMessage != ''" > bl_accept_message = #{blAcceptMessage},</if>
<if test= "blAcceptMessageText != null and blAcceptMessageText != ''" > bl_accept_message_text = #{blAcceptMessageText},</if>
<if test= "signMan != null and signMan != ''" > sign_man = #{signMan},</if>
<if test= "signManCode != null and signManCode != ''" > sign_man_code = #{signManCode},</if>
<if test= "signSite != null and signSite != ''" > sign_site = #{signSite},</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= "modifier != null and modifier != ''" > modifier = #{modifier},</if>
<if test= "modifierCode != null and modifierCode != ''" > modifier_code = #{modifierCode},</if>
<if test= "modifyDate != null and modifyDate != ''" > modify_date = #{modifyDate},</if>
<if test= "modifySite != null and modifySite != ''" > modify_site = #{modifySite},</if>
<if test= "modifySiteCode != null and modifySiteCode != ''" > modify_site_code = #{modifySiteCode},</if>
<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= "remark != null and remark != ''" > remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id= "deleteEmisWaybillById" parameterType= "Long" >
delete from emis_waybill where id = #{id}
</delete>
<delete id= "deleteEmisWaybillByIds" parameterType= "String" >
2024-03-01 06:47:57 +00:00
delete from emis_waybill where id in
2024-02-29 08:23:35 +00:00
<foreach item= "id" collection= "array" open= "(" separator= "," close= ")" >
#{id}
</foreach>
</delete>
</mapper>