package com.wms_main.controller.wms;

import com.wms_main.model.dto.query.PickTaskBakQuery;
import com.wms_main.model.dto.response.wms.WmsApiResponse;
import com.wms_main.model.vo.wms.PageVo;
import com.wms_main.model.vo.wms.PickTaskBakVo;
import com.wms_main.service.controller.IPickTaskBakControllerService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@ResponseBody
@CrossOrigin
@RequiredArgsConstructor
@RequestMapping("/wms/pickTaskBak")
public class PickTaskBakController {
    private final IPickTaskBakControllerService pickTaskBakControllerService;

    /**
     * 分页查询拣选记录
     * @param pickTaskBakQuery 查询参数
     * @return 查询结果
     */
    @PostMapping("/queryPickTaskBaksByPage")
    public WmsApiResponse<PageVo<PickTaskBakVo>> queryPickTaskBaksByPage(@RequestBody PickTaskBakQuery pickTaskBakQuery) {
        return pickTaskBakControllerService.queryPickBakInfoByPage(pickTaskBakQuery);
    }
}
