Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
sibu-v-mall
/
sibu-v-mall-third-api
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
0deb1cb3
由
刘嘉
编写于
2018-04-16 15:41:31 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加查询还有哪些订单 整单是售后完成,但订单状态不是[退款/退货成功]状态的:判断是否全额退款逻辑修改
1 个父辈
5181991b
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
3 行删除
com.sibu.orderHelper.integralMall/src/main/resources/mapper/IMRefundOrderMapper.xml
com.sibu.orderHelper.model/src/main/java/com/sibu/orderHelper/integral/model/RefundUnsuccessfulBean.java
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/impl/IMRefundOrderService.java
com.sibu.orderHelper.integralMall/src/main/resources/mapper/IMRefundOrderMapper.xml
查看文件 @
0deb1cb
...
...
@@ -351,7 +351,7 @@ refund_id,
</select>
<select
id=
"countRefundOrderListByOrderCode"
parameterType=
"java.lang.String"
resultType=
"java.lang.Integer"
>
SELECT
COUNT(*
) FROM im_refund_order_item r1,im_order_refund r WHERE r1.refund_id = r.refund_id
SELECT
sum(r1.quantity
) FROM im_refund_order_item r1,im_order_refund r WHERE r1.refund_id = r.refund_id
AND r.refund_status = 7 AND r.order_code = #{orderCode}
</select>
</mapper>
\ No newline at end of file
...
...
com.sibu.orderHelper.model/src/main/java/com/sibu/orderHelper/integral/model/RefundUnsuccessfulBean.java
查看文件 @
0deb1cb
...
...
@@ -12,6 +12,8 @@ public class RefundUnsuccessfulBean {
private
Integer
orderStatus
;
private
String
status
;
private
Integer
refundNum
;
private
Integer
order1Num
;
...
...
com.sibu.orderHelper.service/src/main/java/com/sibu/orderHelper/integral/service/impl/IMRefundOrderService.java
查看文件 @
0deb1cb
...
...
@@ -803,11 +803,15 @@ public class IMRefundOrderService extends BaseServiceImpl implements IIMRefundOr
||
doingOrderDetailResponse
.
getOrderStatus
()
==
PayOrderStatus
.
RefundFail
.
getCode
()
||
doingOrderDetailResponse
.
getOrderStatus
()
==
PayOrderStatus
.
Finished
.
getCode
())){
Integer
refundNum
=
imRefundOrderDao
.
countRefundOrderListByOrderCode
(
doingOrderDetailResponse
.
getOrderCode
());
if
(
refundNum
.
intValue
()
==
doingOrderDetailResponse
.
getOrder1s
().
size
()){
Integer
order1Num
=
doingOrderDetailResponse
.
getOrder1s
().
stream
().
map
(
p
->
p
.
getPurchaseQuantity
()).
reduce
(
0
,(
a
,
b
)
->{
return
a
+
b
;
});
if
(
refundNum
.
intValue
()
==
order1Num
){
RefundUnsuccessfulBean
entity
=
new
RefundUnsuccessfulBean
();
entity
.
setOrder1Num
(
doingOrderDetailResponse
.
getOrder1s
().
size
()
);
entity
.
setOrder1Num
(
order1Num
);
entity
.
setOrderCode
(
doingOrderDetailResponse
.
getOrderCode
());
entity
.
setOrderStatus
(
doingOrderDetailResponse
.
getOrderStatus
());
entity
.
setStatus
(
doingOrderDetailResponse
.
getStatus
());
entity
.
setRefundNum
(
refundNum
.
intValue
());
refundUnsuccessfulBeanList
.
add
(
entity
);
}
...
...
请
注册
或
登录
后发表评论