|
@@ -171,7 +171,8 @@ public class OrderClothServiceImpl extends ServiceImpl<OrderClothMapper, OrderCl
|
|
//查询订单
|
|
//查询订单
|
|
if (ClothOrderPayTimeType.take_cloth_pay.getCode().equals(orderCloth.getPayTimeType())) {//收衣付款
|
|
if (ClothOrderPayTimeType.take_cloth_pay.getCode().equals(orderCloth.getPayTimeType())) {//收衣付款
|
|
orderCloth.setOrderStatus(ClothOrderStatusType.WAIT_FACTORY.getCode());
|
|
orderCloth.setOrderStatus(ClothOrderStatusType.WAIT_FACTORY.getCode());
|
|
- } else {//取衣付款
|
|
|
|
|
|
+ } else {
|
|
|
|
+ //取衣付款
|
|
orderCloth.setOrderStatus(ClothOrderStatusType.HAS_WASH.getCode());
|
|
orderCloth.setOrderStatus(ClothOrderStatusType.HAS_WASH.getCode());
|
|
}
|
|
}
|
|
orderCloth.setPayStatus(PayStatus.HAS_PAY.getCode());
|
|
orderCloth.setPayStatus(PayStatus.HAS_PAY.getCode());
|
|
@@ -818,13 +819,27 @@ public class OrderClothServiceImpl extends ServiceImpl<OrderClothMapper, OrderCl
|
|
}
|
|
}
|
|
|
|
|
|
for (OrderClothAdjunctDTO orderClothAdjunctDTO : orderClothItemDTOS.get(i).getOrderClothAdjunctDTOS()) {
|
|
for (OrderClothAdjunctDTO orderClothAdjunctDTO : orderClothItemDTOS.get(i).getOrderClothAdjunctDTOS()) {
|
|
- OrderClothAdjunct orderClothAdjunct = new OrderClothAdjunct();
|
|
|
|
- BeanUtils.copyProperties(orderClothAdjunctDTO, orderClothAdjunct);
|
|
|
|
- orderClothAdjunct.setAdjunctNo(orderNoUtils.getClothWashAdjustCode());
|
|
|
|
- orderClothAdjunct.setOrderId(orderCloth.getId());
|
|
|
|
- orderClothAdjunct.setOrderClothId(orderClothItems.get(i).getId());
|
|
|
|
- orderClothAdjunct.buildCreateData();
|
|
|
|
- orderClothAdjuncts.add(orderClothAdjunct);
|
|
|
|
|
|
+ if (orderClothAdjunctDTO.getNum() > 1) {
|
|
|
|
+ for (int j = 0; j < orderClothAdjunctDTO.getNum(); j++) {
|
|
|
|
+ OrderClothAdjunct orderClothAdjunct = new OrderClothAdjunct();
|
|
|
|
+ orderClothAdjunct.setAdjunctId(orderClothAdjunctDTO.getAdjunctId());
|
|
|
|
+ orderClothAdjunct.setAdjunctName(orderClothAdjunctDTO.getAdjunctName() + (j + 1));
|
|
|
|
+ orderClothAdjunct.setAdjunctNo(orderNoUtils.getClothWashAdjustCode());
|
|
|
|
+ orderClothAdjunct.setOrderId(orderCloth.getId());
|
|
|
|
+ orderClothAdjunct.setNum(1);
|
|
|
|
+ orderClothAdjunct.setOrderClothId(orderClothItems.get(i).getId());
|
|
|
|
+ orderClothAdjunct.buildCreateData();
|
|
|
|
+ orderClothAdjuncts.add(orderClothAdjunct);
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ OrderClothAdjunct orderClothAdjunct = new OrderClothAdjunct();
|
|
|
|
+ BeanUtils.copyProperties(orderClothAdjunctDTO, orderClothAdjunct);
|
|
|
|
+ orderClothAdjunct.setAdjunctNo(orderNoUtils.getClothWashAdjustCode());
|
|
|
|
+ orderClothAdjunct.setOrderId(orderCloth.getId());
|
|
|
|
+ orderClothAdjunct.setOrderClothId(orderClothItems.get(i).getId());
|
|
|
|
+ orderClothAdjunct.buildCreateData();
|
|
|
|
+ orderClothAdjuncts.add(orderClothAdjunct);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
orderClothFlawService.saveBatch(orderClothFlaws);
|
|
orderClothFlawService.saveBatch(orderClothFlaws);
|