|
@@ -413,10 +413,10 @@ public class OrderClothServiceImpl extends ServiceImpl<OrderClothMapper, OrderCl
|
|
|
public void refundOrderApply(Long orderId, String remark) {
|
|
|
LambdaQueryWrapper<OrderCloth> queryWrapper = new QueryWrapper<OrderCloth>().lambda()
|
|
|
.eq(OrderCloth::getId, orderId);
|
|
|
- if(SourceType.FACTORY.getCode().equals(SecurityUtils.getLoginUser().getSourceType())){
|
|
|
+ if (SourceType.FACTORY.getCode().equals(SecurityUtils.getLoginUser().getSourceType())) {
|
|
|
queryWrapper.eq(OrderCloth::getFactoryId, SecurityUtils.getLoginUser().getOrgId());
|
|
|
}
|
|
|
- if(SourceType.STORE.getCode().equals(SecurityUtils.getLoginUser().getSourceType())){
|
|
|
+ if (SourceType.STORE.getCode().equals(SecurityUtils.getLoginUser().getSourceType())) {
|
|
|
queryWrapper.eq(OrderCloth::getOrgId, SecurityUtils.getLoginUser().getOrgId());
|
|
|
}
|
|
|
OrderCloth orderCloth = getOne(queryWrapper);
|
|
@@ -507,7 +507,7 @@ public class OrderClothServiceImpl extends ServiceImpl<OrderClothMapper, OrderCl
|
|
|
this.updateById(orderCloth);
|
|
|
try {
|
|
|
//创建支付订单,防止出现错误
|
|
|
- OrderPayInfo orderPayInfo = orderPayInfoService.createOrderPayInfo(orderCloth.getOrderNo(), orderCloth.getPayAmount(), orderCloth.getPayType());
|
|
|
+ OrderPayInfo orderPayInfo = orderPayInfoService.createOrderPayInfo(orderCloth.getOrgId(), orderCloth.getOrderNo(), orderCloth.getPayAmount(), orderCloth.getPayType());
|
|
|
//优先增加到延迟队列
|
|
|
DelayMessage delayMessage = new DelayMessage(orderPayInfo.getRequestNo(), DelayTagsEnum.ORDER_PAY_DELAY_QUEUE.getCode(), JSONUtil.toJsonStr(orderPayInfo));
|
|
|
//暂不执行
|
|
@@ -1074,7 +1074,7 @@ public class OrderClothServiceImpl extends ServiceImpl<OrderClothMapper, OrderCl
|
|
|
break;
|
|
|
case 2:
|
|
|
// 取衣中
|
|
|
- orderStatus = new Integer[]{1,2,3};
|
|
|
+ orderStatus = new Integer[]{1, 2, 3};
|
|
|
break;
|
|
|
case 3:
|
|
|
// 待支付
|
|
@@ -1086,7 +1086,7 @@ public class OrderClothServiceImpl extends ServiceImpl<OrderClothMapper, OrderCl
|
|
|
break;
|
|
|
case 5:
|
|
|
// 清洗中
|
|
|
- orderStatus = new Integer[]{6,7};
|
|
|
+ orderStatus = new Integer[]{6, 7};
|
|
|
break;
|
|
|
case 6:
|
|
|
// 待上挂
|
|
@@ -1102,7 +1102,7 @@ public class OrderClothServiceImpl extends ServiceImpl<OrderClothMapper, OrderCl
|
|
|
break;
|
|
|
case 99:
|
|
|
// 已完成
|
|
|
- orderStatus = new Integer[]{11,12};
|
|
|
+ orderStatus = new Integer[]{11, 12};
|
|
|
break;
|
|
|
case 100:
|
|
|
orderStatus = new Integer[]{100};
|