记得上下班打卡 | git大法好,push需谨慎

Commit 1af400b2 authored by zhoujianping's avatar zhoujianping

修改商场退款逻辑

parent 8215c195
...@@ -257,14 +257,14 @@ public class GoblinOrderAppServiceImpl implements IGoblinOrderAppService { ...@@ -257,14 +257,14 @@ public class GoblinOrderAppServiceImpl implements IGoblinOrderAppService {
return ResponseDto.failure("不可操作"); return ResponseDto.failure("不可操作");
} }
//判断7天 //判断7天
LocalDateTime canRefundTime = getCanRefundTime(orderVo); //LocalDateTime canRefundTime = getCanRefundTime(orderVo);
if (canRefundTime == null) { //if (canRefundTime == null) {
return ResponseDto.failure("申请失败"); // return ResponseDto.failure("申请失败");
} else { //} else {
if (LocalDateTime.now().isAfter(canRefundTime)) { // if (LocalDateTime.now().isAfter(canRefundTime)) {
return ResponseDto.failure("申请失败"); // return ResponseDto.failure("申请失败");
} // }
} //}
//判断券 //判断券
if ((!(orderVo.getUcouponId() == null || orderVo.getUcouponId().equals("")) || !(orderVo.getStoreCouponId() == null || orderVo.getStoreCouponId().equals(""))) if ((!(orderVo.getUcouponId() == null || orderVo.getUcouponId().equals("")) || !(orderVo.getStoreCouponId() == null || orderVo.getStoreCouponId().equals("")))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment