| | |
| | | import com.zy.asrs.wms.asrs.service.MobileService;
|
| | | import com.zy.asrs.wms.asrs.service.WaitPakinService;
|
| | | import com.zy.asrs.wms.asrs.service.WorkService;
|
| | | import com.zy.asrs.wms.system.entity.Host;
|
| | | import com.zy.asrs.wms.system.service.HostService;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | | @Service
|
| | | public class MobileServiceImpl implements MobileService {
|
| | |
|
| | | @Autowired
|
| | | private WaitPakinService waitPakinService;
|
| | |
|
| | | @Autowired
|
| | | private WorkService workService;
|
| | | @Autowired
|
| | | private HostService hostService;
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | |
| | | ArrayList<WaitPakin> waitPakins = new ArrayList<>();
|
| | | ordersParam.getOrderDetls().forEach(orderdetl -> {
|
| | | WaitPakin waitPakin = new WaitPakin();
|
| | | waitPakin.setBatch(orderdetl.getBatch()).setAnfme(orderdetl.getMergeNum()).setBarcode(ordersParam.getMergeNo()).setMatnr(orderdetl.getMatnr()).setDetlId(orderdetl.getDetlId()).setIoStatus(0).setOrderNo(orderdetl.getOrderNo()).setOrderId(orderdetl.getOrderId()).setStatus(1);
|
| | | waitPakin.setBatch(orderdetl.getBatch())
|
| | | .setAnfme(orderdetl.getMergeNum())
|
| | | .setBarcode(ordersParam.getMergeNo())
|
| | | .setMatnr(orderdetl.getMatnr())
|
| | | .setDetlId(orderdetl.getDetlId())
|
| | | .setIoStatus(0)
|
| | | .setOrderNo(orderdetl.getOrderNo()).setOrderId(orderdetl.getOrderId()).setStatus(1);
|
| | | waitPakins.add(waitPakin);
|
| | | });
|
| | |
|
| | |
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<Host> getHosts() {
|
| | | return hostService.list();
|
| | | }
|
| | | }
|