| | |
| | | @Autowired |
| | | private BasArmMastSignService basArmMastSignService; |
| | | |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void orderToSortLine() { |
| | | //获取未下发单据 |
| | | List<String> orderNos = orderPakinService.AllStatusSatisfyOrder(0); |
| | |
| | | Integer number = basArmRulesService.getNumber(mat.getWeight(),mat.getVolume(),mat.getManLength(),mat.getWidth(),mat.getHeight()); |
| | | if (number == null) { |
| | | BasArmRules basArmRules = new BasArmRules(); |
| | | basArmRules.setMaterialHeight(orderDetl.getHeight()); |
| | | basArmRules.setMaterialWeight(orderDetl.getWeight()); |
| | | basArmRules.setMaterialLength(orderDetl.getManLength()); |
| | | basArmRules.setMaterialWidth(orderDetl.getWidth()); |
| | | basArmRules.setMaterialHeight(mat.getHeight()); |
| | | basArmRules.setMaterialWeight(mat.getWeight()); |
| | | basArmRules.setMaterialLength(mat.getManLength()); |
| | | basArmRules.setMaterialWidth(mat.getWidth()); |
| | | basArmRulesService.insert(basArmRules); |
| | | return; |
| | | } else if (number == 0){ |