|
|
@@ -77,6 +77,208 @@
|
|
|
|
|
|
<select id="selectOrderPage" resultMap="orderResultMap">
|
|
|
select * from business_order where is_deleted = 0
|
|
|
+ <if test="Order.id!=null">
|
|
|
+ and id = #{Order.id}
|
|
|
+ </if>
|
|
|
+ <if test="Order.sysNo!=null and Order.sysNo != ''">
|
|
|
+ and sys_no = #{Order.sysNo}
|
|
|
+ </if>
|
|
|
+ <if test="Order.orderNo!=null and Order.orderNo != ''">
|
|
|
+ and order_no = #{Order.orderNo}
|
|
|
+ </if>
|
|
|
+ <if test="Order.morderNo!=null and Order.morderNo != ''">
|
|
|
+ and morder_no = #{Order.morderNo}
|
|
|
+ </if>
|
|
|
+ <if test="Order.orgOrderNo!=null and Order.orgOrderNo != ''">
|
|
|
+ and org_order_no = #{Order.orgOrderNo}
|
|
|
+ </if>
|
|
|
+ <if test="Order.srcOrderNo!=null and Order.srcOrderNo != ''">
|
|
|
+ and src_order_no = #{Order.srcOrderNo}
|
|
|
+ </if>
|
|
|
+ <if test="Order.srcId!=null">
|
|
|
+ and src_id = #{Order.srcId}
|
|
|
+ </if>
|
|
|
+ <if test="Order.billType!=null and Order.billType != ''">
|
|
|
+ and bill_type = #{Order.billType}
|
|
|
+ </if>
|
|
|
+ <if test="Order.orderType!=null and Order.orderType != ''">
|
|
|
+ and order_type = #{Order.orderType}
|
|
|
+ </if>
|
|
|
+ <if test="Order.businesDate!=null">
|
|
|
+ and busines_date = #{Order.businesDate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.corpId!=null">
|
|
|
+ and corp_id = #{Order.corpId}
|
|
|
+ </if>
|
|
|
+ <if test="Order.purchaserId!=null">
|
|
|
+ and purchaser_id = #{Order.purchaserId}
|
|
|
+ </if>
|
|
|
+ <if test="Order.storageId!=null">
|
|
|
+ and storage_id = #{Order.storageId}
|
|
|
+ </if>
|
|
|
+ <if test="Order.shippingAddress!=null and Order.shippingAddress != ''">
|
|
|
+ and shipping_address = #{Order.shippingAddress}
|
|
|
+ </if>
|
|
|
+ <if test="Order.arrivalAddress!=null and Order.arrivalAddress != ''">
|
|
|
+ and arrival_address = #{Order.arrivalAddress}
|
|
|
+ </if>
|
|
|
+ <if test="Order.packageRemarks!=null and Order.packageRemarks != ''">
|
|
|
+ and package_remarks = #{Order.packageRemarks}
|
|
|
+ </if>
|
|
|
+ <if test="Order.freightRemarks!=null and Order.freightRemarks != ''">
|
|
|
+ and freight_remarks = #{Order.freightRemarks}
|
|
|
+ </if>
|
|
|
+ <if test="Order.banks!=null and Order.banks != ''">
|
|
|
+ and banks = #{Order.banks}
|
|
|
+ </if>
|
|
|
+ <if test="Order.banksAccountName!=null and Order.banksAccountName != ''">
|
|
|
+ and banks_account_name = #{Order.banksAccountName}
|
|
|
+ </if>
|
|
|
+ <if test="Order.requiredDeliveryDate!=null">
|
|
|
+ and required_delivery_date = #{Order.requiredDeliveryDate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.requiredArrivalDate!=null">
|
|
|
+ and required_arrival_date = #{Order.requiredArrivalDate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.orderRemark!=null and Order.orderRemark != ''">
|
|
|
+ and order_remark = #{Order.orderRemark}
|
|
|
+ </if>
|
|
|
+ <if test="Order.orderAmount!=null">
|
|
|
+ and order_amount = #{Order.orderAmount}
|
|
|
+ </if>
|
|
|
+ <if test="Order.otherAmount!=null">
|
|
|
+ and other_amount = #{Order.otherAmount}
|
|
|
+ </if>
|
|
|
+ <if test="Order.debitAmount!=null">
|
|
|
+ and debit_amount = #{Order.debitAmount}
|
|
|
+ </if>
|
|
|
+ <if test="Order.balanceAmount!=null">
|
|
|
+ and balance_amount = #{Order.balanceAmount}
|
|
|
+ </if>
|
|
|
+ <if test="Order.paymentType!=null and Order.paymentType != ''">
|
|
|
+ and payment_type = #{Order.paymentType}
|
|
|
+ </if>
|
|
|
+ <if test="Order.creditDate!=null">
|
|
|
+ and credit_date = #{Order.creditDate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.advancePayment!=null">
|
|
|
+ and advance_payment = #{Order.advancePayment}
|
|
|
+ </if>
|
|
|
+ <if test="Order.overPayment!=null">
|
|
|
+ and over_payment = #{Order.overPayment}
|
|
|
+ </if>
|
|
|
+ <if test="Order.deposit!=null">
|
|
|
+ and deposit = #{Order.deposit}
|
|
|
+ </if>
|
|
|
+ <if test="Order.overDueAccounts!=null">
|
|
|
+ and over_due_accounts = #{Order.overDueAccounts}
|
|
|
+ </if>
|
|
|
+ <if test="Order.advanceCollectionDate!=null">
|
|
|
+ and advance_collection_date = #{Order.advanceCollectionDate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.accountsCollectionDate!=null">
|
|
|
+ and accounts_collection_date = #{Order.accountsCollectionDate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.grossProfitRate!=null">
|
|
|
+ and gross_profit_rate = #{Order.grossProfitRate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.grossProfit!=null">
|
|
|
+ and gross_profit = #{Order.grossProfit}
|
|
|
+ </if>
|
|
|
+ <if test="Order.belongToCorpId!=null">
|
|
|
+ and belong_to_corp_id = #{Order.belongToCorpId}
|
|
|
+ </if>
|
|
|
+ <if test="Order.freightAmountHistory!=null">
|
|
|
+ and freight_amount_history = #{Order.freightAmountHistory}
|
|
|
+ </if>
|
|
|
+ <if test="Order.actualDeliveryDate!=null">
|
|
|
+ and actual_delivery_date = #{Order.actualDeliveryDate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.arrivalDate!=null">
|
|
|
+ and arrival_date = #{Order.arrivalDate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.procurementMethod!=null and Order.procurementMethod != ''">
|
|
|
+ and procurement_method = #{Order.procurementMethod}
|
|
|
+ </if>
|
|
|
+ <if test="Order.storageAmount!=null">
|
|
|
+ and storage_amount = #{Order.storageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="Order.purchaseAmount!=null">
|
|
|
+ and purchase_amount = #{Order.purchaseAmount}
|
|
|
+ </if>
|
|
|
+ <if test="Order.storageQuantity!=null">
|
|
|
+ and storage_quantity = #{Order.storageQuantity}
|
|
|
+ </if>
|
|
|
+ <if test="Order.purchaseQuantity!=null">
|
|
|
+ and purchase_quantity = #{Order.purchaseQuantity}
|
|
|
+ </if>
|
|
|
+ <if test="Order.pointMutiple!=null">
|
|
|
+ and point_mutiple = #{Order.pointMutiple}
|
|
|
+ </if>
|
|
|
+ <if test="Order.specialRemarks!=null and Order.specialRemarks != ''">
|
|
|
+ and special_remarks = #{Order.specialRemarks}
|
|
|
+ </if>
|
|
|
+ <if test="Order.salesName!=null and Order.salesName != ''">
|
|
|
+ and sales_name = #{Order.salesName}
|
|
|
+ </if>
|
|
|
+ <if test="Order.commissionRate!=null and Order.commissionRate != ''">
|
|
|
+ and commission_rate = #{Order.commissionRate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.salesPrice!=null">
|
|
|
+ and sales_price = #{Order.salesPrice}
|
|
|
+ </if>
|
|
|
+ <if test="Order.invoiceWeight!=null">
|
|
|
+ and invoice_weight = #{Order.invoiceWeight}
|
|
|
+ </if>
|
|
|
+ <if test="Order.billWeight!=null">
|
|
|
+ and bill_weight = #{Order.billWeight}
|
|
|
+ </if>
|
|
|
+ <if test="Order.currency!=null and Order.currency != ''">
|
|
|
+ and currency = #{Order.currency}
|
|
|
+ </if>
|
|
|
+ <if test="Order.exchangeRate!=null">
|
|
|
+ and exchange_rate = #{Order.exchangeRate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.plannedDeliveryDate!=null">
|
|
|
+ and planned_delivery_date = #{Order.plannedDeliveryDate}
|
|
|
+ </if>
|
|
|
+ <if test="Order.proformInvoice!=null and Order.proformInvoice != ''">
|
|
|
+ and proform_invoice = #{Order.proformInvoice}
|
|
|
+ </if>
|
|
|
+ <if test="Order.portOfLoad!=null and Order.portOfLoad != ''">
|
|
|
+ and port_of_load = #{Order.portOfLoad}
|
|
|
+ </if>
|
|
|
+ <if test="Order.portOfDestination!=null and Order.portOfDestination != ''">
|
|
|
+ and port_of_destination = #{Order.portOfDestination}
|
|
|
+ </if>
|
|
|
+ <if test="Order.oceanFreight!=null">
|
|
|
+ and ocean_freight = #{Order.oceanFreight}
|
|
|
+ </if>
|
|
|
+ <if test="Order.version!=null and Order.version != ''">
|
|
|
+ and version = #{Order.version}
|
|
|
+ </if>
|
|
|
+ <if test="Order.tenantId!=null and Order.tenantId != ''">
|
|
|
+ and tenant_id = #{Order.tenantId}
|
|
|
+ </if>
|
|
|
+ <if test="Order.createUser!=null">
|
|
|
+ and create_user = #{Order.createUser}
|
|
|
+ </if>
|
|
|
+ <if test="Order.createDept!=null">
|
|
|
+ and create_dept = #{Order.createDept}
|
|
|
+ </if>
|
|
|
+ <if test="Order.createTime!=null">
|
|
|
+ and create_time = #{Order.createTime}
|
|
|
+ </if>
|
|
|
+ <if test="Order.updateUser!=null">
|
|
|
+ and update_user = #{Order.updateUser}
|
|
|
+ </if>
|
|
|
+ <if test="Order.updateTime!=null">
|
|
|
+ and update_time = #{Order.updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="Order.status!=null">
|
|
|
+ and status = #{Order.status}
|
|
|
+ </if>
|
|
|
+ order by id
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|