Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
sibu-v-mall
/
sibu-v-mall-third-api
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
cd8dab59
由
刘嘉
编写于
2018-06-02 15:34:07 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改检测退款逻辑
1 个父辈
c40e01b1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
28 行删除
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/CheckRefundStatusBizServiceImpl.java
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/CheckRefundStatusBizServiceImpl.java
查看文件 @
cd8dab5
...
...
@@ -54,36 +54,34 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
if
(!
StringUtil
.
isNull
(
memberProductBackList
)
&&
!
memberProductBackList
.
isEmpty
()){
MemberProductBack
memberProductBack
=
memberProductBackList
.
stream
().
findFirst
().
get
();
PineappleRefundEnum
refundEnum
=
PineappleRefundEnum
.
resolveByPlatformRefundStatus
(
memberProductBack
.
getStateReturn
());
//不予理会表示没有退款
if
(!
StringUtil
.
isNull
(
refundEnum
)
&&
PineappleRefundEnum
.
JH_05
.
getCode
()
!=
refundEnum
.
getCode
()){
//如果退款状态是店铺收货需要判断该退款信息是否已付款
if
(
memberProductBack
.
getStateReturn
().
intValue
()
==
MemberProductBackEnum
.
ShopDelivery
.
getCode
()){
if
(
memberProductBack
.
getStateMoney
()
==
1
){
checkRefundStatusResponse
.
setRefundStatus
(
PineappleRefundEnum
.
JH_99
.
getCode
());
checkRefundStatusResponse
.
setSubmessage
(
PineappleRefundEnum
.
JH_99
.
getMsg
());
checkRefundStatusResponse
.
setRefundStatusdescription
(
PineappleRefundEnum
.
JH_99
.
getMsg
());
checkRefundStatusResponse
.
setChildrenrefundStatus
(
new
ArrayList
());
checkRefundStatusResponse
.
setCode
(
PineappleEnum
.
SUCCESS
.
getCode
());
checkRefundStatusResponse
.
setMessage
(
PineappleEnum
.
SUCCESS
.
getMsg
());
return
checkRefundStatusResponse
;
}
else
{
checkRefundStatusResponse
.
setRefundStatus
(
PineappleRefundEnum
.
JH_06
.
getCode
());
checkRefundStatusResponse
.
setSubmessage
(
PineappleRefundEnum
.
JH_06
.
getMsg
());
checkRefundStatusResponse
.
setRefundStatusdescription
(
PineappleRefundEnum
.
JH_06
.
getMsg
());
checkRefundStatusResponse
.
setChildrenrefundStatus
(
new
ArrayList
());
checkRefundStatusResponse
.
setCode
(
PineappleEnum
.
SUCCESS
.
getCode
());
checkRefundStatusResponse
.
setMessage
(
PineappleEnum
.
SUCCESS
.
getMsg
());
return
checkRefundStatusResponse
;
}
//如果退款状态是店铺收货需要判断该退款信息是否已付款
if
(
memberProductBack
.
getStateReturn
().
intValue
()
==
MemberProductBackEnum
.
ShopDelivery
.
getCode
()){
if
(
memberProductBack
.
getStateMoney
()
==
1
){
checkRefundStatusResponse
.
setRefundStatus
(
PineappleRefundEnum
.
JH_99
.
getCode
());
checkRefundStatusResponse
.
setSubmessage
(
PineappleRefundEnum
.
JH_99
.
getMsg
());
checkRefundStatusResponse
.
setRefundStatusdescription
(
PineappleRefundEnum
.
JH_99
.
getMsg
());
checkRefundStatusResponse
.
setChildrenrefundStatus
(
new
ArrayList
());
checkRefundStatusResponse
.
setCode
(
PineappleEnum
.
SUCCESS
.
getCode
());
checkRefundStatusResponse
.
setMessage
(
PineappleEnum
.
SUCCESS
.
getMsg
());
return
checkRefundStatusResponse
;
}
else
{
checkRefundStatusResponse
.
setRefundStatus
(
PineappleRefundEnum
.
JH_06
.
getCode
());
checkRefundStatusResponse
.
setSubmessage
(
PineappleRefundEnum
.
JH_06
.
getMsg
());
checkRefundStatusResponse
.
setRefundStatusdescription
(
PineappleRefundEnum
.
JH_06
.
getMsg
());
checkRefundStatusResponse
.
setChildrenrefundStatus
(
new
ArrayList
());
checkRefundStatusResponse
.
setCode
(
PineappleEnum
.
SUCCESS
.
getCode
());
checkRefundStatusResponse
.
setMessage
(
PineappleEnum
.
SUCCESS
.
getMsg
());
return
checkRefundStatusResponse
;
}
checkRefundStatusResponse
.
setRefundStatus
(
refundEnum
.
getCode
());
checkRefundStatusResponse
.
setSubmessage
(
refundEnum
.
getMsg
());
checkRefundStatusResponse
.
setRefundStatusdescription
(
refundEnum
.
getMsg
());
checkRefundStatusResponse
.
setChildrenrefundStatus
(
new
ArrayList
());
checkRefundStatusResponse
.
setCode
(
PineappleEnum
.
SUCCESS
.
getCode
());
checkRefundStatusResponse
.
setMessage
(
PineappleEnum
.
SUCCESS
.
getMsg
());
return
checkRefundStatusResponse
;
}
checkRefundStatusResponse
.
setRefundStatus
(
refundEnum
.
getCode
());
checkRefundStatusResponse
.
setSubmessage
(
refundEnum
.
getMsg
());
checkRefundStatusResponse
.
setRefundStatusdescription
(
refundEnum
.
getMsg
());
checkRefundStatusResponse
.
setChildrenrefundStatus
(
new
ArrayList
());
checkRefundStatusResponse
.
setCode
(
PineappleEnum
.
SUCCESS
.
getCode
());
checkRefundStatusResponse
.
setMessage
(
PineappleEnum
.
SUCCESS
.
getMsg
());
return
checkRefundStatusResponse
;
}
//2.查询换货表有没有记录
List
<
MemberProductExchange
>
memberProductExchangeList
=
memberReadDao
.
getMemberProductExchangeByOrderSn
(
callRequest
.
getBizModel
().
getOrderID
());
...
...
请
注册
或
登录
后发表评论