教育训练处考试制证系统后端
heheng
2025-01-16 92ac1754c713d206ebdafa3da8ec817c1d1e120d
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
package com.gkhy.exam.pay.controller;
 
import com.gkhy.exam.pay.entity.NonCoalPay;
import com.gkhy.exam.pay.service.NonCoalPayService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
 
/**
 * 【请填写功能名称】Controller
 *
 * @author hh
 * @date 2025-01-16
 */
@RestController
@RequestMapping("/exam/pay")
public class NonCoalPayController extends BaseController {
    @Autowired
    private NonCoalPayService nonCoalPayService;
 
    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("/list")
    public TableDataInfo list(NonCoalPay nonCoalPay) {
        startPage();
        List<NonCoalPay> list = nonCoalPayService.selectNonCoalPayList(nonCoalPay);
        return getDataTable(list);
    }
 
    /**
     * 导出【请填写功能名称】列表
     */
 
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, NonCoalPay nonCoalPay) {
//        List<NonCoalPay> list = nonCoalPayService.selectNonCoalPayList(nonCoalPay);
//        ExcelUtil<NonCoalPay> util = new ExcelUtil<NonCoalPay>(NonCoalPay.class);
//        util.exportExcel(response, list, "【请填写功能名称】数据");
//    }
 
    /**
     * 获取【请填写功能名称】详细信息
     */
 
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return success(nonCoalPayService.selectNonCoalPayById(id));
    }
 
    /**
     * 新增【请填写功能名称】
     */
    @PostMapping
    public AjaxResult add(@RequestBody NonCoalPay nonCoalPay) {
        return toAjax(nonCoalPayService.insertNonCoalPay(nonCoalPay));
    }
 
    /**
     * 修改【请填写功能名称】
     */
 
    @PutMapping
    public AjaxResult edit(@RequestBody NonCoalPay nonCoalPay) {
        return toAjax(nonCoalPayService.updateNonCoalPay(nonCoalPay));
    }
 
    /**
     * 删除【请填写功能名称】
     */
 
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(nonCoalPayService.deleteNonCoalPayByIds(ids));
    }
}