|
@@ -45,7 +45,8 @@ public class BaseService {
|
|
|
public String getxxly(String xxly){
|
|
|
String phone = "电话";
|
|
|
String dictcode = "";
|
|
|
- if (redis.hasKey(RedisConstant.XXLY_CODE + phone)) {
|
|
|
+
|
|
|
+ /*if (redis.hasKey(RedisConstant.XXLY_CODE + phone)) {
|
|
|
dictcode = (String) redis.get(RedisConstant.XXLY_CODE + phone);
|
|
|
} else {
|
|
|
SysDict sysDict = sysDictService.lambdaQuery().
|
|
@@ -56,9 +57,18 @@ public class BaseService {
|
|
|
|
|
|
redis.set(RedisConstant.XXLY_CODE + phone, dictcode,RedisConstant.BRAND_CODE_TIME_LENGTH);
|
|
|
}
|
|
|
+ }*/
|
|
|
+
|
|
|
+
|
|
|
+ SysDict sysDict = sysDictService.lambdaQuery().
|
|
|
+ eq(SysDict::getDictType, DictTypeEnum.DICT_TYPE_XXQD_SOURCE.getCode())
|
|
|
+ .eq(SysDict::getDictValue,xxly).last("limit 1").one();
|
|
|
+ if (sysDict != null) {
|
|
|
+ dictcode = sysDict.getDictCode();
|
|
|
}
|
|
|
|
|
|
- return dictcode;
|
|
|
+
|
|
|
+ return dictcode;
|
|
|
}
|
|
|
|
|
|
public Brand getBrand() {
|