From e15f561a1f9eddfde503d59baf45a860b131928e Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期三, 13 八月 2025 14:22:50 +0800
Subject: [PATCH] 更新最新版代码

---
 src/main/java/com/flow/controller/ChongZhiController.java |   76 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 76 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/flow/controller/ChongZhiController.java b/src/main/java/com/flow/controller/ChongZhiController.java
new file mode 100644
index 0000000..e48be1b
--- /dev/null
+++ b/src/main/java/com/flow/controller/ChongZhiController.java
@@ -0,0 +1,76 @@
+//
+// 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());
+    }
+
+    @PostMapping({"FindChongzhiZi"})
+    public result<List<Chongzhi>> FindChongzhiZi(String Zong, Integer page, Integer limit) throws Exception {
+        System.out.println(Zong);
+        PageInfo<Chongzhi> cz = this.chongZhiService.FindChongzhiZi(Zong, 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);
+    }
+}

--
Gitblit v1.9.3