lyhzzz 1 year ago
parent
commit
365d7142e8

+ 1 - 1
src/main/java/com/fdkankan/manage_jp/httpClient/service/LaserService.java

@@ -116,7 +116,7 @@ public class LaserService {
         if(param.getCompanyId() != null){ //客户场景
             List<CameraDetail> cameraDetails = cameraDetailService.getListByCompanyId(param.getCompanyId());
             param.setSnCodes(this.setSnCodes(cameraDetails));
-            if(param.getSnCodes() == null || param.getSnCodes().size() <=0){
+            if((param.getSnCodes() == null || param.getSnCodes().size() <=0) && param.getCooperateSceneCodes().size()<=0){
                 return null;
             }
         }

+ 1 - 3
src/main/java/com/fdkankan/manage_jp/service/impl/TmContractorServiceImpl.java

@@ -53,9 +53,7 @@ public class TmContractorServiceImpl extends ServiceImpl<ITmContractorMapper, Tm
         }
         for (String num : param.getNumList()) {
             List<TmContractorNum> numList = tmContractorNumService.getByNum(num);
-            log.info(numList.toString());
-            log.info(numList.size() +"");
-            if(numList != null && numList.size() >0){
+            if(!numList.isEmpty()){
                 throw new BusinessException(ResultCode.SCENE_CONTRACTOR_ERROR);
             }
             User contractorUser = userService.getByUserName(param.getUserName());