| | |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | |
| | | // ----------------------------------------------------------------------------------------------- |
| | | List<String> excludeLocNos = taskDtos.stream().map(TaskDto::getLocNo).distinct().collect(Collectors.toList()); |
| | | for (TaskDto taskDto : taskDtos) { |
| | | locMastService.breakUp(taskDto.getLocNo(), excludeLocNos); |
| | | BasDevp staNo = basDevpService.checkSiteStatus(taskDto.getStaNo()); |
| | | workService.stockOut(staNo, taskDto, getUserId()); |
| | | locMastService.breakUp(taskDto.getLocNo(), excludeLocNos); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 合并订单汇总预览 |
| | | */ |
| | | @RequestMapping(value = "/order/merge/preview/auth") |
| | | @ManagerAuth |
| | | public R mergePreview(@RequestParam(value = "orderIds[]") List<Long> orderIds){ |
| | | return R.ok().add(orderService.mergePreview(orderIds)); |
| | | } |
| | | |
| | | } |