From 7bce3a96c4a1a61a2c299be033c3fb798648ad78 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 22 十月 2024 15:05:49 +0800
Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV

---
 pipIrr-platform/pipIrr-web/pipIrr-web-irrigate/src/main/java/com/dy/pipIrrIrrigate/project/ProjectCtrl.java |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-irrigate/src/main/java/com/dy/pipIrrIrrigate/project/ProjectCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-irrigate/src/main/java/com/dy/pipIrrIrrigate/project/ProjectCtrl.java
index ee36545..6f46207 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-irrigate/src/main/java/com/dy/pipIrrIrrigate/project/ProjectCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-irrigate/src/main/java/com/dy/pipIrrIrrigate/project/ProjectCtrl.java
@@ -8,6 +8,7 @@
 import com.dy.pipIrrGlobal.pojoIr.IrProject;
 import com.dy.pipIrrGlobal.pojoPr.PrIntake;
 import com.dy.pipIrrGlobal.voIr.VoProject;
+import com.dy.pipIrrGlobal.voIr.VoProjectOne;
 import com.dy.pipIrrGlobal.voPr.VoIntake;
 import com.dy.pipIrrGlobal.voSe.VoActiveCard;
 import com.dy.pipIrrIrrigate.result.IrrigateResultCode;
@@ -221,13 +222,11 @@
     })
     @GetMapping(path = "one")
     @SsoAop()
-    public BaseResponse<IrProject> one(@RequestParam Long id) {
-        IrProject irProject = this.projectSv.selectById(id);
-        if (irProject == null) {
-            return BaseResponseUtils.buildFail(IrrigateResultCode.NO_PROJECT.getMessage());
-        } else {
+    public BaseResponse<VoProjectOne> one(@RequestParam Long id) {
+        VoProjectOne irProject = this.projectSv.selectById(id);
+
             return BaseResponseUtils.buildSuccess(irProject);
-        }
+
     }
 
     /**
@@ -246,12 +245,9 @@
     })
     @GetMapping(path = "some")
     @SsoAop()
-    public BaseResponse<QueryResultVo<List<VoProject>>> getIntakes(QueryVo vo) {
+    public BaseResponse<QueryResultVo<List<VoProject>>> getProjects(QueryVo vo) {
         try {
             QueryResultVo<List<VoProject>> res = projectSv.getProjects(vo);
-            if (res == null) {
-                return BaseResponseUtils.buildFail(IrrigateResultCode.NO_PROJECT.getMessage());
-            }
             return BaseResponseUtils.buildSuccess(res);
         } catch (Exception e) {
             log.error("鑾峰彇椤圭洰璁板綍寮傚父", e);

--
Gitblit v1.8.0