1
This commit is contained in:
@@ -35,13 +35,16 @@
|
||||
<result property="invoiceOpenedDate" column="invoice_opened_date"/>
|
||||
<result property="isReviewPosted" column="is_review_posted"/>
|
||||
<result property="reviewPostedDate" column="review_posted_date"/>
|
||||
<result property="rebateRemarkJson" column="rebate_remark_json"/>
|
||||
<result property="rebateRemarkHasAbnormal" column="rebate_remark_has_abnormal"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectJDOrderBase">
|
||||
select id, remark, distribution_mark, model_number, link, payment_amount, rebate_amount,
|
||||
address, logistics_link, order_id, buyer, order_time, create_time, update_time, status, is_count_enabled, third_party_order_no, jingfen_actual_price,
|
||||
is_refunded, refund_date, is_refund_received, refund_received_date, is_rebate_received, rebate_received_date,
|
||||
is_price_protected, price_protected_date, is_invoice_opened, invoice_opened_date, is_review_posted, review_posted_date
|
||||
is_price_protected, price_protected_date, is_invoice_opened, invoice_opened_date, is_review_posted, review_posted_date,
|
||||
rebate_remark_json, rebate_remark_has_abnormal
|
||||
from jd_order
|
||||
</sql>
|
||||
|
||||
@@ -72,6 +75,10 @@
|
||||
<if test="isPriceProtected != null"> and is_price_protected = #{isPriceProtected}</if>
|
||||
<if test="isInvoiceOpened != null"> and is_invoice_opened = #{isInvoiceOpened}</if>
|
||||
<if test="isReviewPosted != null"> and is_review_posted = #{isReviewPosted}</if>
|
||||
<if test="rebateRemarkHasAbnormal != null"> and rebate_remark_has_abnormal = #{rebateRemarkHasAbnormal}</if>
|
||||
<if test="params.hasRebateRemark != null and params.hasRebateRemark == true">
|
||||
and rebate_remark_json is not null and char_length(trim(rebate_remark_json)) > 2
|
||||
</if>
|
||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||
and date(order_time) >= #{params.beginTime}
|
||||
</if>
|
||||
@@ -109,6 +116,10 @@
|
||||
<if test="isPriceProtected != null"> and is_price_protected = #{isPriceProtected}</if>
|
||||
<if test="isInvoiceOpened != null"> and is_invoice_opened = #{isInvoiceOpened}</if>
|
||||
<if test="isReviewPosted != null"> and is_review_posted = #{isReviewPosted}</if>
|
||||
<if test="rebateRemarkHasAbnormal != null"> and rebate_remark_has_abnormal = #{rebateRemarkHasAbnormal}</if>
|
||||
<if test="params.hasRebateRemark != null and params.hasRebateRemark == true">
|
||||
and rebate_remark_json is not null and char_length(trim(rebate_remark_json)) > 2
|
||||
</if>
|
||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||
and date(order_time) >= #{params.beginTime}
|
||||
</if>
|
||||
@@ -183,6 +194,8 @@
|
||||
<if test="invoiceOpenedDate != null"> invoice_opened_date = #{invoiceOpenedDate},</if>
|
||||
<if test="isReviewPosted != null"> is_review_posted = #{isReviewPosted},</if>
|
||||
<if test="reviewPostedDate != null"> review_posted_date = #{reviewPostedDate},</if>
|
||||
<if test="rebateRemarkJson != null"> rebate_remark_json = #{rebateRemarkJson},</if>
|
||||
<if test="rebateRemarkHasAbnormal != null"> rebate_remark_has_abnormal = #{rebateRemarkHasAbnormal},</if>
|
||||
update_time = now()
|
||||
</set>
|
||||
where id = #{id}
|
||||
|
||||
Reference in New Issue
Block a user