张晓波
2023-09-19 164694c47c35d6654df69b533e8dbf8b5423efc5
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
package com.thhy.materials.modules.biz.concret.controller;
 
import com.thhy.general.common.BasicResult;
import com.thhy.materials.modules.biz.concret.service.TSteelNeedYearService;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
import java.util.Map;
 
@RestController
@RequestMapping("/needYear")
public class TSteelNeedYearController {
 
    @Resource
    private TSteelNeedYearService yearService;
 
    //钢筋需求计划添加
    @PostMapping("/needYearInsert")
    public BasicResult needYearInsert(@RequestBody Map<String,Object> values){
        return yearService.needYearInsert(values);
    }
    //钢筋需求计划列表
    @PostMapping("/needYearList")
    public BasicResult needYearList(@RequestBody Map<String,Object> values){
        return yearService.needYearList(values);
    }
    //钢筋需求计划删除
    @GetMapping("/needYearDel")
    public BasicResult needYearDel(@RequestParam String steelNeedId){
        return yearService.needYearDel(steelNeedId);
    }
    //钢筋需求计划详情
    @GetMapping("/needYearInfo")
    public BasicResult needYearInfo(@RequestParam String steelNeedId){
        return yearService.needYearInfo(steelNeedId);
    }
    //钢筋需求计划修改
    @PostMapping("/needYearUpdate")
    public BasicResult needYearUpdate(@RequestBody Map<String,Object> values){
        return yearService.needYearUpdate(values);
    }
}