From 2ff614e974ce0a15858d2006faf868cf80897755 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 24 十一月 2022 14:36:11 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/crm/manager/controller/PlanController.java |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/crm/manager/controller/PlanController.java b/src/main/java/com/zy/crm/manager/controller/PlanController.java
index a746b9e..7c5cbb6 100644
--- a/src/main/java/com/zy/crm/manager/controller/PlanController.java
+++ b/src/main/java/com/zy/crm/manager/controller/PlanController.java
@@ -60,6 +60,9 @@
             return R.error("褰撳墠瑙勫垝鍗曠被鍨嬪凡琚鐢�");
         }
         resultObj.put("formHtml", planType.getHtml());
+        // 姝ラ鏉$浉鍏�
+        resultObj.put("step", this.getStepOfSettle(plan.getSettle()));
+
         return R.ok().add(resultObj);
     }
 
@@ -287,4 +290,30 @@
         return R.ok("鍒犻櫎鎴愬姛");
     }
 
+
+
+
+
+
+
+
+    /*************************************** 姝ラ鏉$浉鍏� **********************************************/
+    private Integer getStepOfSettle(int settle){
+        switch (settle){
+            case 1:
+            case 2:
+                return 2;
+            case 3:
+            case 4:
+                return 3;
+            case 5:
+            case 6:
+                return 4;
+            case 7:
+                return 0;
+            default:
+                return 1;
+        }
+    }
+
 }

--
Gitblit v1.9.1