From caac62f1f080ee8db3aba698f7f67ce105ad9ffe Mon Sep 17 00:00:00 2001 From: LSH Date: 星期一, 09 十月 2023 13:30:58 +0800 Subject: [PATCH] #核价相关 --- src/main/java/com/zy/crm/manager/entity/Rule.java | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/crm/manager/entity/Rule.java b/src/main/java/com/zy/crm/manager/entity/Rule.java index 2a341a7..71de11a 100644 --- a/src/main/java/com/zy/crm/manager/entity/Rule.java +++ b/src/main/java/com/zy/crm/manager/entity/Rule.java @@ -4,6 +4,10 @@ import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.enums.IdType; +import com.core.common.Cools; +import com.core.common.SpringUtils; +import com.zy.crm.system.entity.User; +import com.zy.crm.system.service.UserService; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -99,6 +103,42 @@ this.ruleStandby2 = ruleStandby2; } + public String getRuleType$(){ + if (null == this.ruleType){ return null; } + switch (this.ruleType){ + case 1: + return "鐢熸垚褰撳墠鏃ユ湡鏃堕棿鎴�"; + case 2: + return "鐢熸垚闀垮害涓�10鐨勯殢鏈哄瓧绗︿覆"; + case 3: + return "鐢熸垚鏃ユ湡鏃堕棿瀛楃涓�"; + default: + return String.valueOf(this.ruleType); + } + } + + public String getRuleConnectorType$(){ + if (null == this.ruleConnectorType){ return null; } + switch (this.ruleConnectorType){ + case 1: + return "涓嶅惎鐢�"; + case 0: + return "鍚敤"; + default: + return String.valueOf(this.ruleConnectorType); + } + } + + public String getRuleConnector$(){ + if (null == this.ruleConnector){ return null; } + switch (this.ruleConnector){ + case "-": + return "榛樿:-"; + default: + return String.valueOf(this.ruleConnector); + } + } + // Rule rule = new Rule( // null, // 瑙勫垯鏂瑰紡锛堥粯璁�1锛氬綋鍓嶆棩鏈熸椂闂存埑锛塠闈炵┖] // null, // 瑙勫垯澶碵闈炵┖] -- Gitblit v1.9.1