| | |
| | | import com.vincent.rsf.server.manager.utils.OptimalAlgorithmUtil; |
| | | import com.vincent.rsf.server.system.constant.SerialRuleCode; |
| | | import com.vincent.rsf.server.system.utils.SerialRuleUtils; |
| | | import lombok.Synchronized; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | * @description 生成出库任务 |
| | | * @time 2025/4/28 14:01 |
| | | */ |
| | | @Synchronized |
| | | @Transactional(rollbackFor = Exception.class) |
| | | private synchronized void generateOutTask(List<WaveItem> itemParams, Long loginUserId, Wave wave) throws Exception { |
| | | public void generateOutTask(List<WaveItem> itemParams, Long loginUserId, Wave wave) throws Exception { |
| | | List<LocItem> locItemList = new ArrayList<>(); |
| | | for (WaveItem param : itemParams) { |
| | | String locs = param.getStockLocs(); |
| | |
| | | * @description 根据物料编码,批次,动态字段 查询符合的库位,再根据库位中物料的数量选择最适合的库位 |
| | | * @time 2025/4/27 09:26 |
| | | */ |
| | | private synchronized List<WaveItem> getLocs(List<WaveItem> waveItems) throws Exception { |
| | | @Synchronized |
| | | private List<WaveItem> getLocs(List<WaveItem> waveItems) throws Exception { |
| | | //TODO 根据物料编码,批次,动态字段 查询符合的库位,再根据库位中物料的数量选择最适合的库位 |
| | | waveItems.forEach(waveItem -> { |
| | | List<LocItem> locItems = locItemService.list(new QueryWrapper<LocItem>() |