| | |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import zy.cloud.wms.common.model.PickOutDto; |
| | | import zy.cloud.wms.manager.entity.Wave; |
| | | import zy.cloud.wms.manager.entity.WaveDetl; |
| | | import zy.cloud.wms.manager.entity.param.StockOutParam; |
| | | import zy.cloud.wms.manager.service.OrderService; |
| | | import zy.cloud.wms.manager.service.WaveDetlService; |
| | | import zy.cloud.wms.manager.service.WaveService; |
| | |
| | | import zy.cloud.wms.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import zy.cloud.wms.manager.service.WorkService; |
| | | |
| | | import java.util.*; |
| | | |
| | | |
| | | @RestController |
| | | public class WaveController extends BaseController { |
| | |
| | | private WaveDetlService waveDetlService; |
| | | @Autowired |
| | | private OrderService orderService; |
| | | @Autowired |
| | | private WorkService workService; |
| | | |
| | | @RequestMapping(value = "/wave/{id}/auth") |
| | | @ManagerAuth |
| | |
| | | |
| | | @RequestMapping("/wave/createOut") |
| | | @ManagerAuth |
| | | public R createWaveOut(@RequestBody Wave wave){ |
| | | waveService.createOut(wave,getUserId(),getHostId()); |
| | | return R.ok(); |
| | | public R createWaveOut(@RequestBody List<PickOutDto> pickOutDtosk){ |
| | | return waveService.createOut(pickOutDtosk,getUserId(),getHostId()); |
| | | } |
| | | |
| | | @RequestMapping("/wave/preview") |
| | | @ManagerAuth |
| | | public R createWavePreview(@RequestBody StockOutParam stockOutParam){ |
| | | return workService.wavePreview(stockOutParam, getUserId(), getHostId()); |
| | | } |
| | | |
| | | } |