| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import zy.cloud.wms.common.model.OrderStoDto; |
| | | import zy.cloud.wms.common.utils.VersionUtils; |
| | | import zy.cloud.wms.manager.entity.*; |
| | | import zy.cloud.wms.manager.service.LocDetlService; |
| | |
| | | private SnowflakeIdWorker snowflakeIdWorker; |
| | | |
| | | @Transactional |
| | | public void stockOutProcess(List<CustOrder> list) { |
| | | if (Cools.isEmpty(list)) { |
| | | public void stockOutProcess(OrderStoDto dto) { |
| | | if (Cools.isEmpty(dto) || Cools.isEmpty(dto.getCustOrders())) { |
| | | return; |
| | | } |
| | | Date now = new Date(); |
| | | for (CustOrder custOrder : list) { |
| | | for (CustOrder custOrder : dto.getCustOrders()) { |
| | | // 判断物料是否存在 |
| | | Mat mat = matService.selectByMatnr(custOrder.getUserCode()); |
| | | if (null == mat) { |