记得上下班打卡 | 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
d7cb0082
Commit
d7cb0082
authored
Mar 11, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/hjc' into hjc
parents
ce924ec9
83069919
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
72 deletions
+14
-72
GoblinStatusConst.java
.../liquidnet/service/goblin/constant/GoblinStatusConst.java
+2
-1
GoblinBackOrderVo.java
...om/liquidnet/service/goblin/dto/vo/GoblinBackOrderVo.java
+1
-1
RedisStreamConfig.java
...om/liquidnet/service/dragon/config/RedisStreamConfig.java
+0
-66
GoblinStoreBackOrderServiceImpl.java
.../service/impl/manage/GoblinStoreBackOrderServiceImpl.java
+3
-0
GoblinOrderServiceImpl.java
...et/service/order/service/impl/GoblinOrderServiceImpl.java
+2
-2
GoblinOrderUtils.java
...a/com/liquidnet/service/order/utils/GoblinOrderUtils.java
+6
-2
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/constant/GoblinStatusConst.java
View file @
d7cb0082
...
@@ -99,8 +99,9 @@ public class GoblinStatusConst {
...
@@ -99,8 +99,9 @@ public class GoblinStatusConst {
BACK_REASON_TYPE_5
(
5
,
"不想买了"
),
BACK_REASON_TYPE_5
(
5
,
"不想买了"
),
BACK_REASON_TYPE_6
(
6
,
"商品质量问题"
),
BACK_REASON_TYPE_6
(
6
,
"商品质量问题"
),
BACK_REASON_TYPE_7
(
7
,
"收到商品与描述不符"
),
BACK_REASON_TYPE_7
(
7
,
"收到商品与描述不符"
),
BACK_REASON_TYPE_8
(
8
,
"商铺发起"
),
//todo
BACK_REASON_TYPE_8
(
8
,
"商铺发起"
),
BACK_REASON_TYPE_9
(
9
,
"系统自动申请"
),
BACK_REASON_TYPE_9
(
9
,
"系统自动申请"
),
BACK_REASON_TYPE_10
(
10
,
"超时支付自动退款"
),
BACK_TYPE_1
(
1
,
"退款"
),
BACK_TYPE_1
(
1
,
"退款"
),
BACK_TYPE_2
(
2
,
"退货"
),
BACK_TYPE_2
(
2
,
"退货"
),
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinBackOrderVo.java
View file @
d7cb0082
...
@@ -94,7 +94,7 @@ public class GoblinBackOrderVo implements Serializable, Cloneable {
...
@@ -94,7 +94,7 @@ public class GoblinBackOrderVo implements Serializable, Cloneable {
public
GoblinBackOrderVo
copy
(
GoblinBackOrder
source
)
{
public
GoblinBackOrderVo
copy
(
GoblinBackOrder
source
)
{
this
.
setBackOrderId
(
source
.
getBackOrderId
());
this
.
setBackOrderId
(
source
.
getBackOrderId
());
this
.
setBackCode
(
source
.
getBackCode
());
this
.
setBackCode
(
source
.
getBackCode
());
this
.
setOrderId
(
source
.
get
Back
OrderId
());
this
.
setOrderId
(
source
.
getOrderId
());
this
.
setOrderCode
(
source
.
getOrderCode
());
this
.
setOrderCode
(
source
.
getOrderCode
());
this
.
setStoreId
(
source
.
getStoreId
());
this
.
setStoreId
(
source
.
getStoreId
());
this
.
setUserId
(
source
.
getUserId
());
this
.
setUserId
(
source
.
getUserId
());
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/config/RedisStreamConfig.java
deleted
100644 → 0
View file @
ce924ec9
package
com
.
liquidnet
.
service
.
dragon
.
config
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
public
class
RedisStreamConfig
{
// @Autowired
// private RedisPayNotifyReceiver redisPayNotifyReceiver;
// @Bean
// public Subscription subscriptionAlipayNotify0(RedisConnectionFactory factory) {
// var options = StreamMessageListenerContainer
// .StreamMessageListenerContainerOptions
// .builder()
// .pollTimeout(Duration.ofMillis(1))
// .build();
// var listenerContainer = StreamMessageListenerContainer.create(factory, options);
// var subscription = listenerContainer.receiveAutoAck(Consumer.from(DragonConstant.ChannelRedisQueueEnum.ALIPAY_PAY_GROUP.getCode(), "alipay-pay-notify-0"),
// StreamOffset.create(DragonConstant.ChannelRedisQueueEnum.ALIPAY_PAY_KEY.getCode(), ReadOffset.lastConsumed()), redisPayNotifyReceiver);
// listenerContainer.start();
// return subscription;
// }
//
// @Bean
// public Subscription subscriptionAlipayNotify1(RedisConnectionFactory factory) {
// var options = StreamMessageListenerContainer
// .StreamMessageListenerContainerOptions
// .builder()
// .pollTimeout(Duration.ofMillis(1))
// .build();
// var listenerContainer = StreamMessageListenerContainer.create(factory, options);
// var subscription = listenerContainer.receiveAutoAck(Consumer.from(DragonConstant.ChannelRedisQueueEnum.ALIPAY_PAY_GROUP.getCode(), "alipay-pay-notify-1"),
// StreamOffset.create(DragonConstant.ChannelRedisQueueEnum.ALIPAY_PAY_KEY.getCode(), ReadOffset.lastConsumed()), redisPayNotifyReceiver);
// listenerContainer.start();
// return subscription;
// }
//
// @Bean
// public Subscription subscriptionWepayNotify0(RedisConnectionFactory factory) {
// var options = StreamMessageListenerContainer
// .StreamMessageListenerContainerOptions
// .builder()
// .pollTimeout(Duration.ofMillis(1))
// .build();
// var listenerContainer = StreamMessageListenerContainer.create(factory, options);
// var subscription = listenerContainer.receiveAutoAck(Consumer.from(DragonConstant.ChannelRedisQueueEnum.WECHAT_PAY_GROUP.getCode(), "wepay-pay-notify-0"),
// StreamOffset.create(DragonConstant.ChannelRedisQueueEnum.WECHAT_PAY_KEY.getCode(), ReadOffset.lastConsumed()), redisPayNotifyReceiver);
// listenerContainer.start();
// return subscription;
// }
//
// @Bean
// public Subscription subscriptionWepayNotify1(RedisConnectionFactory factory) {
// var options = StreamMessageListenerContainer
// .StreamMessageListenerContainerOptions
// .builder()
// .pollTimeout(Duration.ofMillis(1))
// .build();
// var listenerContainer = StreamMessageListenerContainer.create(factory, options);
// var subscription = listenerContainer.receiveAutoAck(Consumer.from(DragonConstant.ChannelRedisQueueEnum.WECHAT_PAY_GROUP.getCode(), "wepay-pay-notify-1"),
// StreamOffset.create(DragonConstant.ChannelRedisQueueEnum.WECHAT_PAY_KEY.getCode(), ReadOffset.lastConsumed()), redisPayNotifyReceiver);
// listenerContainer.start();
// return subscription;
// }
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreBackOrderServiceImpl.java
View file @
d7cb0082
...
@@ -154,6 +154,9 @@ public class GoblinStoreBackOrderServiceImpl implements IGoblinStoreBackOrderSer
...
@@ -154,6 +154,9 @@ public class GoblinStoreBackOrderServiceImpl implements IGoblinStoreBackOrderSer
return
ResponseDto
.
failure
(
"无法查看"
);
return
ResponseDto
.
failure
(
"无法查看"
);
}
}
GoblinBackOrderVo
backOrderVo
=
redisUtils
.
getBackOrderVo
(
backOrderId
);
GoblinBackOrderVo
backOrderVo
=
redisUtils
.
getBackOrderVo
(
backOrderId
);
if
(
backOrderVo
.
getStatus
().
equals
(
GoblinStatusConst
.
Status
.
ORDER_BACK_STATUS_0
.
getValue
())){
return
ResponseDto
.
failure
(
"已经发起"
);
}
backOrderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_BACK_STATUS_0
.
getValue
());
backOrderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_BACK_STATUS_0
.
getValue
());
backOrderVo
.
setAuditAt
(
nowStr
);
backOrderVo
.
setAuditAt
(
nowStr
);
//添加日志
//添加日志
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/GoblinOrderServiceImpl.java
View file @
d7cb0082
...
@@ -349,7 +349,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -349,7 +349,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
if
(
addressesVo
==
null
)
{
if
(
addressesVo
==
null
)
{
storeOrder
.
setPriceExpress
(
BigDecimal
.
ZERO
);
storeOrder
.
setPriceExpress
(
BigDecimal
.
ZERO
);
}
else
{
}
else
{
storeOrder
.
setPriceExpress
(
BigDecimal
.
TEN
);
storeOrder
.
setPriceExpress
(
BigDecimal
.
ZERO
);
}
}
storeOrder
.
setPriceTotal
(
storeTotalPrice
.
add
(
storeOrder
.
getPriceExpress
()));
storeOrder
.
setPriceTotal
(
storeTotalPrice
.
add
(
storeOrder
.
getPriceExpress
()));
BigDecimal
priceActual
=
storeOrder
.
getPriceTotal
().
subtract
(
voucherPrice
).
subtract
(
storeVoucherPrice
);
BigDecimal
priceActual
=
storeOrder
.
getPriceTotal
().
subtract
(
voucherPrice
).
subtract
(
storeVoucherPrice
);
...
@@ -901,7 +901,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -901,7 +901,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
String
orderId
=
backOrderVo
.
getOrderId
();
String
orderId
=
backOrderVo
.
getOrderId
();
List
<
GoblinBackOrderSkuVo
>
backOrderSkuVos
=
backOrderVo
.
getBackOrderSkuVos
();
List
<
GoblinBackOrderSkuVo
>
backOrderSkuVos
=
backOrderVo
.
getBackOrderSkuVos
();
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
orderVo
.
setPriceRefund
(
orderVo
.
getPriceRefund
().
add
(
refundCallbackParam
.
getRefundPrice
()));
orderVo
.
setPriceRefund
(
orderVo
.
getPriceRefund
()
==
null
?
BigDecimal
.
ZERO
:
orderVo
.
getPriceRefund
()
.
add
(
refundCallbackParam
.
getRefundPrice
()));
if
(
orderVo
.
getPriceRefund
().
compareTo
(
orderVo
.
getPriceActual
())
>=
0
)
{
if
(
orderVo
.
getPriceRefund
().
compareTo
(
orderVo
.
getPriceActual
())
>=
0
)
{
//整单退款 退券
//整单退款 退券
orderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_6
.
getValue
());
orderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_6
.
getValue
());
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/GoblinOrderUtils.java
View file @
d7cb0082
...
@@ -296,7 +296,11 @@ public class GoblinOrderUtils {
...
@@ -296,7 +296,11 @@ public class GoblinOrderUtils {
//超时支付自动退款
//超时支付自动退款
public
Boolean
refundOrderSku
(
String
orderId
,
String
paymentId
,
String
paymentType
)
{
public
Boolean
refundOrderSku
(
String
orderId
,
String
paymentId
,
String
paymentType
)
{
int
autoSize
=
redisUtils
.
getBackOrderByOrderId
(
orderId
).
size
();
if
(
autoSize
>
0
)
{
return
true
;
}
String
uid
=
CurrentUtil
.
getCurrentUid
();
String
uid
=
CurrentUtil
.
getCurrentUid
();
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
String
nowStr
=
DateUtil
.
getNowTime
();
String
nowStr
=
DateUtil
.
getNowTime
();
...
@@ -329,7 +333,7 @@ public class GoblinOrderUtils {
...
@@ -329,7 +333,7 @@ public class GoblinOrderUtils {
goblinBackOrder
.
setUserId
(
orderVo
.
getUserId
());
goblinBackOrder
.
setUserId
(
orderVo
.
getUserId
());
// goblinBackOrder.setSkuIdNums(orderSkuId);
// goblinBackOrder.setSkuIdNums(orderSkuId);
goblinBackOrder
.
setType
(
GoblinStatusConst
.
Type
.
BACK_TYPE_1
.
getValue
());
goblinBackOrder
.
setType
(
GoblinStatusConst
.
Type
.
BACK_TYPE_1
.
getValue
());
goblinBackOrder
.
setReason
(
GoblinStatusConst
.
Type
.
BACK_REASON_TYPE_
8
.
getDesc
());
goblinBackOrder
.
setReason
(
GoblinStatusConst
.
Type
.
BACK_REASON_TYPE_
10
.
getDesc
());
goblinBackOrder
.
setDescribes
(
"超时支付自动退款"
);
goblinBackOrder
.
setDescribes
(
"超时支付自动退款"
);
refundPrice
=
refundPrice
.
add
(
orderVo
.
getPriceExpress
());
refundPrice
=
refundPrice
.
add
(
orderVo
.
getPriceExpress
());
goblinBackOrder
.
setRealBackPrice
(
refundPrice
);
goblinBackOrder
.
setRealBackPrice
(
refundPrice
);
...
...
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