From 241408b071cb1b43d9307ae9c75c82bb77b6faa7 Mon Sep 17 00:00:00 2001 From: zhaozhengjie <237651143@qq.com> Date: 星期二, 20 九月 2022 17:10:27 +0800 Subject: [PATCH] Merge branch 'haucheng_panzhihua' into huacheng_test --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/enums/PopulOutOrLocalEnum.java | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/enums/PopulOutOrLocalEnum.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/enums/PopulOutOrLocalEnum.java index de266a1..c5d2be4 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/enums/PopulOutOrLocalEnum.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/enums/PopulOutOrLocalEnum.java @@ -8,16 +8,13 @@ * @author LYQ */ @Getter -public enum PopulOutOrLocalEnum -{ - BD(1, "本地"), - WD(2, "外地"); +public enum PopulOutOrLocalEnum { + BD(1, "本地"), WD(2, "外地"); private final Integer code; private final String name; - PopulOutOrLocalEnum(Integer code, String name) - { + PopulOutOrLocalEnum(Integer code, String name) { this.code = code; this.name = name; } @@ -28,7 +25,7 @@ return item.getCode(); } } - return 0; + return -1; } public static String getCnDescByName(Integer code) { -- Gitblit v1.7.1