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
bbaa71f2
Commit
bbaa71f2
authored
Nov 27, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改优惠卷金额由后台查找
parent
22a25e54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+5
-1
SConsumptionRecordsMapper.xml
...ain/resources/mapper/system/SConsumptionRecordsMapper.xml
+2
-2
No files found.
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
bbaa71f2
...
...
@@ -386,7 +386,11 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
SOrder
sOrder
=
new
SOrder
();
BeanUtils
.
copyProperties
(
request
,
sOrder
);
sOrder
.
setTotalPrice
(
request
.
getTotalFee
());
sOrder
.
setCouponPrice
(
request
.
getCouponFee
());
if
(
ObjectUtil
.
isNotEmpty
(
request
.
getCouponId
()))
{
//查询优惠卷金额
SConsumerCoupon
coupon
=
consumerCouponService
.
getById
(
request
.
getCouponId
());
sOrder
.
setCouponPrice
(
coupon
.
getSubPrice
());
}
sOrder
.
setPayPrice
(
request
.
getPayFee
());
sOrder
.
setBuyType
(
request
.
getBuyType
());
//设置订单号
...
...
share-system/src/main/resources/mapper/system/SConsumptionRecordsMapper.xml
View file @
bbaa71f2
...
...
@@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"orderId != null"
>
#{orderId},
</if>
<if
test=
"name != null and name != ''"
>
#{name},
</if>
<if
test=
"price != null"
>
#{price},
</if>
<if
test=
"pay_type != null"
>
#{pay
_t
ype},
</if>
<if
test=
"pay_type != null"
>
#{pay
T
ype},
</if>
<if
test=
"sign != null"
>
#{sign},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
</trim>
...
...
@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"orderId != null"
>
order_id = #{orderId},
</if>
<if
test=
"name != null and name != ''"
>
name = #{name},
</if>
<if
test=
"price != null"
>
price = #{price},
</if>
<if
test=
"pay_type != null"
>
pay_type = #{pay
_t
ype},
</if>
<if
test=
"pay_type != null"
>
pay_type = #{pay
T
ype},
</if>
<if
test=
"sign != null"
>
sign = #{sign},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
</trim>
...
...
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