记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
ff53d559
Commit
ff53d559
authored
Jun 17, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 order的下单
parent
3ab353b6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
202 additions
and
172 deletions
+202
-172
GoblinOrderServiceImpl.java
...et/service/order/service/impl/GoblinOrderServiceImpl.java
+103
-83
KylinOrderTicketsServiceImpl.java
...vice/order/service/impl/KylinOrderTicketsServiceImpl.java
+77
-69
GoblinOrderUtils.java
...a/com/liquidnet/service/order/utils/GoblinOrderUtils.java
+22
-20
No files found.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/GoblinOrderServiceImpl.java
View file @
ff53d559
This diff is collapsed.
Click to expand it.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/KylinOrderTicketsServiceImpl.java
View file @
ff53d559
This diff is collapsed.
Click to expand it.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/GoblinOrderUtils.java
View file @
ff53d559
...
...
@@ -9,6 +9,9 @@ import com.liquidnet.service.base.SqlMapping;
import
com.liquidnet.service.base.constant.MQConst
;
import
com.liquidnet.service.candy.param.BackCouponParam
;
import
com.liquidnet.service.candy.vo.CandyUseResultVo
;
import
com.liquidnet.service.dragon.dto.DragonRefundAppDto
;
import
com.liquidnet.service.dragon.service.IDragonOrderRefundsService
;
import
com.liquidnet.service.dragon.service.IDragonOrdersService
;
import
com.liquidnet.service.goblin.constant.GoblinStatusConst
;
import
com.liquidnet.service.goblin.dto.GoblinQueueBizIntegralDto
;
import
com.liquidnet.service.goblin.dto.GoblinQueueBizMongoDto
;
...
...
@@ -36,8 +39,8 @@ public class GoblinOrderUtils {
private
String
candyUrl
;
@Value
(
"${liquidnet.service.order.url-pay.goblinRefundUrl}"
)
private
String
synUrl
;
@
Value
(
"${liquidnet.service.dragon.urls.refundApply}"
)
private
String
refundApply
;
@
Autowired
private
IDragonOrderRefundsService
dragonOrderRefundsService
;
@Autowired
QueueUtils
queueUtils
;
...
...
@@ -228,11 +231,12 @@ public class GoblinOrderUtils {
/**
* mongo操作入队列
*
* @param collect Mongo集合名
* @param column Mongo集合中的字段属性名称
* @param bizId Mongo集合中的字段属性值
* @param prefix Redis缓存中的Key前缀
* @param opType 操作类型[1-insert|2-update]
* @param column
Mongo集合中的字段属性名称
* @param bizId
Mongo集合中的字段属性值
* @param prefix
Redis缓存中的Key前缀
* @param opType
操作类型[1-insert|2-update]
*/
public
void
setMongoList
(
String
collect
,
String
column
,
String
bizId
,
String
prefix
,
int
opType
)
{
GoblinQueueBizMongoDto
goblinQueueBizMongoDto
=
GoblinQueueBizMongoDto
.
getNew
();
...
...
@@ -481,23 +485,21 @@ public class GoblinOrderUtils {
}
private
String
initRefund
(
GoblinStoreOrderVo
orderVo
,
BigDecimal
price
,
String
refundCode
)
{
MultiValueMap
<
String
,
String
>
params
=
CollectionUtil
.
linkedMultiValueMapStringString
();
params
.
add
(
"code"
,
orderVo
.
getPayCode
());
params
.
add
(
"notifyUrl"
,
synUrl
);
params
.
add
(
"orderCode"
,
orderVo
.
getMasterOrderCode
());
params
.
add
(
"orderRefundCode"
,
refundCode
);
params
.
add
(
"paymentId"
,
orderVo
.
getPaymentId
());
params
.
add
(
"paymentType"
,
orderVo
.
getPaymentType
());
params
.
add
(
"price"
,
String
.
valueOf
(
price
));
BigDecimal
totalPrice
=
BigDecimal
.
ZERO
;
totalPrice
=
totalPrice
.
add
(
price
);
params
.
add
(
"priceTotal"
,
String
.
valueOf
(
totalPrice
));
params
.
add
(
"reason"
,
"超时支付"
);
MultiValueMap
<
String
,
String
>
headers
=
CollectionUtil
.
linkedMultiValueMapStringString
();
headers
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
String
returnString
=
HttpUtil
.
post
(
refundApply
,
params
,
headers
);
ResponseDto
<
DragonRefundAppDto
>
returnData
=
dragonOrderRefundsService
.
dragonRefund
(
orderVo
.
getMasterOrderCode
(),
orderVo
.
getPayCode
(),
refundCode
,
"超时支付"
,
synUrl
,
price
,
orderVo
.
getPaymentType
(),
orderVo
.
getPaymentId
(),
totalPrice
);
String
returnString
=
JSON
.
toJSONString
(
returnData
);
log
.
debug
(
"REFUND DATA = "
+
returnString
);
return
returnString
;
return
JsonUtils
.
toJson
(
returnString
)
;
}
//订单异常处理
...
...
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