|  |  | 
 |  |  | import com.core.exception.CoolException; | 
 |  |  | import com.zy.asrs.entity.*; | 
 |  |  | import com.zy.asrs.service.*; | 
 |  |  | import com.zy.common.CodeRes; | 
 |  |  | import com.zy.common.model.LocTypeDto; | 
 |  |  | import com.zy.common.model.StartupDto; | 
 |  |  | import com.zy.common.service.CommonService; | 
 |  |  | 
 |  |  |             } | 
 |  |  |             waitPakins = waitPakinService.selectList(new EntityWrapper<WaitPakin>().eq("zpallet", param.getBarcode())); | 
 |  |  |             if (Cools.isEmpty(waitPakins)) { | 
 |  |  |                 return R.error("条码数据错误"); | 
 |  |  |                 WrkMast wrkMast = wrkMastService.selectByBarcode(param.getBarcode()); | 
 |  |  |                 if (wrkMast != null && wrkMast.getIoType() == 103) { | 
 |  |  |                     return R.parse(CodeRes.PICK_600); | 
 |  |  |                 } | 
 |  |  |                 return R.parse(CodeRes.NO_COMB_700); | 
 |  |  |             } | 
 |  |  |             int countLoc = locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("zpallet",param.getBarcode())); | 
 |  |  |             int countWrk = wrkDetlService.selectCount(new EntityWrapper<WrkDetl>().eq("zpallet",param.getBarcode())); | 
 |  |  | 
 |  |  |  | 
 |  |  |         // 源站点状态检测 | 
 |  |  |         BasDevp sourceStaNo = basDevpService.checkSiteStatus(param.getSourceStaNo(), true); | 
 |  |  |         sourceStaNo.setLocType1(param.getLocType1()); | 
 |  |  |         LocTypeDto locTypeDto = new LocTypeDto(sourceStaNo); | 
 |  |  |  | 
 |  |  |         StartupDto dto = null; | 
 |  |  | 
 |  |  |             default: | 
 |  |  |                 break; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         log.info("/pakin/loc/v1:"+dto + "======托盘码:"+param.getBarcode()); | 
 |  |  |         return R.ok().add(dto); | 
 |  |  |     } | 
 |  |  |  |