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
eac9c43a
Commit
eac9c43a
authored
Jul 25, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refs/heads/dev' into test
parents
b2380b31
3bd58ea5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
EquityMembersOrderController.java
...e/web/controller/system/EquityMembersOrderController.java
+2
-2
RechargeController.java
.../java/share/web/controller/system/RechargeController.java
+2
-2
SOrderController.java
...in/java/share/web/controller/system/SOrderController.java
+4
-4
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+1
-0
No files found.
share-front/src/main/java/share/web/controller/system/EquityMembersOrderController.java
View file @
eac9c43a
...
@@ -69,11 +69,11 @@ public class EquityMembersOrderController extends BaseController {
...
@@ -69,11 +69,11 @@ public class EquityMembersOrderController extends BaseController {
@PostMapping
(
"/createEquityMembers"
)
@PostMapping
(
"/createEquityMembers"
)
public
R
<
EquityMembersResultResponse
>
createOrder
(
@RequestBody
@Validated
CreateEquityMembersRequest
request
)
{
public
R
<
EquityMembersResultResponse
>
createOrder
(
@RequestBody
@Validated
CreateEquityMembersRequest
request
)
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
log
.
info
(
"EquityMembersOrderController method preOrder 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
log
.
debug
(
"EquityMembersOrderController method preOrder 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
}
}
EquityMembersResultResponse
response
=
equityMembersOrderService
.
createEquityMembers
(
request
);
EquityMembersResultResponse
response
=
equityMembersOrderService
.
createEquityMembers
(
request
);
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
log
.
info
(
"EquityMembersOrderController method preOrder 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
log
.
debug
(
"EquityMembersOrderController method preOrder 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
}
}
return
R
.
ok
(
response
);
return
R
.
ok
(
response
);
}
}
...
...
share-front/src/main/java/share/web/controller/system/RechargeController.java
View file @
eac9c43a
...
@@ -59,11 +59,11 @@ public class RechargeController extends BaseController {
...
@@ -59,11 +59,11 @@ public class RechargeController extends BaseController {
@PostMapping
(
"/createRecharge"
)
@PostMapping
(
"/createRecharge"
)
public
R
<
RechargePayResultResponse
>
createOrder
(
@RequestBody
@Validated
CreateRechargeRequest
request
)
{
public
R
<
RechargePayResultResponse
>
createOrder
(
@RequestBody
@Validated
CreateRechargeRequest
request
)
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
log
.
info
(
"RechargeController method preOrder 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
log
.
debug
(
"RechargeController method preOrder 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
}
}
RechargePayResultResponse
response
=
rechargeService
.
createRecharge
(
request
);
RechargePayResultResponse
response
=
rechargeService
.
createRecharge
(
request
);
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
log
.
info
(
"RechargeController method preOrder 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
log
.
debug
(
"RechargeController method preOrder 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
}
}
return
R
.
ok
(
response
);
return
R
.
ok
(
response
);
}
}
...
...
share-front/src/main/java/share/web/controller/system/SOrderController.java
View file @
eac9c43a
...
@@ -91,11 +91,11 @@ public class SOrderController extends BaseController
...
@@ -91,11 +91,11 @@ public class SOrderController extends BaseController
@RequestMapping
(
value
=
"/creat"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/creat"
,
method
=
RequestMethod
.
POST
)
public
R
<
OrderPayResultResponse
>
createOrder
(
@RequestBody
@Validated
CreateOrderRequest
request
)
{
public
R
<
OrderPayResultResponse
>
createOrder
(
@RequestBody
@Validated
CreateOrderRequest
request
)
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
log
.
info
(
"SOrderController method preOrder 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
log
.
debug
(
"SOrderController method preOrder 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
}
}
OrderPayResultResponse
response
=
sOrderService
.
createOrder
(
request
);
OrderPayResultResponse
response
=
sOrderService
.
createOrder
(
request
);
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
log
.
info
(
"SOrderController method preOrder 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
log
.
debug
(
"SOrderController method preOrder 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
}
}
return
R
.
ok
(
response
);
return
R
.
ok
(
response
);
}
}
...
@@ -125,9 +125,9 @@ public class SOrderController extends BaseController
...
@@ -125,9 +125,9 @@ public class SOrderController extends BaseController
@ApiOperation
(
value
=
"计算订单价格"
)
@ApiOperation
(
value
=
"计算订单价格"
)
@RequestMapping
(
value
=
"/computed/price"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/computed/price"
,
method
=
RequestMethod
.
POST
)
public
R
<
ComputedOrderPriceResponse
>
computedPrice
(
@Validated
@RequestBody
OrderComputedPriceRequest
request
)
{
public
R
<
ComputedOrderPriceResponse
>
computedPrice
(
@Validated
@RequestBody
OrderComputedPriceRequest
request
)
{
log
.
info
(
"StoreOrderController method computedPrice 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
log
.
debug
(
"StoreOrderController method computedPrice 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
ComputedOrderPriceResponse
response
=
sOrderService
.
computedOrderPrice
(
request
);
ComputedOrderPriceResponse
response
=
sOrderService
.
computedOrderPrice
(
request
);
log
.
info
(
"StoreOrderController method computedPrice 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
log
.
debug
(
"StoreOrderController method computedPrice 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
return
R
.
ok
(
response
);
return
R
.
ok
(
response
);
}
}
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
eac9c43a
...
@@ -2392,6 +2392,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -2392,6 +2392,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
if
(
priceResponse
.
getPayFee
().
compareTo
(
new
BigDecimal
(
0
))
>
0
)
{
if
(
priceResponse
.
getPayFee
().
compareTo
(
new
BigDecimal
(
0
))
>
0
)
{
if
(
ObjectUtil
.
isNotEmpty
(
consumerMember
))
{
if
(
ObjectUtil
.
isNotEmpty
(
consumerMember
))
{
MemberConfig
memberConfig
=
memberConfigService
.
getOne
(
new
LambdaQueryWrapper
<
MemberConfig
>().
eq
(
MemberConfig:
:
getId
,
consumerMember
.
getMemberConfigId
()));
MemberConfig
memberConfig
=
memberConfigService
.
getOne
(
new
LambdaQueryWrapper
<
MemberConfig
>().
eq
(
MemberConfig:
:
getId
,
consumerMember
.
getMemberConfigId
()));
priceResponse
.
setTotalFeeNow
(
priceResponse
.
getTotalFee
().
multiply
(
memberConfig
.
getDiscountRatio
()).
divide
(
new
BigDecimal
(
100
)));
//总金额乘以折扣比例除以100
//总金额乘以折扣比例除以100
priceResponse
.
setPayFee
(
priceResponse
.
getPayFee
().
multiply
(
memberConfig
.
getDiscountRatio
()).
divide
(
new
BigDecimal
(
100
)));
priceResponse
.
setPayFee
(
priceResponse
.
getPayFee
().
multiply
(
memberConfig
.
getDiscountRatio
()).
divide
(
new
BigDecimal
(
100
)));
priceResponse
.
setDiscountFee
(
priceResponse
.
getTotalFee
().
subtract
(
priceResponse
.
getPayFee
()));
priceResponse
.
setDiscountFee
(
priceResponse
.
getTotalFee
().
subtract
(
priceResponse
.
getPayFee
()));
...
...
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