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.*;
|
|
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);
|
}
|
|
//原料库存
|
@PostMapping("/headThingJsInventory")
|
public BasicResult headThingJsInventory(){
|
return weighService.headThingJsInventory();
|
}
|
//料仓列表
|
@PostMapping("/materialWarehouseRecordList")
|
public BasicResult materialWarehouseRecordList(@RequestBody Map<String,Object> values){
|
return weighService.materialWarehouseRecordList(values);
|
}
|
|
//料仓添加进仓
|
@PostMapping("/materialWarehouseRecordInsert")
|
public BasicResult materialWarehouseRecordInsert(@RequestBody Map<String,Object> values){
|
return weighService.materialWarehouseRecordInsert(values);
|
}
|
//料仓修改进仓
|
@PostMapping("/materialWarehouseRecordUpdate")
|
public BasicResult materialWarehouseRecordUpdate(@RequestBody Map<String,Object> values){
|
return weighService.materialWarehouseRecordUpdate(values);
|
}
|
//删除
|
@GetMapping("/materialWarehouseRecordDel")
|
public BasicResult materialWarehouseRecordDel(@RequestParam String id){
|
return weighService.materialWarehouseRecordDel(id);
|
}
|
|
}
|