|  |  | 
 |  |  | import com.zy.asrs.entity.*; | 
 |  |  | import com.zy.asrs.service.*; | 
 |  |  | import com.zy.asrs.task.handler.AutoLocMoveHandler; | 
 |  |  | import com.zy.asrs.utils.OrderInAndOutUtil; | 
 |  |  | import com.zy.common.properties.SlaveWmsParameterProperties; | 
 |  |  | import com.zy.system.entity.Config; | 
 |  |  | import com.zy.system.service.ConfigService; | 
 |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private OrderService orderService; | 
 |  |  |     @Autowired | 
 |  |  |     private OrderPakoutService orderPakoutService; | 
 |  |  |     @Autowired | 
 |  |  |     private OrderDetlService orderDetlService; | 
 |  |  |     @Autowired | 
 |  |  |     private AutoMoveService autoMoveService; | 
 |  |  | 
 |  |  |     @Scheduled(cron = "0/3 * * * * ? ") | 
 |  |  |     public void locToLocAutoLocMove(){ | 
 |  |  |         if (slaveWmsParameterProperties.isAutoLocMoveBoolean()){ | 
 |  |  |             Config config = configService.selectById("AutoLocMove"); | 
 |  |  |             Config config = configService.selectConfigByCode("AutoLocMove"); | 
 |  |  |             if (Cools.isEmpty(config) || config.getValue().equals("false")) { | 
 |  |  |                 return; | 
 |  |  |             } | 
 |  |  |             Order order = orderService.selectOrderMoveStatus(); | 
 |  |  |             if (!Cools.isEmpty(order)){ | 
 |  |  |             OrderPakout orderPakout = orderPakoutService.selectOrderMoveStatus(); | 
 |  |  |             if (!Cools.isEmpty(orderPakout)){ | 
 |  |  | //                autoMoveService.selectList() | 
 |  |  |             }else { | 
 |  |  |                 order = orderService.selectOrderMoveStatusInitial(); | 
 |  |  |                 if (Cools.isEmpty(order)){ | 
 |  |  |                 orderPakout = orderPakoutService.selectOrderMoveStatusInitial(); | 
 |  |  |                 if (Cools.isEmpty(orderPakout)){ | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |                 order.setMoveStatus(2); | 
 |  |  |                 orderService.updateById(order); | 
 |  |  |                 orderPakout.setMoveStatus(2); | 
 |  |  |                 orderPakoutService.updateById(orderPakout); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  | 
 |  |  |     @Scheduled(cron = "0/3 * * * * ? ") | 
 |  |  |     public void locToLoc11(){ | 
 |  |  |         if (slaveWmsParameterProperties.isAutoLocMoveUnilateralBoolean()){ | 
 |  |  |             Config config = configService.selectById("AutoLocMoveUnilateral"); | 
 |  |  |             Config config = configService.selectConfigByCode("AutoLocMoveUnilateral"); | 
 |  |  |             if (Cools.isEmpty(config) || config.getValue().equals("false")) { | 
 |  |  |                 return; | 
 |  |  |             } | 
 |  |  | 
 |  |  |     @Scheduled(cron = "0/3 * * * * ? ") | 
 |  |  |     public void locToLoc111() { | 
 |  |  |         if (slaveWmsParameterProperties.isAutoLocMoveUnilateralBoolean()){ | 
 |  |  |             Config config = configService.selectById("AutoLocMoveUnilateral"); | 
 |  |  |             Config config = configService.selectConfigByCode("AutoLocMoveUnilateral"); | 
 |  |  |             if (Cools.isEmpty(config) || config.getValue().equals("false")) { | 
 |  |  |                 return; | 
 |  |  |             } |