111
This commit is contained in:
1 parent
81eca8933a
commit
345f906c35
540 files changed
+494222
-90
No files matched your search
@@ -0,0 +1,361 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.custom.mapper.CustomOrderMapper">
|
||||
|
||||
<resultMap type="CustomOrder" id="CustomOrderResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="declarePortId" column="declare_port_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="mode" column="mode" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="sOrderNo" column="s_order_no" />
|
||||
<result property="declareOrderNo" column="declare_order_no" />
|
||||
<result property="status" column="status" />
|
||||
<result property="expressName" column="express_name" />
|
||||
<result property="shipOrderNumber" column="ship_order_number" />
|
||||
<result property="buyerRegNo" column="buyer_reg_no" />
|
||||
<result property="buyerName" column="buyer_name" />
|
||||
<result property="buyerTelephone" column="buyer_telephone" />
|
||||
<result property="buyerIdType" column="buyer_id_type" />
|
||||
<result property="buyerIdNumber" column="buyer_id_number" />
|
||||
<result property="consignee" column="consignee" />
|
||||
<result property="consigneeTelephone" column="consignee_telephone" />
|
||||
<result property="consigneeAddress" column="consignee_address" />
|
||||
<result property="consigneeProvince" column="consignee_province" />
|
||||
<result property="consigneeCity" column="consignee_city" />
|
||||
<result property="consigneeDistrict" column="consignee_district" />
|
||||
<result property="totalAmount" column="total_amount" />
|
||||
<result property="discountAmount" column="discount_amount" />
|
||||
<result property="payTotalAmount" column="pay_total_amount" />
|
||||
<result property="taxTotalAmount" column="tax_total_amount" />
|
||||
<result property="shopTaxTotalAmount" column="shop_tax_total_amount" />
|
||||
<result property="freightAmount" column="freight_amount" />
|
||||
<result property="totalGrossWeight" column="total_gross_weight" />
|
||||
<result property="totalNetWeight" column="total_net_weight" />
|
||||
<result property="totalQuantity" column="total_quantity" />
|
||||
<result property="payName" column="pay_name" />
|
||||
<result property="payCode" column="pay_code" />
|
||||
<result property="payTime" column="pay_time" />
|
||||
<result property="gatewayOrderId" column="gateway_order_id" />
|
||||
<result property="consignor" column="consignor" />
|
||||
<result property="consignorAddress" column="consignor_address" />
|
||||
<result property="consignorTelephone" column="consignor_telephone" />
|
||||
<result property="consignorCountry" column="consignor_country" />
|
||||
<result property="consignorProvince" column="consignor_province" />
|
||||
<result property="consignorCity" column="consignor_city" />
|
||||
<result property="consignorDistrict" column="consignor_district" />
|
||||
<result property="receiptAccount" column="receipt_account" />
|
||||
<result property="verDept" column="ver_dept" />
|
||||
<result property="payType" column="pay_type" />
|
||||
<result property="initalRequest" column="inital_request" />
|
||||
<result property="initalResponse" column="inital_response" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="expressReturn" column="express_return" />
|
||||
<result property="process" column="process" />
|
||||
<result property="addTime" column="add_time" />
|
||||
<result property="inventoryNo" column="inventory_no" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="CustomOrderCustomOrderItemResult" type="CustomOrder" extends="CustomOrderResult">
|
||||
<collection property="customOrderItemList" notNullColumn="id" javaType="java.util.List" resultMap="CustomOrderItemResult" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="CustomOrderItem" id="CustomOrderItemResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="declarePortId" column="declare_port_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="price" column="price" />
|
||||
<result property="shopPrice" column="shop_price" />
|
||||
<result property="freight" column="freight" />
|
||||
<result property="taxAmount" column="tax_amount" />
|
||||
<result property="itemLink" column="item_link" />
|
||||
<result property="bookNumber" column="book_number" />
|
||||
<result property="productCode" column="product_code" />
|
||||
<result property="name" column="name" />
|
||||
<result property="brand" column="brand" />
|
||||
<result property="specificationModel" column="specification_model" />
|
||||
<result property="description" column="description" />
|
||||
<result property="quantityUnit" column="quantity_unit" />
|
||||
<result property="produceCountry" column="produce_country" />
|
||||
<result property="inspectionAndQuarantineCode" column="inspection_and_quarantine_code" />
|
||||
<result property="hsCode" column="hs_code" />
|
||||
<result property="taxRate" column="tax_rate" />
|
||||
<result property="declaredCount" column="declared_count" />
|
||||
<result property="legalMeteringUnit" column="legal_metering_unit" />
|
||||
<result property="secondDeclaredCount" column="second_declared_count" />
|
||||
<result property="secondMeteringUnit" column="second_metering_unit" />
|
||||
<result property="grossWeight" column="gross_weight" />
|
||||
<result property="netWeight" column="net_weight" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCustomOrderVo">
|
||||
select id, declare_port_id, warehouse_id, mode, user_id, s_order_no, declare_order_no, status, express_name, ship_order_number, buyer_reg_no, buyer_name, buyer_telephone, buyer_id_type, buyer_id_number, consignee, consignee_telephone, consignee_address, consignee_province, consignee_city, consignee_district, total_amount, discount_amount, pay_total_amount, tax_total_amount, shop_tax_total_amount, freight_amount, total_gross_weight, total_net_weight, total_quantity, pay_name, pay_code, pay_time, gateway_order_id, consignor, consignor_address, consignor_telephone, consignor_country, consignor_province, consignor_city, consignor_district, receipt_account, ver_dept, pay_type, inital_request, inital_response, remark, express_return, process, add_time, inventory_no, batch_number from custom_order
|
||||
</sql>
|
||||
|
||||
<select id="selectCustomOrderList" parameterType="CustomOrder" resultMap="CustomOrderResult">
|
||||
<include refid="selectCustomOrderVo"/>
|
||||
<where>
|
||||
<if test="declarePortId != null "> and declare_port_id = #{declarePortId}</if>
|
||||
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
|
||||
<if test="mode != null "> and mode = #{mode}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="sOrderNo != null and sOrderNo != ''"> and s_order_no = #{sOrderNo}</if>
|
||||
<if test="declareOrderNo != null and declareOrderNo != ''"> and declare_order_no = #{declareOrderNo}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="expressName != null and expressName != ''"> and express_name like concat('%', #{expressName}, '%')</if>
|
||||
<if test="shipOrderNumber != null and shipOrderNumber != ''"> and ship_order_number = #{shipOrderNumber}</if>
|
||||
<if test="buyerRegNo != null and buyerRegNo != ''"> and buyer_reg_no = #{buyerRegNo}</if>
|
||||
<if test="buyerName != null and buyerName != ''"> and buyer_name like concat('%', #{buyerName}, '%')</if>
|
||||
<if test="buyerTelephone != null and buyerTelephone != ''"> and buyer_telephone = #{buyerTelephone}</if>
|
||||
<if test="buyerIdType != null "> and buyer_id_type = #{buyerIdType}</if>
|
||||
<if test="buyerIdNumber != null and buyerIdNumber != ''"> and buyer_id_number = #{buyerIdNumber}</if>
|
||||
<if test="consignee != null and consignee != ''"> and consignee = #{consignee}</if>
|
||||
<if test="consigneeTelephone != null and consigneeTelephone != ''"> and consignee_telephone = #{consigneeTelephone}</if>
|
||||
<if test="consigneeAddress != null and consigneeAddress != ''"> and consignee_address = #{consigneeAddress}</if>
|
||||
<if test="consigneeProvince != null and consigneeProvince != ''"> and consignee_province = #{consigneeProvince}</if>
|
||||
<if test="consigneeCity != null and consigneeCity != ''"> and consignee_city = #{consigneeCity}</if>
|
||||
<if test="consigneeDistrict != null and consigneeDistrict != ''"> and consignee_district = #{consigneeDistrict}</if>
|
||||
<if test="totalAmount != null "> and total_amount = #{totalAmount}</if>
|
||||
<if test="discountAmount != null "> and discount_amount = #{discountAmount}</if>
|
||||
<if test="payTotalAmount != null "> and pay_total_amount = #{payTotalAmount}</if>
|
||||
<if test="taxTotalAmount != null "> and tax_total_amount = #{taxTotalAmount}</if>
|
||||
<if test="shopTaxTotalAmount != null "> and shop_tax_total_amount = #{shopTaxTotalAmount}</if>
|
||||
<if test="freightAmount != null "> and freight_amount = #{freightAmount}</if>
|
||||
<if test="totalGrossWeight != null "> and total_gross_weight = #{totalGrossWeight}</if>
|
||||
<if test="totalNetWeight != null "> and total_net_weight = #{totalNetWeight}</if>
|
||||
<if test="totalQuantity != null "> and total_quantity = #{totalQuantity}</if>
|
||||
<if test="payName != null and payName != ''"> and pay_name like concat('%', #{payName}, '%')</if>
|
||||
<if test="payCode != null and payCode != ''"> and pay_code = #{payCode}</if>
|
||||
<if test="payTime != null "> and pay_time = #{payTime}</if>
|
||||
<if test="gatewayOrderId != null and gatewayOrderId != ''"> and gateway_order_id = #{gatewayOrderId}</if>
|
||||
<if test="consignor != null and consignor != ''"> and consignor = #{consignor}</if>
|
||||
<if test="consignorAddress != null and consignorAddress != ''"> and consignor_address = #{consignorAddress}</if>
|
||||
<if test="consignorTelephone != null and consignorTelephone != ''"> and consignor_telephone = #{consignorTelephone}</if>
|
||||
<if test="consignorCountry != null and consignorCountry != ''"> and consignor_country = #{consignorCountry}</if>
|
||||
<if test="consignorProvince != null and consignorProvince != ''"> and consignor_province = #{consignorProvince}</if>
|
||||
<if test="consignorCity != null and consignorCity != ''"> and consignor_city = #{consignorCity}</if>
|
||||
<if test="consignorDistrict != null and consignorDistrict != ''"> and consignor_district = #{consignorDistrict}</if>
|
||||
<if test="receiptAccount != null and receiptAccount != ''"> and receipt_account = #{receiptAccount}</if>
|
||||
<if test="verDept != null "> and ver_dept = #{verDept}</if>
|
||||
<if test="payType != null "> and pay_type = #{payType}</if>
|
||||
<if test="initalRequest != null and initalRequest != ''"> and inital_request = #{initalRequest}</if>
|
||||
<if test="initalResponse != null and initalResponse != ''"> and inital_response = #{initalResponse}</if>
|
||||
<if test="expressReturn != null and expressReturn != ''"> and express_return = #{expressReturn}</if>
|
||||
<if test="process != null and process != ''"> and process = #{process}</if>
|
||||
<if test="addTime != null "> and add_time = #{addTime}</if>
|
||||
<if test="inventoryNo != null and inventoryNo != ''"> and inventory_no = #{inventoryNo}</if>
|
||||
<if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCustomOrderById" parameterType="Long" resultMap="CustomOrderCustomOrderItemResult">
|
||||
select a.id, a.declare_port_id, a.warehouse_id, a.mode, a.user_id, a.s_order_no, a.declare_order_no, a.status, a.express_name, a.ship_order_number, a.buyer_reg_no, a.buyer_name, a.buyer_telephone, a.buyer_id_type, a.buyer_id_number, a.consignee, a.consignee_telephone, a.consignee_address, a.consignee_province, a.consignee_city, a.consignee_district, a.total_amount, a.discount_amount, a.pay_total_amount, a.tax_total_amount, a.shop_tax_total_amount, a.freight_amount, a.total_gross_weight, a.total_net_weight, a.total_quantity, a.pay_name, a.pay_code, a.pay_time, a.gateway_order_id, a.consignor, a.consignor_address, a.consignor_telephone, a.consignor_country, a.consignor_province, a.consignor_city, a.consignor_district, a.receipt_account, a.ver_dept, a.pay_type, a.inital_request, a.inital_response, a.remark, a.express_return, a.process, a.add_time, a.inventory_no, a.batch_number,
|
||||
b.id, b.order_id, b.declare_port_id, b.warehouse_id, b.bar_code, b.quantity, b.price, b.shop_price, b.freight, b.tax_amount, b.item_link, b.book_number, b.product_code, b.name, b.brand, b.specification_model, b.description, b.quantity_unit, b.produce_country, b.inspection_and_quarantine_code, b.hs_code, b.tax_rate, b.declared_count, b.legal_metering_unit, b.second_declared_count, b.second_metering_unit, b.gross_weight, b.net_weight
|
||||
from custom_order a
|
||||
left join custom_order_item b on b.order_id = a.id
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCustomOrder" parameterType="CustomOrder" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into custom_order
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="declarePortId != null">declare_port_id,</if>
|
||||
<if test="warehouseId != null">warehouse_id,</if>
|
||||
<if test="mode != null">mode,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="sOrderNo != null">s_order_no,</if>
|
||||
<if test="declareOrderNo != null">declare_order_no,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="expressName != null">express_name,</if>
|
||||
<if test="shipOrderNumber != null">ship_order_number,</if>
|
||||
<if test="buyerRegNo != null">buyer_reg_no,</if>
|
||||
<if test="buyerName != null">buyer_name,</if>
|
||||
<if test="buyerTelephone != null">buyer_telephone,</if>
|
||||
<if test="buyerIdType != null">buyer_id_type,</if>
|
||||
<if test="buyerIdNumber != null">buyer_id_number,</if>
|
||||
<if test="consignee != null">consignee,</if>
|
||||
<if test="consigneeTelephone != null">consignee_telephone,</if>
|
||||
<if test="consigneeAddress != null">consignee_address,</if>
|
||||
<if test="consigneeProvince != null">consignee_province,</if>
|
||||
<if test="consigneeCity != null">consignee_city,</if>
|
||||
<if test="consigneeDistrict != null">consignee_district,</if>
|
||||
<if test="totalAmount != null">total_amount,</if>
|
||||
<if test="discountAmount != null">discount_amount,</if>
|
||||
<if test="payTotalAmount != null">pay_total_amount,</if>
|
||||
<if test="taxTotalAmount != null">tax_total_amount,</if>
|
||||
<if test="shopTaxTotalAmount != null">shop_tax_total_amount,</if>
|
||||
<if test="freightAmount != null">freight_amount,</if>
|
||||
<if test="totalGrossWeight != null">total_gross_weight,</if>
|
||||
<if test="totalNetWeight != null">total_net_weight,</if>
|
||||
<if test="totalQuantity != null">total_quantity,</if>
|
||||
<if test="payName != null">pay_name,</if>
|
||||
<if test="payCode != null">pay_code,</if>
|
||||
<if test="payTime != null">pay_time,</if>
|
||||
<if test="gatewayOrderId != null">gateway_order_id,</if>
|
||||
<if test="consignor != null">consignor,</if>
|
||||
<if test="consignorAddress != null">consignor_address,</if>
|
||||
<if test="consignorTelephone != null">consignor_telephone,</if>
|
||||
<if test="consignorCountry != null">consignor_country,</if>
|
||||
<if test="consignorProvince != null">consignor_province,</if>
|
||||
<if test="consignorCity != null">consignor_city,</if>
|
||||
<if test="consignorDistrict != null">consignor_district,</if>
|
||||
<if test="receiptAccount != null">receipt_account,</if>
|
||||
<if test="verDept != null">ver_dept,</if>
|
||||
<if test="payType != null">pay_type,</if>
|
||||
<if test="initalRequest != null">inital_request,</if>
|
||||
<if test="initalResponse != null">inital_response,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="expressReturn != null">express_return,</if>
|
||||
<if test="process != null">process,</if>
|
||||
<if test="addTime != null">add_time,</if>
|
||||
<if test="inventoryNo != null">inventory_no,</if>
|
||||
<if test="batchNumber != null">batch_number,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="declarePortId != null">#{declarePortId},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="mode != null">#{mode},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="sOrderNo != null">#{sOrderNo},</if>
|
||||
<if test="declareOrderNo != null">#{declareOrderNo},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="expressName != null">#{expressName},</if>
|
||||
<if test="shipOrderNumber != null">#{shipOrderNumber},</if>
|
||||
<if test="buyerRegNo != null">#{buyerRegNo},</if>
|
||||
<if test="buyerName != null">#{buyerName},</if>
|
||||
<if test="buyerTelephone != null">#{buyerTelephone},</if>
|
||||
<if test="buyerIdType != null">#{buyerIdType},</if>
|
||||
<if test="buyerIdNumber != null">#{buyerIdNumber},</if>
|
||||
<if test="consignee != null">#{consignee},</if>
|
||||
<if test="consigneeTelephone != null">#{consigneeTelephone},</if>
|
||||
<if test="consigneeAddress != null">#{consigneeAddress},</if>
|
||||
<if test="consigneeProvince != null">#{consigneeProvince},</if>
|
||||
<if test="consigneeCity != null">#{consigneeCity},</if>
|
||||
<if test="consigneeDistrict != null">#{consigneeDistrict},</if>
|
||||
<if test="totalAmount != null">#{totalAmount},</if>
|
||||
<if test="discountAmount != null">#{discountAmount},</if>
|
||||
<if test="payTotalAmount != null">#{payTotalAmount},</if>
|
||||
<if test="taxTotalAmount != null">#{taxTotalAmount},</if>
|
||||
<if test="shopTaxTotalAmount != null">#{shopTaxTotalAmount},</if>
|
||||
<if test="freightAmount != null">#{freightAmount},</if>
|
||||
<if test="totalGrossWeight != null">#{totalGrossWeight},</if>
|
||||
<if test="totalNetWeight != null">#{totalNetWeight},</if>
|
||||
<if test="totalQuantity != null">#{totalQuantity},</if>
|
||||
<if test="payName != null">#{payName},</if>
|
||||
<if test="payCode != null">#{payCode},</if>
|
||||
<if test="payTime != null">#{payTime},</if>
|
||||
<if test="gatewayOrderId != null">#{gatewayOrderId},</if>
|
||||
<if test="consignor != null">#{consignor},</if>
|
||||
<if test="consignorAddress != null">#{consignorAddress},</if>
|
||||
<if test="consignorTelephone != null">#{consignorTelephone},</if>
|
||||
<if test="consignorCountry != null">#{consignorCountry},</if>
|
||||
<if test="consignorProvince != null">#{consignorProvince},</if>
|
||||
<if test="consignorCity != null">#{consignorCity},</if>
|
||||
<if test="consignorDistrict != null">#{consignorDistrict},</if>
|
||||
<if test="receiptAccount != null">#{receiptAccount},</if>
|
||||
<if test="verDept != null">#{verDept},</if>
|
||||
<if test="payType != null">#{payType},</if>
|
||||
<if test="initalRequest != null">#{initalRequest},</if>
|
||||
<if test="initalResponse != null">#{initalResponse},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="expressReturn != null">#{expressReturn},</if>
|
||||
<if test="process != null">#{process},</if>
|
||||
<if test="addTime != null">#{addTime},</if>
|
||||
<if test="inventoryNo != null">#{inventoryNo},</if>
|
||||
<if test="batchNumber != null">#{batchNumber},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCustomOrder" parameterType="CustomOrder">
|
||||
update custom_order
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="declarePortId != null">declare_port_id = #{declarePortId},</if>
|
||||
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
|
||||
<if test="mode != null">mode = #{mode},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="sOrderNo != null">s_order_no = #{sOrderNo},</if>
|
||||
<if test="declareOrderNo != null">declare_order_no = #{declareOrderNo},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="expressName != null">express_name = #{expressName},</if>
|
||||
<if test="shipOrderNumber != null">ship_order_number = #{shipOrderNumber},</if>
|
||||
<if test="buyerRegNo != null">buyer_reg_no = #{buyerRegNo},</if>
|
||||
<if test="buyerName != null">buyer_name = #{buyerName},</if>
|
||||
<if test="buyerTelephone != null">buyer_telephone = #{buyerTelephone},</if>
|
||||
<if test="buyerIdType != null">buyer_id_type = #{buyerIdType},</if>
|
||||
<if test="buyerIdNumber != null">buyer_id_number = #{buyerIdNumber},</if>
|
||||
<if test="consignee != null">consignee = #{consignee},</if>
|
||||
<if test="consigneeTelephone != null">consignee_telephone = #{consigneeTelephone},</if>
|
||||
<if test="consigneeAddress != null">consignee_address = #{consigneeAddress},</if>
|
||||
<if test="consigneeProvince != null">consignee_province = #{consigneeProvince},</if>
|
||||
<if test="consigneeCity != null">consignee_city = #{consigneeCity},</if>
|
||||
<if test="consigneeDistrict != null">consignee_district = #{consigneeDistrict},</if>
|
||||
<if test="totalAmount != null">total_amount = #{totalAmount},</if>
|
||||
<if test="discountAmount != null">discount_amount = #{discountAmount},</if>
|
||||
<if test="payTotalAmount != null">pay_total_amount = #{payTotalAmount},</if>
|
||||
<if test="taxTotalAmount != null">tax_total_amount = #{taxTotalAmount},</if>
|
||||
<if test="shopTaxTotalAmount != null">shop_tax_total_amount = #{shopTaxTotalAmount},</if>
|
||||
<if test="freightAmount != null">freight_amount = #{freightAmount},</if>
|
||||
<if test="totalGrossWeight != null">total_gross_weight = #{totalGrossWeight},</if>
|
||||
<if test="totalNetWeight != null">total_net_weight = #{totalNetWeight},</if>
|
||||
<if test="totalQuantity != null">total_quantity = #{totalQuantity},</if>
|
||||
<if test="payName != null">pay_name = #{payName},</if>
|
||||
<if test="payCode != null">pay_code = #{payCode},</if>
|
||||
<if test="payTime != null">pay_time = #{payTime},</if>
|
||||
<if test="gatewayOrderId != null">gateway_order_id = #{gatewayOrderId},</if>
|
||||
<if test="consignor != null">consignor = #{consignor},</if>
|
||||
<if test="consignorAddress != null">consignor_address = #{consignorAddress},</if>
|
||||
<if test="consignorTelephone != null">consignor_telephone = #{consignorTelephone},</if>
|
||||
<if test="consignorCountry != null">consignor_country = #{consignorCountry},</if>
|
||||
<if test="consignorProvince != null">consignor_province = #{consignorProvince},</if>
|
||||
<if test="consignorCity != null">consignor_city = #{consignorCity},</if>
|
||||
<if test="consignorDistrict != null">consignor_district = #{consignorDistrict},</if>
|
||||
<if test="receiptAccount != null">receipt_account = #{receiptAccount},</if>
|
||||
<if test="verDept != null">ver_dept = #{verDept},</if>
|
||||
<if test="payType != null">pay_type = #{payType},</if>
|
||||
<if test="initalRequest != null">inital_request = #{initalRequest},</if>
|
||||
<if test="initalResponse != null">inital_response = #{initalResponse},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="expressReturn != null">express_return = #{expressReturn},</if>
|
||||
<if test="process != null">process = #{process},</if>
|
||||
<if test="addTime != null">add_time = #{addTime},</if>
|
||||
<if test="inventoryNo != null">inventory_no = #{inventoryNo},</if>
|
||||
<if test="batchNumber != null">batch_number = #{batchNumber},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCustomOrderById" parameterType="Long">
|
||||
delete from custom_order where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCustomOrderByIds" parameterType="String">
|
||||
delete from custom_order where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCustomOrderItemByOrderIds" parameterType="String">
|
||||
delete from custom_order_item where order_id in
|
||||
<foreach item="orderId" collection="array" open="(" separator="," close=")">
|
||||
#{orderId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCustomOrderItemByOrderId" parameterType="Long">
|
||||
delete from custom_order_item where order_id = #{orderId}
|
||||
</delete>
|
||||
|
||||
<insert id="batchCustomOrderItem">
|
||||
insert into custom_order_item( id, order_id, declare_port_id, warehouse_id, bar_code, quantity, price, shop_price, freight, tax_amount, item_link, book_number, product_code, name, brand, specification_model, description, quantity_unit, produce_country, inspection_and_quarantine_code, hs_code, tax_rate, declared_count, legal_metering_unit, second_declared_count, second_metering_unit, gross_weight, net_weight) values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.orderId}, #{item.declarePortId}, #{item.warehouseId}, #{item.barCode}, #{item.quantity}, #{item.price}, #{item.shopPrice}, #{item.freight}, #{item.taxAmount}, #{item.itemLink}, #{item.bookNumber}, #{item.productCode}, #{item.name}, #{item.brand}, #{item.specificationModel}, #{item.description}, #{item.quantityUnit}, #{item.produceCountry}, #{item.inspectionAndQuarantineCode}, #{item.hsCode}, #{item.taxRate}, #{item.declaredCount}, #{item.legalMeteringUnit}, #{item.secondDeclaredCount}, #{item.secondMeteringUnit}, #{item.grossWeight}, #{item.netWeight})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in new issue
Block a user