|
@@ -94,16 +94,18 @@ public class ExpertServiceImpl extends IBaseServiceImpl<ExpertEntity, Long> impl
|
|
|
sql.append("select * from tb_expert where is_delete = '0' and display=1 ");
|
|
|
String type = param.getType();
|
|
|
if (StringUtils.isNotBlank(type)){
|
|
|
- String [] typeCheck = {"1","2","3","4","5","loyal_1","loyal_2"};
|
|
|
+// String [] typeCheck = {"1","2","3","4","5","loyal_1","loyal_2"};
|
|
|
+ String [] typeCheck = {"1","2","3","4","5","6"};
|
|
|
if (!Arrays.asList(typeCheck).contains(type)) {
|
|
|
return Result.failure("非法类型");
|
|
|
}
|
|
|
- String key = typeMap.get(type);
|
|
|
- if (type.startsWith("loyal_")){
|
|
|
- sql.append(" and type='").append(key).append("'");
|
|
|
- } else {
|
|
|
- sql.append(" and level=").append(key);
|
|
|
- }
|
|
|
+// String key = typeMap.get(type);
|
|
|
+// if (type.startsWith("loyal_")){
|
|
|
+// sql.append(" and type='").append(key).append("'");
|
|
|
+// } else {
|
|
|
+// sql.append(" and level=").append(key);
|
|
|
+// }
|
|
|
+ sql.append(" and level=").append(type);
|
|
|
}
|
|
|
|
|
|
|