邱宇豪
2023-11-27 f802a6876c8a86ffae9547ed5fea15df15c303f8
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
package com.thhy.secure.modules.biz.integralAccount.controller;
 
import com.thhy.general.common.BasicResult;
import com.thhy.general.config.SysUserInfo;
import com.thhy.general.utils.ExcelUtils;
import com.thhy.general.utils.UserInfoUtils;
import com.thhy.secure.modules.biz.integralAccount.entity.IntegralAccountEntity;
import com.thhy.secure.modules.biz.integralAccount.entity.IntegralDetailEntity;
import com.thhy.secure.modules.biz.integralAccount.service.IntegralDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
 
/**
 * @Author QiuYuHao
 * @CreateDate 2023-11-27 17:34:01
 * 积分流水控制层
 */
@RestController
@RequestMapping("integralAccount")
public class IntegraDetailController {
 
    @Autowired
    private IntegralDetailService integralDetailService;
    /**
     * 积分超市新增和修改
     * @param integralDetailEntity
     */
    @PostMapping("insertAndUpdate")
    BasicResult insertAndUpdate(@RequestBody IntegralDetailEntity integralDetailEntity){
        return integralDetailService.insertAndUpdate(integralDetailEntity);
    }
 
    /**
     * 积分超市
     * @param map
     * @return
     */
    @PostMapping("selectPageList")
    BasicResult selectPageList(@RequestBody Map map){
        return integralDetailService.selectPageList(map);
    }
 
    /**
     * 积分超市删除
     * @param id
     */
    @GetMapping("delete")
    BasicResult delete(@RequestParam String id){
        return integralDetailService.delete(id);
    }
 
 
    /**
     * 安全积分列表
     */
    @PostMapping("selectSafeIntegralPageList")
    BasicResult selectSafeIntegralPageList(@RequestBody Map map){
        return integralDetailService.selectSafeIntegralPageList(map);
    }
 
    /**
     * 安全积分明细
     * @param map
     * @return
     */
    @PostMapping("selectSafeIntegralInfo")
    BasicResult selectSafeIntegralInfo(@RequestBody Map map){
        return integralDetailService.selectSafeIntegralInfo(map);
    }
 
    @PostMapping("exportList")
    public void exportList(@RequestBody Map map, HttpServletResponse rsp) {
        this.integralDetailService.exportList(map,rsp);
    }
 
    @PostMapping("exportSafeIntegralInfo")
    public void exportSafeIntegralInfo(@RequestBody Map map, HttpServletResponse rsp) {
        this.integralDetailService.exportSafeIntegralInfo(map,rsp);
    }
}