| | |
| | | taskDtos.add(taskDto); |
| | | } |
| | | } |
| | | Date now = new Date(); |
| | | // ----------------------------------------------------------------------------------------------- |
| | | for (TaskDto taskDto : taskDtos) { |
| | | BasDevp staNo = basDevpService.checkSiteStatus(taskDto.getStaNo()); |
| | |
| | | } |
| | | } |
| | | } |
| | | workService.stockOut(staNo, taskDto, getUserId()); |
| | | workService.stockOut(staNo, taskDto, getUserId(),now); |
| | | } |
| | | return R.ok(); |
| | | } |
| | |
| | | import com.zy.common.model.TaskDto; |
| | | import com.zy.common.model.enums.IoWorkType; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | public interface WorkService { |
| | |
| | | */ |
| | | void stockOut(BasDevp staNo, List<LocDetlDto> locDetls, IoWorkType ioWorkType, Long userId); |
| | | |
| | | void stockOut(BasDevp staNo, TaskDto taskDto, Long userId); |
| | | void stockOut(BasDevp staNo, TaskDto taskDto, Long userId, Date now); |
| | | |
| | | /** |
| | | * 空板入库 |
| | |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void stockOut(BasDevp staNo, TaskDto taskDto, Long userId) { |
| | | Date now = new Date(); |
| | | public void stockOut(BasDevp staNo, TaskDto taskDto, Long userId,Date now) { |
| | | List<LocDto> locDtos = taskDto.getLocDtos(); |
| | | for (LocDto locDto : locDtos) { |
| | | if (!taskDto.getLocNo().equals(locDto.getLocNo()) && !taskDto.getStaNo().equals(locDto.getStaNo())) { |