|
@@ -435,15 +435,15 @@ public class OrderBaseLogic {
|
|
|
final AdminWebsit adminWebsit = adminWebsitService.getById(pgOrderBase.getWebsitId());
|
|
|
|
|
|
|
|
|
- if ("安装, 拆移机".contains(pgOrderBase.getOrderSmallTypeText())
|
|
|
- && StringUtils.isBlank(one.getWorkerNumber())) {
|
|
|
- throw new RemoteServiceException("暂无权限接单");
|
|
|
- }
|
|
|
+ if ("安装, 拆移机".contains(pgOrderBase.getOrderSmallTypeText())) {
|
|
|
+ if (StringUtils.isBlank(one.getWorkerNumber())) {
|
|
|
+ throw new RemoteServiceException("暂无权限接单");
|
|
|
+ }
|
|
|
|
|
|
- if (adminWebsit.getAttr().equals(WebsitAttrEnum.SELF.getKey())
|
|
|
- && "安装, 拆移机".contains(pgOrderBase.getOrderSmallTypeText())
|
|
|
- && CollectionUtil.isEmpty(workerList)) {
|
|
|
- throw new RemoteServiceException("工单的类型必须至少选一个小工");
|
|
|
+ if (adminWebsit.getAttr().equals(WebsitAttrEnum.SELF.getKey())
|
|
|
+ && CollectionUtil.isEmpty(workerList)) {
|
|
|
+ throw new RemoteServiceException("工单的类型必须至少选一个小工");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
StringBuilder joinSlaveStr = new StringBuilder();
|