Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
2a2f1680
Commit
2a2f1680
authored
Dec 06, 2023
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单查询bug
parent
65bee741
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
SOrderMapper.xml
...-system/src/main/resources/mapper/system/SOrderMapper.xml
+4
-4
No files found.
share-system/src/main/resources/mapper/system/SOrderMapper.xml
View file @
2a2f1680
...
...
@@ -81,12 +81,12 @@
<select
id=
"selectSOrderList"
parameterType=
"SOrder"
resultMap=
"SOrderResult"
>
<include
refid=
"selectSOrderVo"
/>
where
1=
1
where
pay_status =
1
<if
test=
"orderNo != null and orderNo != ''"
>
and order_no = #{orderNo}
</if>
<if
test=
"outTradeNo != null and outTradeNo != ''"
>
and out_trade_no = #{outTradeNo}
</if>
<if
test=
"orderType != null and orderType != ''"
>
and order_type = #{orderType}
</if>
<if
test=
"payType != null and payType != ''"
>
and pay_type = #{payType}
</if>
<if
test=
"payStatus != null and payStatus != ''"
>
and pay_status = #{payStatus}
</if
>
<!-- <if test="payStatus != null and payStatus != ''">and pay_status = #{payStatus}</if>--
>
<if
test=
"storeId != null and storeId != ''"
>
and store_id = #{storeId}
</if>
<if
test=
"roomId != null and roomId != ''"
>
and room_id = #{roomId}
</if>
<if
test=
"consumerId != null and consumerId != ''"
>
and consumer_id = #{consumerId}
</if>
...
...
@@ -103,10 +103,10 @@
<if
test=
"preStartDate != null and preStartDate != ''"
>
and pre_start_date = #{preStartDate}
</if>
<if
test=
"preEndDate != null and preEndDate != ''"
>
and pre_end_date = #{preEndDate}
</if>
<if
test=
"startDate != null"
>
and DATE_FORMAT(
start_date, '%Y-%m-%d')
= DATE_FORMAT(#{startDate}, '%Y-%m-%d')
and DATE_FORMAT(
create_time, '%Y-%m-%d')
>
= DATE_FORMAT(#{startDate}, '%Y-%m-%d')
</if>
<if
test=
"endDate != null"
>
and DATE_FORMAT(
end_Date, '%Y-%m-%d')
= DATE_FORMAT(#{endDate}, '%Y-%m-%d')
and DATE_FORMAT(
create_time, '%Y-%m-%d')
<
= DATE_FORMAT(#{endDate}, '%Y-%m-%d')
</if>
<if
test=
"status != null and status != '' or status==0"
>
and status = #{status}
</if>
<if
test=
"refundStatus != null and refundStatus != ''"
>
and refund_status = #{refundStatus}
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment