|
@@ -28,67 +28,92 @@
|
|
|
<include refid="select_sql"></include>
|
|
|
<where>
|
|
|
<if test=' this.has("id") '> and id = #{id} </if>
|
|
|
- <if test=' this.has("platSeqNo") '> and plat_seq_no = #{platSeqNo} </if>
|
|
|
+ <if test=' this.has("tradeNo") '> and trade_no like concat('%',#{tradeNo},'%') </if>
|
|
|
<if test=' this.has("tradeAreaId") '> and trade_area_id = #{tradeAreaId} </if>
|
|
|
- <if test=' this.has("callCarStatus") '> and call_car_status = #{callCarStatus} </if>
|
|
|
- <if test=' this.has("finishStatus") '> and finish_status = #{finishStatus} </if>
|
|
|
- <if test=' this.has("cancelPeople") '> and cancel_people = #{cancelPeople} </if>
|
|
|
- <if test=' this.has("groupId") '> and group_id = #{groupId} </if>
|
|
|
<if test=' this.has("tradeAreaName") '> and trade_area_name = #{tradeAreaName} </if>
|
|
|
<if test=' this.has("addressIds") '> and address_ids = #{addressIds} </if>
|
|
|
- <if test=' this.has("saleMainId") '> and sale_main_id = #{saleMainId} </if>
|
|
|
- <if test=' this.has("tradeNo") '> and trade_no like concat('%',#{tradeNo},'%') </if>
|
|
|
+ <if test=' this.has("goodsId") '> and goods_id = #{goodsId} </if>
|
|
|
+ <if test=' this.has("goodsNames") '> and goods_names = #{goodsNames} </if>
|
|
|
+ <if test=' this.has("goodsUnit") '> and goods_unit = #{goodsUnit} </if>
|
|
|
+ <if test=' this.has("goodsImg") '> and goods_img = #{goodsImg} </if>
|
|
|
+ <if test=' this.has("totalWeight") '> and total_weight = #{totalWeight} </if>
|
|
|
+ <if test=' this.has("totalPrice") '> and total_price = #{totalPrice} </if>
|
|
|
<if test=' this.has("buyUserId") '> and buy_user_id = #{buyUserId} </if>
|
|
|
<if test=' this.has("buyUserName") '> and buy_user_name like concat('%',#{buyUserName},'%') </if>
|
|
|
<if test=' this.has("buyUserType") '> and buy_user_type = #{buyUserType} </if>
|
|
|
- <if test=' this.has("enterpriseId") '> and enterprise_id = #{enterpriseId} </if>
|
|
|
- <if test=' this.has("enterpriseName") '> and enterprise_name like concat('%',#{enterpriseName},'%') </if>
|
|
|
- <if test=' this.has("totalWeight") '> and total_weight = #{totalWeight} </if>
|
|
|
- <if test=' this.has("totalPrice") '> and total_price = #{totalPrice} </if>
|
|
|
<if test=' this.has("tradeStatus") '> and trade_status = #{tradeStatus} </if>
|
|
|
+ <if test=' this.has("tradeTime") '> and trade_time = #{tradeTime} </if>
|
|
|
<if test=' this.has("payType") '> and pay_type = #{payType} </if>
|
|
|
+ <if test=' this.has("shopId") '> and shop_id = #{shopId} </if>
|
|
|
+ <if test=' this.has("shopName") '> and shop_name = #{shopName} </if>
|
|
|
+ <if test=' this.has("enterpriseId") '> and enterprise_id = #{enterpriseId} </if>
|
|
|
+ <if test=' this.has("enterpriseName") '> and enterprise_name like concat('%',#{enterpriseName},'%') </if>
|
|
|
+ <if test=' this.has("enterpriseConfirm") '> and enterprise_confirm = #{enterpriseConfirm} </if>
|
|
|
+ <if test=' this.has("groupId") '> and group_id = #{groupId} </if>
|
|
|
<if test=' this.has("settleTime") '> and settle_time = #{settleTime} </if>
|
|
|
<if test=' this.has("realPrice") '> and real_price = #{realPrice} </if>
|
|
|
<if test=' this.has("shouldPrice") '> and should_price = #{shouldPrice} </if>
|
|
|
+ <if test=' this.has("record") '> and record = #{record} </if>
|
|
|
<if test=' this.has("settleUserId") '> and settle_user_id = #{settleUserId} </if>
|
|
|
<if test=' this.has("recordUserId") '> and record_user_id = #{recordUserId} </if>
|
|
|
<if test=' this.has("recordTime") '> and record_time = #{recordTime} </if>
|
|
|
- <if test=' this.has("record") '> and record = #{record} </if>
|
|
|
<if test=' this.has("refundReason") '> and refund_reason = #{refundReason} </if>
|
|
|
<if test=' this.has("refundTime") '> and refund_time = #{refundTime} </if>
|
|
|
<if test=' this.has("receiveName") '> and receive_name = #{receiveName} </if>
|
|
|
<if test=' this.has("receivePhone") '> and receive_phone = #{receivePhone} </if>
|
|
|
<if test=' this.has("receiveAddress") '> and receive_address = #{receiveAddress} </if>
|
|
|
<if test=' this.has("outTime") '> and out_time = #{outTime} </if>
|
|
|
- <if test=' this.has("goodsNames") '> and goods_names = #{goodsNames} </if>
|
|
|
- <if test=' this.has("apply") '> and apply = #{apply} </if>
|
|
|
- <if test=' this.has("applyTime") '> and apply_time = #{applyTime} </if>
|
|
|
- <if test=' this.has("applyResult") '> and apply_result = #{applyResult} </if>
|
|
|
- <if test=' this.has("applyFailReason") '> and apply_fail_reason = #{applyFailReason} </if>
|
|
|
<if test=' this.has("distribution") '> and distribution = #{distribution} </if>
|
|
|
- <if test=' this.has("confirm") '> and confirm = #{confirm} </if>
|
|
|
<if test=' this.has("pick") '> and pick = #{pick} </if>
|
|
|
<if test=' this.has("pickTime") '> and pick_time = #{pickTime} </if>
|
|
|
- <if test=' this.has("shopId") '> and shop_id = #{shopId} </if>
|
|
|
- <if test=' this.has("shopName") '> and shop_name = #{shopName} </if>
|
|
|
<if test=' this.has("send") '> and send = #{send} </if>
|
|
|
<if test=' this.has("sendTime") '> and send_time = #{sendTime} </if>
|
|
|
- <if test=' this.has("levelTwoOrderId") '> and level_two_order_id = #{levelTwoOrderId} </if>
|
|
|
- <if test="dateBegin != null and dateBegin != ''"> AND create_time BETWEEN #{dateBegin} AND #{dateEnd} + INTERVAL 1 DAY</if>
|
|
|
+ <if test=' this.has("callCarStatus") '> and call_car_status = #{callCarStatus} </if>
|
|
|
<if test=' this.has("createBy") '> and create_by = #{createBy} </if>
|
|
|
<if test=' this.has("createName") '> and create_name = #{createName} </if>
|
|
|
- <if test=' this.has("updateTime") '> and update_time = #{updateTime} </if>
|
|
|
+ <if test=' this.has("createTime") '> and create_time = #{createTime} </if>
|
|
|
<if test=' this.has("updateBy") '> and update_by = #{updateBy} </if>
|
|
|
<if test=' this.has("updateName") '> and update_name = #{updateName} </if>
|
|
|
+ <if test=' this.has("updateTime") '> and update_time = #{updateTime} </if>
|
|
|
<if test=' this.has("deleteStatus") '> and delete_status = #{deleteStatus} </if>
|
|
|
- <if test=' this.has("enterpriseConfirm") '> and enterprise_confirm = #{enterpriseConfirm} </if>
|
|
|
- <if test=' this.has("resaleStatus") '> and resale_status = #{resaleStatus} </if>
|
|
|
+ <if test=' this.has("collageOrdersId") '> and collage_orders_id = #{collageOrdersId} </if>
|
|
|
+ <if test=' this.has("applyNo") '> and apply_no = #{applyNo} </if>
|
|
|
+ <if test=' this.has("apply") '> and apply = #{apply} </if>
|
|
|
+ <if test=' this.has("applyTime") '> and apply_time = #{applyTime} </if>
|
|
|
+ <if test=' this.has("applyResult") '> and apply_result = #{applyResult} </if>
|
|
|
+ <if test=' this.has("applyFailReason") '> and apply_fail_reason = #{applyFailReason} </if>
|
|
|
<if test=' this.has("peopleConfirmStatus") '> and people_confirm_status = #{peopleConfirmStatus} </if>
|
|
|
<if test=' this.has("peopleConfirmType") '> and people_confirm_type = #{peopleConfirmType} </if>
|
|
|
- <if test=' this.has("collageOrdersId") '> and collage_orders_id = #{collageOrdersId} </if>
|
|
|
- <if test=' this.has("applyConfirmStatus") '> and apply_confirm_status = #{applyConfirmStatus} </if>
|
|
|
+ <if test=' this.has("peopleConfirmTime") '> and people_confirm_time = #{peopleConfirmTime} </if>
|
|
|
<if test=' this.has("cooperEntrustStatus") '> and cooper_entrust_status = #{cooperEntrustStatus} </if>
|
|
|
+ <if test=' this.has("cooperEntrustTime") '> and cooper_entrust_time = #{cooperEntrustTime} </if>
|
|
|
+ <if test=' this.has("applyConfirmStatus") '> and apply_confirm_status = #{applyConfirmStatus} </if>
|
|
|
+ <if test=' this.has("applyConfirmTime") '> and apply_confirm_time = #{applyConfirmTime} </if>
|
|
|
+ <if test=' this.has("finishStatus") '> and finish_status = #{finishStatus} </if>
|
|
|
+ <if test=' this.has("resaleStatus") '> and resale_status = #{resaleStatus} </if>
|
|
|
<if test=' this.has("beingOrder") '> and being_order = #{beingOrder} </if>
|
|
|
+ <if test=' this.has("platSeqNo") '> and plat_seq_no = #{platSeqNo} </if>
|
|
|
+ <if test=' this.has("settleBillNo") '> and settle_bill_no = #{settleBillNo} </if>
|
|
|
+ <if test=' this.has("preIeportNo") '> and pre_ieport_no = #{preIeportNo} </if>
|
|
|
+ <if test=' this.has("preNo") '> and pre_no = #{preNo} </if>
|
|
|
+ <if test=' this.has("veNo") '> and ve_no = #{veNo} </if>
|
|
|
+ <if test=' this.has("voyageNo") '> and voyage_no = #{voyageNo} </if>
|
|
|
+ <if test=' this.has("borderName") '> and border_name = #{borderName} </if>
|
|
|
+ <if test=' this.has("idno") '> and idno = #{idno} </if>
|
|
|
+ <if test=' this.has("borderPutrecNo") '> and border_putrec_no = #{borderPutrecNo} </if>
|
|
|
+ <if test=' this.has("buyAmount") '> and buy_amount = #{buyAmount} </if>
|
|
|
+ <if test=' this.has("netWt") '> and net_wt = #{netWt} </if>
|
|
|
+ <if test=' this.has("grossWt") '> and gross_wt = #{grossWt} </if>
|
|
|
+ <if test=' this.has("buyQty") '> and buy_qty = #{buyQty} </if>
|
|
|
+ <if test=' this.has("buyQty1") '> and buy_qty1 = #{buyQty1} </if>
|
|
|
+ <if test=' this.has("buyQty2") '> and buy_qty2 = #{buyQty2} </if>
|
|
|
+ <if test=' this.has("saleMainId") '> and sale_main_id = #{saleMainId} </if>
|
|
|
+ <if test=' this.has("cancelPeople") '> and cancel_people = #{cancelPeople} </if>
|
|
|
+ <if test=' this.has("limitNo") '> and limit_no = #{limitNo} </if>
|
|
|
+ <if test=' this.has("gLimit") '> and g_limit = #{gLimit} </if>
|
|
|
+ <if test=' this.has("gNo") '> and g_no = #{gNo} </if>
|
|
|
+ <if test=' this.has("importOrderId") '> and import_order_id = #{importOrderId} </if>
|
|
|
+ <if test=' this.has("declareType") '> and declare_type = #{declareType} </if>
|
|
|
</where>
|
|
|
order by
|
|
|
<choose>
|