叶松
2023-11-24 ef1fe4aa7c40c329cd8800a06ca02fc8341775ee
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
44
45
package com.thhy.materials.modules.biz.weigh.controller;
 
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.thhy.general.common.BasicResult;
import com.thhy.materials.modules.biz.weigh.dto.QueryWeighDto;
import com.thhy.materials.modules.biz.weigh.entity.WeighVo;
import com.thhy.materials.modules.biz.weigh.service.WeighService;
import org.omg.CORBA.StringHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.Map;
 
/**
 * @Author QiuYuHao
 * @CreateDate 2023-08-29 16:29:13
 * 地磅
 */
@RestController
@RequestMapping(value = "weigh")
public class WeighController {
 
 
    @Autowired
    private WeighService weighService;
 
    @PostMapping(value = "queryAllWeigh")
    public BasicResult findAll(@RequestBody QueryWeighDto queryWeighDto){
        PageHelper.startPage(queryWeighDto.getPageNum(),queryWeighDto.getPageSize());
        PageInfo<WeighVo> weighVoPageInfo = new PageInfo<>(weighService.findAll(queryWeighDto));
        return BasicResult.success(weighVoPageInfo);
    }
 
    @PostMapping("/weighbridgeList")
    public BasicResult weighbridgeList(@RequestBody Map<String,Object> values){
        return weighService.weighbridgeList(values);
    }
 
 
 
}