suntianwu 2 лет назад
Родитель
Сommit
851126ed47

+ 4 - 3
purchase-system/src/main/java/com/ozs/pm/service/impl/PmDemandServiceImpl.java

@@ -849,11 +849,12 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
 
 
         String localArea = pmBaseExpertExtractReqVo.getLocalArea();
-        if(!StringUtils.isNumeric(localArea)){
-            throw new Exception("地域必须传数字代码");
-        }
+
        List<String> sysRegionCodeList = new ArrayList<>();
        if(!ObjectUtils.isEmpty(localArea)) {
+           if(!StringUtils.isNumeric(localArea)){
+               throw new Exception("地域必须传数字代码");
+           }
            sysRegionCodeList.add(localArea);
            //找到该地域code对应的子列表
            List<SysRegionVO> sysRegionVOList = iSysRegionService.findChildDivisions(localArea);