Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
sibu-v-mall
/
sibu-v-mall-third-api
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
b4e3396d
由
lauka
编写于
2018-06-12 16:32:15 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
菠萝派接口-检测退款,修改返回信息
1 个父辈
bec237c6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
15 行删除
com.sibu.orderHelper.integralMall/src/main/resources/mall-mapper/member/read/MemberReadMapper.xml
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/CheckRefundStatusBizServiceImpl.java
com.sibu.orderHelper.integralMall/src/main/resources/mall-mapper/member/read/MemberReadMapper.xml
查看文件 @
b4e3396
...
...
@@ -346,7 +346,7 @@
<!--根据订单号查询换货信息-->
<select
id=
"getMemberProductBackByOrderSn"
parameterType=
"java.lang.String"
resultMap=
"memberProductBackResult"
>
SELECT * FROM member_product_back WHERE order_sn = #{orderSn} AND state_return IN ('1','2','3','4')
ORDER BY create_time
SELECT * FROM member_product_back WHERE order_sn = #{orderSn} AND state_return IN ('1','2','3','4')
AND state_money = 1 ORDER BY create_time DESC
</select>
<!--换货实体类-->
...
...
@@ -399,7 +399,7 @@
<!--根据订单号查询换货信息-->
<select
id=
"getMemberProductExchangeByOrderSn"
parameterType=
"java.lang.String"
resultMap=
"memberProductExchangeResult"
>
SELECT * FROM member_product_exchange WHERE order_sn = #{orderSn} AND state IN ('1','2','3','4') ORDER BY create_time
SELECT * FROM member_product_exchange WHERE order_sn = #{orderSn} AND state IN ('1','2','3','4') ORDER BY create_time
DESC
</select>
<!-- 投诉表实体-->
...
...
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/pineapple/impl/CheckRefundStatusBizServiceImpl.java
查看文件 @
b4e3396
...
...
@@ -55,7 +55,7 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
MemberProductBack
memberProductBack
=
memberProductBackList
.
stream
().
findFirst
().
get
();
PineappleRefundEnum
refundEnum
=
PineappleRefundEnum
.
resolveByPlatformRefundStatus
(
memberProductBack
.
getStateReturn
());
//如果退款状态是店铺收货需要判断该退款信息是否已付款
if
(
memberProductBack
.
getStateReturn
().
intValue
()
==
MemberProductBackEnum
.
ShopDelivery
.
getCode
()){
/*
if(memberProductBack.getStateReturn().intValue() == MemberProductBackEnum.ShopDelivery.getCode()){
if(memberProductBack.getStateMoney() == 1){
checkRefundStatusResponse.setRefundStatus(PineappleRefundEnum.JH_99.getCode());
checkRefundStatusResponse.setSubmessage(PineappleRefundEnum.JH_99.getMsg());
...
...
@@ -73,7 +73,7 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
checkRefundStatusResponse.setMessage(PineappleEnum.SUCCESS.getMsg());
return checkRefundStatusResponse;
}
}
}
*/
checkRefundStatusResponse
.
setRefundStatus
(
refundEnum
.
getCode
());
checkRefundStatusResponse
.
setSubmessage
(
refundEnum
.
getMsg
());
checkRefundStatusResponse
.
setRefundStatusdescription
(
refundEnum
.
getMsg
());
...
...
@@ -87,17 +87,14 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
List
<
MemberProductExchange
>
memberProductExchangeList
=
memberReadDao
.
getMemberProductExchangeByOrderSn
(
callRequest
.
getBizModel
().
getOrderID
());
if
(!
StringUtil
.
isNull
(
memberProductExchangeList
)
&&
!
memberProductExchangeList
.
isEmpty
()){
MemberProductExchange
memberProductExchange
=
memberProductExchangeList
.
stream
().
findFirst
().
get
();
if
(!
StringUtil
.
isNull
(
memberProductExchange
)){
PineappleExchangeEnum
exchangeEnum
=
PineappleExchangeEnum
.
resolveByPlatformRefundStatus
(
memberProductExchange
.
getState
());
checkRefundStatusResponse
.
setRefundStatus
(
exchangeEnum
.
getCode
());
checkRefundStatusResponse
.
setSubmessage
(
exchangeEnum
.
getMsg
());
checkRefundStatusResponse
.
setRefundStatusdescription
(
exchangeEnum
.
getMsg
());
checkRefundStatusResponse
.
setChildrenrefundStatus
(
new
ArrayList
());
checkRefundStatusResponse
.
setCode
(
PineappleEnum
.
SUCCESS
.
getCode
());
checkRefundStatusResponse
.
setMessage
(
PineappleEnum
.
SUCCESS
.
getMsg
());
return
checkRefundStatusResponse
;
}
PineappleExchangeEnum
exchangeEnum
=
PineappleExchangeEnum
.
resolveByPlatformRefundStatus
(
memberProductExchange
.
getState
());
checkRefundStatusResponse
.
setRefundStatus
(
exchangeEnum
.
getCode
());
checkRefundStatusResponse
.
setSubmessage
(
exchangeEnum
.
getMsg
());
checkRefundStatusResponse
.
setRefundStatusdescription
(
exchangeEnum
.
getMsg
());
checkRefundStatusResponse
.
setChildrenrefundStatus
(
new
ArrayList
());
checkRefundStatusResponse
.
setCode
(
PineappleEnum
.
SUCCESS
.
getCode
());
checkRefundStatusResponse
.
setMessage
(
PineappleEnum
.
SUCCESS
.
getMsg
());
return
checkRefundStatusResponse
;
}
//3.如果都没有记录需要查询seller_complaint(投诉表),根据order_id订单id查询
List
<
SellerComplaint
>
sellerComplaintList
=
memberReadDao
.
getSellerComplaintById
(
orders
.
getId
());
...
...
请
注册
或
登录
后发表评论