|
@@ -26,10 +26,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@Slf4j
|
|
@@ -77,6 +74,9 @@ public class WorkerGoodsLogic {
|
|
|
MaterialConfig config = materialConfigService.lambdaQuery()
|
|
|
.eq(MaterialConfig::getCompanyWechatId, adminUser.getAdminCompanyWechat().getCompanyWechatId())
|
|
|
.one();
|
|
|
+ if (Objects.isNull(config)) {
|
|
|
+ throw new RemoteServiceException("未配置物料相关信息");
|
|
|
+ }
|
|
|
Integer incrId = config.getWorkerGoodsIncrId();
|
|
|
bean.setGoodsId(null);
|
|
|
bean.setCompanyWechatId(adminUser.getCompanyWechatId());
|