huangjiayang
2025-04-25 ae366fa73d7fa3bc748973d341dd16f3735ce436
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
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 io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
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
 */
 
@Tag(name = "钣金计划大表", description = "钣金计划大表接口")
@RestController
@RequestMapping("/plateProcessShopStat")
public class ApsPlateProcessShopStatController extends BaseController
{
    @Autowired
    private IApsPlateProcessShopStatService apsPlateProcessShopStatService;
 
 
    /**
     * 导出钣金车间统计列表
     */
    @Operation(summary = "钣金计划大表", description = "导出功能")
    @Log(title = "钣金车间统计", businessType = BusinessType.EXPORT)
    @RequiresPermissions("plateProcessShopStat:export")
    @PostMapping("/export")
    public void export(HttpServletResponse response, ApsPlateProcessShopStat apsPlateProcessShopStat)
    {
        apsPlateProcessShopStatService.exportExcel(response);
    }
 
 
    /**
     * 修改钣金车间统计
     */
 
    @Operation(summary = "钣金计划大表", description = "更新统计数据")
    @Log(title = "钣金车间统计", businessType = BusinessType.UPDATE)
    @RequiresPermissions("plateProcessShopStat:update")
    @PostMapping("/update")
    public AjaxResult update()
    {
        apsPlateProcessShopStatService.saveShopStat();
        return toAjax(true);
    }
 
    /**
     * 查询钣金车间统计列表
     */
    @RequiresPermissions("plateProcessShopStat:list")
    @Operation(summary = "钣金计划大表", description = "获取统计数据")
    @GetMapping("/list")
    public AjaxResult list()
    {
        return apsPlateProcessShopStatService.getShopPlanStat();
 
    }
 
}