From 564bf7ab6a639c2c4557d35b8fd9b51dca60a738 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期二, 22 八月 2023 13:32:34 +0800 Subject: [PATCH] #规则完善 --- src/main/java/com/zy/crm/manager/entity/Rule.java | 26 ++++++++++++++++++++++++++ 1 files changed, 26 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..e82c934 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,28 @@ this.ruleStandby2 = ruleStandby2; } + 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.ruleConnectorType){ return null; } + switch (this.ruleConnector){ + case "-": + return "榛樿'-'"; + default: + return String.valueOf(this.ruleConnectorType); + } + } + // Rule rule = new Rule( // null, // 瑙勫垯鏂瑰紡锛堥粯璁�1锛氬綋鍓嶆棩鏈熸椂闂存埑锛塠闈炵┖] // null, // 瑙勫垯澶碵闈炵┖] -- Gitblit v1.9.1