|
@@ -976,6 +976,12 @@ public class OrderClothServiceImpl extends ServiceImpl<OrderClothMapper, OrderCl
|
|
orderCloth.setPayStatus(PayStatus.WAITING_TO_PAY.getCode());
|
|
orderCloth.setPayStatus(PayStatus.WAITING_TO_PAY.getCode());
|
|
// 取衣方式
|
|
// 取衣方式
|
|
orderCloth.setSendClothWay(orderClothDTO.getSendClothWay());
|
|
orderCloth.setSendClothWay(orderClothDTO.getSendClothWay());
|
|
|
|
+ //
|
|
|
|
+ if (StringUtils.isEmpty(orderCloth.getContactPhone()) && orderCloth.getAppUserId() != null) {
|
|
|
|
+ AppUser appUser = appUserService.getById(orderCloth.getAppUserId());
|
|
|
|
+ orderCloth.setContactPhone(appUser.getPhoneNumber());
|
|
|
|
+ orderCloth.setContactName(appUser.getRealName());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1009,7 +1015,7 @@ public class OrderClothServiceImpl extends ServiceImpl<OrderClothMapper, OrderCl
|
|
}
|
|
}
|
|
orderCloth.setFactoryId(sysStore.getFactoryId());
|
|
orderCloth.setFactoryId(sysStore.getFactoryId());
|
|
} else {
|
|
} else {
|
|
- orderCloth.setFactoryId(SecurityUtils.getLoginUser().getOrgId());
|
|
|
|
|
|
+ throw new ServiceException("工厂没有权限");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|