李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.chinaztt.mes.warehouse.controller;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinaztt.mes.common.wrapper.QueryWrapperUtil;
import com.chinaztt.mes.warehouse.dto.SplitTaskDTO;
import com.chinaztt.mes.warehouse.service.SplitTaskService;
import com.chinaztt.ztt.common.core.util.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
 
/**
 * 包装分割
 *
 * @author xucg
 * @date 2020-10-22 16:37:46
 */
@RestController
@AllArgsConstructor
@RequestMapping("/splitTask")
@Api(value = "splitTask", tags = "包装分割")
public class SplitTaskController {
 
    private final SplitTaskService splitTaskService;
 
    /**
     * 分页查询
     *
     * @param page         分页对象
     * @param splitTaskDTO 分割
     * @return
     */
    @ApiOperation(value = "分页查询", notes = "分页查询")
    @GetMapping("/page")
    public R getStockPage(Page page, SplitTaskDTO splitTaskDTO) {
        return R.ok(splitTaskService.getPage(page, QueryWrapperUtil.gen(splitTaskDTO)));
    }
 
}