fei.wang
2024-05-13 b9b58b9ef261cb290d93465f88a2cbd814b576f0
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
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
 
package com.flow.controller;
 
import com.flow.pojo.Chongzhi;
import com.flow.service.ChongZhiService;
import com.flow.util.DESUtil;
import com.flow.util.result;
import com.flow.util.resultutil;
import com.github.pagehelper.PageInfo;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping({"/hxzk"})
public class ChongZhiController {
    @Autowired
    ChongZhiService chongZhiService;
 
    public ChongZhiController() {
    }
 
    @GetMapping({"FindChongzhi"})
    public result<List<Chongzhi>> FindChongzhi(Integer page, Integer limit) throws Exception {
        PageInfo<Chongzhi> cz = this.chongZhiService.FindChongZhi(page, limit);
        return resultutil.returnSuccess(cz.getTotal(), cz.getList());
    }
 
    @GetMapping({"FindChongzhiZi"})
    public result<List<Chongzhi>> FindChongzhiZi(String Zong, Integer page, Integer limit) throws Exception {
        PageInfo<Chongzhi> cz = this.chongZhiService.FindChongzhiZi(DESUtil.decrypt(Zong, DESUtil.key), page, limit);
        return resultutil.returnSuccess(cz.getTotal(), cz.getList());
    }
 
    @GetMapping({"czl"})
    public List czl(String Zong) throws Exception {
        return this.chongZhiService.czl(Zong);
    }
 
    @PostMapping({"upstatus"})
    public int upstatus(Chongzhi chongzhi) {
        int p = 0;
        String str = chongzhi.getJynum();
        String[] result = str.split(",");
 
        for(int i = 0; i < result.length; ++i) {
            chongzhi.setJynum(result[i]);
            p += this.chongZhiService.upstatus(chongzhi);
        }
 
        return p;
    }
 
    @PostMapping({"DeleteChongZhi"})
    public int DeleteChongZhi(String chongZhiId) {
        return this.chongZhiService.DeleteChongZhi(chongZhiId);
    }
 
    @PostMapping({"findChongZhiJine"})
    public String findChongZhiJine() {
        return this.chongZhiService.findChongZhiJine();
    }
 
    @PostMapping({"findChongZhiJine1"})
    public String findChongZhiJine1(Chongzhi chongzhi) {
        return this.chongZhiService.findChongZhiJine1(chongzhi);
    }
}