| | |
| | | import com.zy.nc.entity.*; |
| | | import com.zy.nc.service.*; |
| | | import com.zy.nc.task.handler.PlanOrderHandler; |
| | | import com.zy.system.service.impl.ConfigServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | @Slf4j |
| | |
| | | if (wmsFlag == null || wmsFlag.isEmpty()) { |
| | | return; |
| | | } |
| | | ReturnT<String> returnT = planOrderHandler.start1(wmsFlag); |
| | | ReturnT<String> returnT; |
| | | if (wmsFlag.get(0).getNastnum().doubleValue() > 0) { |
| | | returnT = planOrderHandler.start1(wmsFlag); |
| | | } else { |
| | | returnT = planOrderHandler.start1In(wmsFlag); |
| | | } |
| | | if (!returnT.isSuccess()) { |
| | | for (NccSaleXsfhmxWms wms : wmsFlag) { |
| | | wms.setWmsMemo(returnT.getMsg()); |