- 确认收货、退款逻辑
This commit is contained in:
@@ -89,7 +89,9 @@ public class OrderReturnDO extends BaseDO {
|
||||
* - 2、申请成功
|
||||
* - 3、申请失败
|
||||
* - 4、退货中
|
||||
* - 5、退货成功
|
||||
* - 5、已收货
|
||||
* - 6、拒绝退款
|
||||
* - 7、退货成功
|
||||
*/
|
||||
private Integer status;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ import cn.iocoder.mall.order.api.bo.OrderLastLogisticsInfoBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderReturnInfoBO;
|
||||
import cn.iocoder.mall.order.api.bo.OrderReturnListBO;
|
||||
import cn.iocoder.mall.order.api.constant.OrderErrorCodeEnum;
|
||||
import cn.iocoder.mall.order.api.constant.OrderReturnServiceTypeEnum;
|
||||
import cn.iocoder.mall.order.api.constant.OrderReturnStatusEnum;
|
||||
import cn.iocoder.mall.order.api.dto.OrderReturnApplyDTO;
|
||||
import cn.iocoder.mall.order.api.dto.OrderReturnQueryDTO;
|
||||
@@ -150,10 +149,6 @@ public class OrderReturnServiceImpl implements OrderReturnService {
|
||||
.error(OrderErrorCodeEnum.ORDER_RETURN_NOT_EXISTENT.getCode());
|
||||
}
|
||||
|
||||
// TODO: 2019/5/8 sin, 发送 MQ 消息,申请退货成功!
|
||||
// TODO: 2019/5/8 sin 退款:支付系统退款
|
||||
// TODO: 2019/5/8 sin 退货+退款:退回商品签收后,支付系统退款
|
||||
|
||||
orderReturnMapper.updateByOrderId(
|
||||
new OrderReturnDO()
|
||||
.setId(id)
|
||||
@@ -176,4 +171,29 @@ public class OrderReturnServiceImpl implements OrderReturnService {
|
||||
);
|
||||
return CommonResult.success(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonResult confirmReceipt(Integer id) {
|
||||
OrderReturnDO orderReturnDO = orderReturnMapper.selectById(id);
|
||||
if (orderReturnDO == null) {
|
||||
return ServiceExceptionUtil.error(OrderErrorCodeEnum.ORDER_RETURN_NOT_EXISTENT.getCode());
|
||||
}
|
||||
|
||||
orderReturnMapper.updateByOrderId(
|
||||
new OrderReturnDO()
|
||||
.setId(id)
|
||||
.setStatus(OrderReturnStatusEnum.ORDER_RECEIPT.getValue())
|
||||
);
|
||||
return CommonResult.success(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonResult refund(Integer id) {
|
||||
|
||||
// TODO: 2019/5/8 sin, 发送 MQ 消息,申请退货成功!
|
||||
// TODO: 2019/5/8 sin 退款:支付系统退款
|
||||
// TODO: 2019/5/8 sin 退货+退款:退回商品签收后,支付系统退款
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user