| | |
| | | import com.zy.acs.framework.common.Cools; |
| | | import com.zy.acs.framework.exception.CoolException; |
| | | import com.zy.acs.manager.common.exception.BusinessException; |
| | | import com.zy.acs.manager.manager.entity.Segment; |
| | | import com.zy.acs.manager.manager.entity.Sta; |
| | | import com.zy.acs.manager.manager.entity.StaReserve; |
| | | import com.zy.acs.manager.manager.entity.Task; |
| | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Boolean waitingStaReserve(Sta sta, Task task, Integer qty, StaReserveType type) { |
| | | public Boolean waitingStaReserve(Sta sta, Task task, Segment seg, Integer qty, StaReserveType type) { |
| | | qty = Optional.ofNullable(qty).orElse(DEFAULT_QTY); |
| | | |
| | | // update reserve to be waiting state |
| | | int changed = this.baseMapper.updateStateToWaiting(task.getId() |
| | | int changed = this.baseMapper.updateStateToWaiting( |
| | | task.getId() |
| | | , seg.getId() |
| | | , sta.getId() |
| | | , type.toString() |
| | | , StaReserveStateType.WAITING.toString() |