记得上下班打卡 | 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
af8c3ae3
Commit
af8c3ae3
authored
Jul 27, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
80e6e9a2
5841c5b4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
9 deletions
+21
-9
KylinOrderRefundsServiceImpl.java
...gzai/kylin/service/impl/KylinOrderRefundsServiceImpl.java
+1
-1
KylinRefundsStatusServiceImpl.java
...zai/kylin/service/impl/KylinRefundsStatusServiceImpl.java
+1
-1
liquidnet-service-consumer-dragon.yml
...ig/liquidnet-config/liquidnet-service-consumer-dragon.yml
+1
-1
liquidnet-service-dragon.yml
...-bus-config/liquidnet-config/liquidnet-service-dragon.yml
+1
-1
KylinOrderTicketEntitiesMapper.xml
...t.service.kylin.mapper/KylinOrderTicketEntitiesMapper.xml
+1
-0
WePayRefundReturnDto.java
...rvice/dragon/channel/wepay/resp/WePayRefundReturnDto.java
+4
-0
DragonOrderRefundsServiceImpl.java
...ce/dragon/service/impl/DragonOrderRefundsServiceImpl.java
+12
-5
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinOrderRefundsServiceImpl.java
View file @
af8c3ae3
...
@@ -249,7 +249,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
...
@@ -249,7 +249,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
orderRefundStatus
=
new
Integer
[]{
KylinTableStatusConst
.
ORDER_REFUND_STATUS_APPLY
,
KylinTableStatusConst
.
ORDER_REFUND_STATUS_REFUSE
};
orderRefundStatus
=
new
Integer
[]{
KylinTableStatusConst
.
ORDER_REFUND_STATUS_APPLY
,
KylinTableStatusConst
.
ORDER_REFUND_STATUS_REFUSE
};
break
;
break
;
case
"reject"
:
case
"reject"
:
orderRefundStatus
=
new
Integer
[]{
KylinTableStatusConst
.
ORDER_REFUND_STATUS_APPLY
,
KylinTableStatusConst
.
ORDER_REFUND_STATUS_
APPROVED
,
KylinTableStatusConst
.
ORDER_REFUND_STATUS_
REFUSE
};
orderRefundStatus
=
new
Integer
[]{
KylinTableStatusConst
.
ORDER_REFUND_STATUS_APPLY
,
KylinTableStatusConst
.
ORDER_REFUND_STATUS_REFUSE
};
break
;
break
;
case
"unfilled"
:
case
"unfilled"
:
orderRefundStatus
=
new
Integer
[]{
KylinTableStatusConst
.
ORDER_REFUND_STATUS_APPROVED
,
KylinTableStatusConst
.
ORDER_REFUND_STATUS_ERROR
};
orderRefundStatus
=
new
Integer
[]{
KylinTableStatusConst
.
ORDER_REFUND_STATUS_APPROVED
,
KylinTableStatusConst
.
ORDER_REFUND_STATUS_ERROR
};
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinRefundsStatusServiceImpl.java
View file @
af8c3ae3
...
@@ -417,7 +417,7 @@ public class KylinRefundsStatusServiceImpl {
...
@@ -417,7 +417,7 @@ public class KylinRefundsStatusServiceImpl {
params
.
add
(
"paymentId"
,
oderInfo
.
getPaymentId
());
params
.
add
(
"paymentId"
,
oderInfo
.
getPaymentId
());
params
.
add
(
"paymentType"
,
oderInfo
.
getPaymentType
());
params
.
add
(
"paymentType"
,
oderInfo
.
getPaymentType
());
params
.
add
(
"price"
,
String
.
valueOf
(
refundPrice
));
params
.
add
(
"price"
,
String
.
valueOf
(
refundPrice
));
params
.
add
(
"priceTotal"
,
String
.
valueOf
(
refundPrice
));
params
.
add
(
"priceTotal"
,
String
.
valueOf
(
oderInfo
.
getPriceTotal
()
));
params
.
add
(
"reason"
,
refund
.
getReason
());
params
.
add
(
"reason"
,
refund
.
getReason
());
/*String sign = StringUtils.Ksort(params);
/*String sign = StringUtils.Ksort(params);
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-consumer-dragon.yml
View file @
af8c3ae3
...
@@ -69,7 +69,7 @@ spring:
...
@@ -69,7 +69,7 @@ spring:
simple
:
simple
:
acknowledge-mode
:
manual
acknowledge-mode
:
manual
redis
:
redis
:
database
:
15
database
:
0
port
:
${liquidnet.redis.dragon.port}
port
:
${liquidnet.redis.dragon.port}
host
:
${liquidnet.redis.dragon.host}
host
:
${liquidnet.redis.dragon.host}
password
:
${liquidnet.redis.dragon.password}
password
:
${liquidnet.redis.dragon.password}
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-dragon.yml
View file @
af8c3ae3
...
@@ -79,7 +79,7 @@ spring:
...
@@ -79,7 +79,7 @@ spring:
virtual-host
:
${liquidnet.rabbitmq.virtual-host}
virtual-host
:
${liquidnet.rabbitmq.virtual-host}
connection-timeout
:
${liquidnet.rabbitmq.connection-timeout}
connection-timeout
:
${liquidnet.rabbitmq.connection-timeout}
redis
:
redis
:
database
:
15
database
:
0
port
:
${liquidnet.redis.port}
port
:
${liquidnet.redis.port}
host
:
${liquidnet.redis.host}
host
:
${liquidnet.redis.host}
password
:
${liquidnet.redis.password}
password
:
${liquidnet.redis.password}
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinOrderTicketEntitiesMapper.xml
View file @
af8c3ae3
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
<where>
<where>
AND a.order_tickets_id = #{orderTicketsId}
AND a.order_tickets_id = #{orderTicketsId}
AND a.status != ${orderRefundStatusCancel}
AND a.status != ${orderRefundStatusCancel}
AND a.status != 5
AND b.order_ticket_entities_id = #{orderTicketEntitiesId}
AND b.order_ticket_entities_id = #{orderTicketEntitiesId}
</where>
</where>
</select>
</select>
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/wepay/resp/WePayRefundReturnDto.java
View file @
af8c3ae3
...
@@ -43,4 +43,8 @@ public class WePayRefundReturnDto {
...
@@ -43,4 +43,8 @@ public class WePayRefundReturnDto {
private
String
couponRefundCount
;
private
String
couponRefundCount
;
@XStreamAlias
(
"cash_refund_fee"
)
@XStreamAlias
(
"cash_refund_fee"
)
private
String
cashRefundFee
;
private
String
cashRefundFee
;
@XStreamAlias
(
"err_code"
)
private
String
errCode
;
@XStreamAlias
(
"err_code_des"
)
private
String
errCodeDes
;
}
}
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/service/impl/DragonOrderRefundsServiceImpl.java
View file @
af8c3ae3
...
@@ -104,11 +104,10 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -104,11 +104,10 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
}
else
if
(
dto
.
getResult
().
equalsIgnoreCase
(
"error"
))
{
}
else
if
(
dto
.
getResult
().
equalsIgnoreCase
(
"error"
))
{
//调用回调
//调用回调
log
.
error
(
""
);
log
.
error
(
""
);
return
ResponseDto
.
failure
(
"退款失败:"
+
dto
.
getMessage
());
}
else
if
(
dto
.
getResult
().
equalsIgnoreCase
(
"exception"
))
{
}
else
if
(
dto
.
getResult
().
equalsIgnoreCase
(
"exception"
))
{
log
.
error
(
""
);
log
.
error
(
""
);
}
}
DragonRefundAppDto
refundAppDto
=
new
DragonRefundAppDto
();
DragonRefundAppDto
refundAppDto
=
new
DragonRefundAppDto
();
refundAppDto
.
setOrderCode
(
orderCode
);
refundAppDto
.
setOrderCode
(
orderCode
);
refundAppDto
.
setCode
(
code
);
refundAppDto
.
setCode
(
code
);
...
@@ -167,6 +166,14 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -167,6 +166,14 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
String
jsonStr
=
EntityUtils
.
toString
(
entity
,
"UTF-8"
);
String
jsonStr
=
EntityUtils
.
toString
(
entity
,
"UTF-8"
);
log
.
debug
(
"JSONSTR = "
+
jsonStr
);
log
.
debug
(
"JSONSTR = "
+
jsonStr
);
WePayRefundReturnDto
wePayRefundReturnDto
=
XmlUtil
.
toBean
(
jsonStr
,
WePayRefundReturnDto
.
class
);
WePayRefundReturnDto
wePayRefundReturnDto
=
XmlUtil
.
toBean
(
jsonStr
,
WePayRefundReturnDto
.
class
);
if
(
wePayRefundReturnDto
.
getErrCodeDes
()
!=
null
)
{
channelDto
.
setResult
(
"error"
);
channelDto
.
setMessage
(
paymentType
+
" refund error: "
+
wePayRefundReturnDto
.
getErrCodeDes
());
contentDto
.
setRequest
(
data
);
contentDto
.
setResponse
(
jsonStr
);
channelDto
.
setContent
(
contentDto
);
return
channelDto
;
}
log
.
debug
(
"BEAN = "
+
wePayRefundReturnDto
);
log
.
debug
(
"BEAN = "
+
wePayRefundReturnDto
);
if
(!
wePayRefundReturnDto
.
getReturnCode
().
equalsIgnoreCase
(
"SUCCESS"
)
||
wePayRefundReturnDto
.
getReturnCode
()
==
null
)
{
if
(!
wePayRefundReturnDto
.
getReturnCode
().
equalsIgnoreCase
(
"SUCCESS"
)
||
wePayRefundReturnDto
.
getReturnCode
()
==
null
)
{
try
{
try
{
...
@@ -376,7 +383,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -376,7 +383,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
dto
.
setRefundPrice
(
info
.
getRefundFee
());
dto
.
setRefundPrice
(
info
.
getRefundFee
());
dto
.
setRefundAt
(
refundAt
);
dto
.
setRefundAt
(
refundAt
);
dto
.
setRefundError
(
callBackDto
.
getReturnMsg
());
dto
.
setRefundError
(
callBackDto
.
getReturnMsg
());
log
.
debug
(
"SEND WEPAY NOTIFTURL = "
+
JSON
.
toJSONString
(
dto
));
log
.
debug
(
"SEND WEPAY NOTIFTURL = "
+
JSON
.
toJSONString
(
dto
));
sendNotifyUrl
(
dto
);
sendNotifyUrl
(
dto
);
mqHandleUtil
.
sendMySqlRedis
(
mqHandleUtil
.
sendMySqlRedis
(
...
@@ -432,7 +439,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -432,7 +439,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
dto
.
setRefundAt
(
callBackDto
.
getGmtRefund
());
dto
.
setRefundAt
(
callBackDto
.
getGmtRefund
());
dto
.
setRefundPrice
(
response
.
getRefundAmount
());
dto
.
setRefundPrice
(
response
.
getRefundAmount
());
dto
.
setRefundError
(
""
);
dto
.
setRefundError
(
""
);
log
.
debug
(
"SEND ALIPAY NOTIFTURL = "
+
JSON
.
toJSONString
(
dto
));
log
.
debug
(
"SEND ALIPAY NOTIFTURL = "
+
JSON
.
toJSONString
(
dto
));
sendNotifyUrl
(
dto
);
sendNotifyUrl
(
dto
);
mqHandleUtil
.
sendMySqlRedis
(
mqHandleUtil
.
sendMySqlRedis
(
...
@@ -473,7 +480,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -473,7 +480,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
params
.
add
(
"refundError"
,
notifyUrlDto
.
getRefundError
());
params
.
add
(
"refundError"
,
notifyUrlDto
.
getRefundError
());
params
.
add
(
"refundPrice"
,
notifyUrlDto
.
getRefundPrice
());
params
.
add
(
"refundPrice"
,
notifyUrlDto
.
getRefundPrice
());
params
.
add
(
"status"
,
notifyUrlDto
.
getStatus
().
toString
());
params
.
add
(
"status"
,
notifyUrlDto
.
getStatus
().
toString
());
String
response
=
HttpUtil
.
post
(
dataUtils
.
getRefundNotifyUrl
(
DragonConstant
.
REFUND_REDIS_KET
+
notifyUrlDto
.
getOrderRefundCode
()),
params
);
String
response
=
HttpUtil
.
post
(
dataUtils
.
getRefundNotifyUrl
(
DragonConstant
.
REFUND_REDIS_KET
+
notifyUrlDto
.
getOrderRefundCode
()),
params
);
log
.
debug
(
"RETURN RESPONSE="
+
response
);
log
.
debug
(
"RETURN RESPONSE="
+
response
);
if
(
response
.
equals
(
"success"
))
{
if
(
response
.
equals
(
"success"
))
{
mqHandleUtil
.
sendMySqlRedis
(
mqHandleUtil
.
sendMySqlRedis
(
...
...
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