|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|