huangjiayang
2025-04-23 95e221907d5e75c4092a49a82a6d2502ee833461
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
package com.aps.core.controller.mainPlan;
 
import com.aps.common.core.utils.poi.ExcelUtil;
import com.aps.common.core.web.controller.BaseController;
import com.aps.common.core.web.domain.AjaxResult;
import com.aps.common.core.web.page.TableDataInfo;
import com.aps.common.log.annotation.Log;
import com.aps.common.log.enums.BusinessType;
import com.aps.common.security.annotation.RequiresPermissions;
import com.aps.core.domain.ApsPlateProcessShopStat;
import com.aps.core.service.IApsPlateProcessShopStatService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
/**
 * 钣金车间统计Controller
 * 
 * @author zhl
 * @date 2025-04-23
 */
 
 
@RestController
@RequestMapping("/ApsPlateProcessShopStat")
public class ApsPlateProcessShopStatController extends BaseController
{
    @Autowired
    private IApsPlateProcessShopStatService apsPlateProcessShopStatService;
 
 
    /**
     * 导出钣金车间统计列表
     */
 
    @RequiresPermissions("ApsPlateProcessShopStat:ApsPlateProcessShopStat:export")
    @Log(title = "钣金车间统计", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, ApsPlateProcessShopStat apsPlateProcessShopStat)
    {
        List<ApsPlateProcessShopStat> list = apsPlateProcessShopStatService.selectApsPlateProcessShopStatList(apsPlateProcessShopStat);
        ExcelUtil<ApsPlateProcessShopStat> util = new ExcelUtil<ApsPlateProcessShopStat>(ApsPlateProcessShopStat.class);
        util.exportExcel(response, list, "钣金车间统计数据");
    }
 
 
    /**
     * 修改钣金车间统计
     */
 
 
    @Log(title = "钣金车间统计", businessType = BusinessType.UPDATE)
    @PostMapping("/update")
    public AjaxResult update(@RequestBody ApsPlateProcessShopStat apsPlateProcessShopStat)
    {
        apsPlateProcessShopStatService.saveShopStat();
        return toAjax(true);
    }
 
    /**
     * 查询钣金车间统计列表
     */
 
 
    @GetMapping("/list")
    public AjaxResult list(ApsPlateProcessShopStat apsPlateProcessShopStat)
    {
        return apsPlateProcessShopStatService.getShopPlanStat();
 
    }
 
}