anderx преди 3 години
родител
ревизия
a028e0e72a
променени са 2 файла, в които са добавени 15 реда и са изтрити 3 реда
  1. 11 3
      src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java
  2. 4 0
      src/main/resources/props/config_local.properties

+ 11 - 3
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -69,6 +69,14 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 	private Integer USER_CHANNEL_DAYS= null;
 	@Value(value = "${user.receive.max}")
 	private Integer USER_RECEIVE_MAX = null;
+
+	@Value(value = "${yxzj_max}")
+	private Integer YXZJ_MAX = null;
+	@Value(value = "${yxy_max}")
+	private Integer YXY_MAX = null;
+	@Value(value = "${yxjl_max}")
+	private Integer YXJL_MAX = null;
+
 	@Resource
 	private UserFollowMapper userFollowMapper;
 	@Resource
@@ -2185,13 +2193,13 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 		List<String > roles=adminMapper.getAdminRoleListByAid(aid);
 		for (String role : roles) {
 			if (role.equals(AFTConstants.SALESMAN_DIRECTOR)){
-				y = 800;
+				y = YXZJ_MAX;
 				break;
 			} else if (role.equals(AFTConstants.SALESMAN_MANAGER)){
-				y = 200;
+				y = YXJL_MAX;
 				break;
 			} else if (role.equals(AFTConstants.SALESMAN)){
-				y = 100;
+				y = YXY_MAX;
 				break;
 			}
 		}

+ 4 - 0
src/main/resources/props/config_local.properties

@@ -44,6 +44,10 @@ user.private.max=1000
 user_remind_days=15
 #\u63D0\u524D\u63D0\u9192\u5929\u6570
 user_channel_days=90
+#\u5BA2\u6237\u9650\u5236
+yxzj_max=800
+yxy_max=100
+yxjl_max=100
 
 avatar.host=//static.jishutao.com
 static.host=//static.jishutao.com/1.2.43