廖井涛
2025-09-17 75f2936851cbccd4ed630317bbc99476d9dcf29d
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
package com.example.erp.controller.mm;
 
 
import cn.dev33.satoken.annotation.SaCheckPermission;
import com.example.erp.common.Result;
import com.example.erp.entity.mm.*;
import com.example.erp.entity.sd.Delivery;
import com.example.erp.entity.sd.OrderDetail;
import com.example.erp.service.mm.FinishedGlassShelfService;
import com.example.erp.service.mm.MaterialStoreService;
import com.example.erp.tools.DownExcel;
import com.fasterxml.jackson.core.JsonProcessingException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;
 
@RestController
@RequestMapping("/finishedGlassShelf")
@Api(value="玻璃料架controller",tags={"玻璃料架接口"})
public class FinishedGlassShelfController {
    @Autowired
    FinishedGlassShelfService finishedGlassShelfService;
 
    @ApiOperation("玻璃料架新增接口")
    @PostMapping("/saveFinishedGlassShelf")
    public Result saveFinishedGlassShelf( @RequestBody Map<String,Object>  object){
        return Result.seccess(finishedGlassShelfService.saveFinishedGlassShelf(object));
    }
 
    @ApiOperation("玻璃料架库存查询接口")
    @PostMapping("/getSelectFinishedGlassShelfInformation/{pageNum}/{pageSize}/{type}")
    public Result getSelectFinishedGlassShelfInformation(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable String type){
        return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfInformation(pageNum,pageSize,type));
    }
 
    @ApiOperation("玻璃料架库存查询接口")
    @PostMapping("/getSelectFinishedGlassShelfInformationById/{id}")
    public Result getSelectFinishedGlassShelfInformationById(@PathVariable Long id){
        return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfInformationById(id));
    }
 
    @ApiOperation("删除玻璃料架接口")
    @PostMapping("/deleteFinishedGlassShelfInformationById")
    public Result deleteFinishedGlassShelfInformationById( @RequestBody Map<String,Object>  object){
        return Result.seccess(finishedGlassShelfService.deleteFinishedGlassShelfInformationById(object));
    }
 
    @ApiOperation("玻璃料架新增出库明细查询接口")
    @PostMapping("/getSelectFinishedGlassShelfInformationDetails/{pageNum}/{pageSize}")
    public Result getSelectFinishedGlassShelfInformationDetails(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody List<Map<String, Object>> object){
        return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfInformationDetails(pageNum,pageSize,object));
    }
 
    @ApiOperation("玻璃料架编辑出库明细查询接口")
    @PostMapping("/getSelectFinishedGlassShelfEmitDetails/{pageNum}/{pageSize}")
    public Result getSelectFinishedGlassShelfEmitDetails(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody String emitId){
        return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfEmitDetails(pageNum,pageSize,emitId));
    }
 
    @ApiOperation("玻璃料架出库新增接口")
    @PostMapping("/insertFinishedGlassShelfEmit")
    public Result insertFinishedGlassShelfEmit( @RequestBody Map<String,Object> object){
        return Result.seccess(finishedGlassShelfService.insertFinishedGlassShelfEmit(object));
    }
 
 
    @ApiOperation("玻璃料架出库查询接口")
    @PostMapping("/getSelectFinishedGlassShelfEmit/{pageNum}/{pageSize}/{selectDate}")
    public Result getSelectFinishedGlassShelfEmit(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate,
                                                  @RequestBody FinishedGlassShelfEmit finishedGlassShelfEmit) throws JsonProcessingException {
        return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfEmit(pageNum,pageSize,selectDate,finishedGlassShelfEmit));
    }
 
    @ApiOperation("玻璃料架出库删除接口")
    @PostMapping("/deleteFinishedGlassShelfEmit")
    public Result deleteFinishedGlassShelfEmit( @RequestBody Map<String,Object> object){
        return Result.seccess(finishedGlassShelfService.deleteFinishedGlassShelfEmit(object));
    }
 
    @ApiOperation("玻璃料架入库新增接口")
    @PostMapping("/insertFinishedGlassShelfWithdraw")
    public Result insertFinishedGlassShelfWithdraw( @RequestBody Map<String,Object> object){
        return Result.seccess(finishedGlassShelfService.insertFinishedGlassShelfWithdraw(object));
    }
 
    @ApiOperation("玻璃料架入库查询接口")
    @PostMapping("/getSelectFinishedGlassShelfWithdraw/{pageNum}/{pageSize}/{selectDate}")
    public Result getSelectFinishedGlassShelfWithdraw(@PathVariable Integer pageNum, @PathVariable Integer pageSize,@PathVariable List<String> selectDate,
                                                  @RequestBody FinishedGlassShelfWithdraw finishedGlassShelfWithdraw) throws JsonProcessingException {
        return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfWithdraw(pageNum,pageSize,selectDate,finishedGlassShelfWithdraw));
    }
 
    @ApiOperation("玻璃料架编辑入库明细查询接口")
    @PostMapping("/getSelectFinishedGlassShelfWithdrawDetails/{pageNum}/{pageSize}")
    public Result getSelectFinishedGlassShelfWithdrawDetails(@PathVariable Integer pageNum, @PathVariable Integer pageSize, @RequestBody String withdrawId){
        return Result.seccess(finishedGlassShelfService.getSelectFinishedGlassShelfWithdrawDetails(pageNum,pageSize,withdrawId));
    }
 
    @ApiOperation("玻璃料架入库删除接口")
    @PostMapping("/deleteFinishedGlassShelfWithdraw")
    public Result deleteFinishedGlassShelfWithdraw( @RequestBody Map<String,Object> object){
        return Result.seccess(finishedGlassShelfService.deleteFinishedGlassShelfWithdraw(object));
    }
 
    @ApiOperation("玻璃料架记录查询接口")
    @PostMapping("/getFinishedGlassShelfLogReport/{type}/{pageNum}/{pageSize}/{selectDate}")
    public Result getFinishedGlassShelfLogReport(@PathVariable String type,@PathVariable Integer pageNum, @PathVariable Integer pageSize,
                                                 @PathVariable List<String> selectDate, @RequestBody FinishedGlassShelfLog finishedGlassShelfLog){
        return Result.seccess(finishedGlassShelfService.getFinishedGlassShelfLogReport(type,pageNum,pageSize,selectDate,finishedGlassShelfLog));
    }
 
    @ApiOperation("玻璃料架记录报表导出")
    @PostMapping("/exportFinishedGlassShelfLogReport/{type}")
    public void exportFinishedGlassShelfLogReport(@PathVariable String type, HttpServletResponse response, @RequestBody List<LocalDate> dates) throws IOException, IllegalAccessException, InstantiationException {
        DownExcel.download(response, FinishedGlassShelfLog.class, finishedGlassShelfService.exportFinishedGlassShelfLogReport(dates,type),"finishedGlassShelf");
    }
 
 
}