张晓波
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package com.thhy.materials.modules.biz.materials.controller;
 
import com.thhy.general.common.BasicResult;
import com.thhy.materials.modules.biz.materials.service.SysAssistRecordService;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
 
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;
 
@RestController
@RequestMapping("/assistRecord")
public class SysAssistRecordController {
 
    @Resource
    private SysAssistRecordService assistRecordService;
    //添加
    @PostMapping("/assistRecordInsert")
    public BasicResult assistRecordInsert(@RequestBody HashMap<String, Object> values){
        return assistRecordService.assistRecordInsert(values);
    }
    //入库记录列表
    @PostMapping("/assistRecordList")
    public BasicResult assistRecordList(@RequestBody Map<String,Object> values){
        return assistRecordService.assistRecordList(values);
    }
 
    //入库删除
    @PostMapping("/assistRecordDel")
    public BasicResult assistRecordDel(@RequestBody Map<String,Object> values){
        return assistRecordService.assistRecordDel(values);
    }
    //入库详情
    @GetMapping("/assistRecordInfo")
    public BasicResult assistRecordInfo(@RequestParam String id){
        return assistRecordService.assistRecordInfo(id);
    }
    //出库列表
    @PostMapping("/assistRecordOutList")
    public BasicResult assistRecordOutList(@RequestBody Map<String,Object> values){
        return assistRecordService.assistRecordOutList(values);
    }
    //库存校正
    @PostMapping("/assistCheck")
    public BasicResult assistCheck(@RequestBody Map<String,Object> values){
        return assistRecordService.assistCheck(values);
    }
    //校正列表
    @PostMapping("/assistCorrectionList")
    public BasicResult assistCorrectionList(@RequestBody Map<String,Object> values){
        return assistRecordService.assistCorrectionList(values);
    }
    //入库导出
    @PostMapping("/assistExport")
    public void assistExport(@RequestBody Map<String, Object> values, HttpServletResponse response){
        assistRecordService.assistExport(values,response);
    }
    //模板
    @GetMapping("/recordExportTemplate")
    public void  variateExcelTemplate(HttpServletResponse response){
        assistRecordService.recordExportTemplate(response);
    }
    //出库导出
    @PostMapping("/assistOutExport")
    public void assistOutExport(@RequestBody Map<String, Object> values, HttpServletResponse response){
        assistRecordService.assistOutExport(values,response);
    }
    //入库导入
    @PostMapping("/assistRecordExcel")
    public BasicResult assistRecordExcel(@RequestParam MultipartFile file, HttpServletRequest request){
        return assistRecordService.variateExcel(file,request);
    }
    //辅材消耗统计
    @PostMapping("/assistStatistics")
    public BasicResult assistStatistics(@RequestBody Map<String,Object> values){
        return assistRecordService.assistStatistics(values);
    }
    //辅材消耗导出
    @PostMapping("/assistStatisticsExcel")
    public BasicResult assistStatisticsExcel(@RequestBody Map<String,Object> values,HttpServletResponse response){
        return assistRecordService.assistStatisticsExcel(values,response);
    }
    //辅材消耗类型下拉
    @GetMapping("/assistRecordPull")
    public BasicResult assistRecordPull(){
        return assistRecordService.assistRecordPull();
    }
 
 
}