diff --git a/src/main/java/com/ydool/boot/modules/rddb/entity/Const.java b/src/main/java/com/ydool/boot/modules/rddb/entity/Const.java index 7327a24..7f5b039 100644 --- a/src/main/java/com/ydool/boot/modules/rddb/entity/Const.java +++ b/src/main/java/com/ydool/boot/modules/rddb/entity/Const.java @@ -34,4 +34,9 @@ public class Const { * 选民 */ public static final String TYPE_VOTER = "voter"; + + /** + * 常委会领导 + */ + public static final String TYPE_CWHLD = "cwhld"; } diff --git a/src/main/java/com/ydool/boot/modules/rddb/web/_SelectController.java b/src/main/java/com/ydool/boot/modules/rddb/web/_SelectController.java index 9e047de..41329ab 100644 --- a/src/main/java/com/ydool/boot/modules/rddb/web/_SelectController.java +++ b/src/main/java/com/ydool/boot/modules/rddb/web/_SelectController.java @@ -56,7 +56,10 @@ public class _SelectController extends BaseController { }); } else if (Const.TYPE_CONTACT.equals(userType)) { qw.eq("account_type", Const.TYPE_CONTACT); - } else { + } else if(Const.TYPE_CWHLD.equals(userType)){ + qw.eq("account_type", Const.TYPE_CWHLD); + } + else { //默认县级机关人员 qw.eq("account_type", Const.TYPE_ADMIN); } diff --git a/src/main/resources/views/modules/rddb/contact_db/form.html b/src/main/resources/views/modules/rddb/contact_db/form.html index 9220f01..2fd501d 100644 --- a/src/main/resources/views/modules/rddb/contact_db/form.html +++ b/src/main/resources/views/modules/rddb/contact_db/form.html @@ -24,7 +24,7 @@