修改缓存报错问题

beetlsql3-dev
yz 10 months ago
parent 9dd579da72
commit c02afe38fa

@ -244,8 +244,11 @@ public class CacheConfig extends CachingConfigurerSupport {
@Override @Override
public void put(Object key, Object value) { public void put(Object key, Object value) {
if (true){
return;
}
if (value == null) { return; } if (value == null) { return; }
System.out.println(value.getClass().getClassLoader()); System.out.println("classLoader:"+value.getClass().getClassLoader());
redisCache.put(key, value); redisCache.put(key, value);
clearOtherJVM(); clearOtherJVM();

@ -30,7 +30,7 @@ public interface CoreDictDao extends BaseMapper<CoreDict> {
//根据表名、字段名查询 主键名和注释 和 字段名和注释 //根据表名、字段名查询 主键名和注释 和 字段名和注释
@Cacheable(value = DICT_CACHE_FIND_PK_AND_VALUE, key = "#tableName + #columnNames") // @Cacheable(value = DICT_CACHE_FIND_PK_AND_VALUE, key = "#tableName + #columnNames")
List<Map<String,Object>> findPkAndValue (String tableName, String columnNames); List<Map<String,Object>> findPkAndValue (String tableName, String columnNames);
//根据表名、字段名查询 注释 //根据表名、字段名查询 注释

@ -14,7 +14,7 @@ public class ConsoleTarget extends BaseTarget {
@Override @Override
public void flush(AutoGen gen, String content) { public void flush(AutoGen gen, String content) {
System.out.println("=========="+gen.getClass().getSimpleName()+"============="); System.out.println("=========="+gen.getClass().getSimpleName()+"=============");
System.out.println(content); System.out.println("content:"+content);
} }

@ -70,7 +70,7 @@ public class MavenProjectTarget extends BaseTarget {
fw = new FileWriter(new File(path)); fw = new FileWriter(new File(path));
fw.write(content); fw.write(content);
fw.close(); fw.close();
System.out.println(path); System.out.println("path:"+path);
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();

@ -55,6 +55,13 @@ public class CoreBaseAnnotationParser {
list.parallelStream().forEach(this::queryEntityAfter); list.parallelStream().forEach(this::queryEntityAfter);
} }
} }
// if(true){
//
// }else {
// if (ObjectUtil.isNotEmpty(list)) {
// list.parallelStream().forEach(this::queryEntityAfter);
// }
// }
} }
public void queryListAfter(List list, Boolean isDeep) { public void queryListAfter(List list, Boolean isDeep) {
@ -105,6 +112,8 @@ public class CoreBaseAnnotationParser {
String display = ""; String display = "";
Object fieldValue = field.get(ext); Object fieldValue = field.get(ext);
if (fieldValue != null) { if (fieldValue != null) {
String type = dict.type();
// CoreDict dbDict = dictUtil.findCoreDict(dict.type(),fieldValue.toString());
CoreDict dbDict = dict.type().contains(".") ? dictUtil.findCoreDictByTable(dict.type(), fieldValue.toString()) : dictUtil.findCoreDict(dict.type(), fieldValue.toString()); CoreDict dbDict = dict.type().contains(".") ? dictUtil.findCoreDictByTable(dict.type(), fieldValue.toString()) : dictUtil.findCoreDict(dict.type(), fieldValue.toString());
display = dbDict != null ? dbDict.getName() : null; display = dbDict != null ? dbDict.getName() : null;
} }

@ -62,11 +62,12 @@ public class CoreDictService extends CoreBaseService<CoreDict> {
* {@link Dict} * {@link Dict}
* @return List * @return List
*/ */
@Cacheable(value = CorePlatformService.DICT_CACHE_TYPE, key="#type") // @Cacheable(value = CorePlatformService.DICT_CACHE_TYPE, key="#type")
public List<CoreDict> findAllByTable(String type) { public List<CoreDict> findAllByTable(String type) {
if(!type.contains("university")){
return new ArrayList<>();
}
type = renderStringTemplate(type, null); type = renderStringTemplate(type, null);
String[] str = type.split("\\."); String[] str = type.split("\\.");
String tableName = null,filedName = null,params = null; String tableName = null,filedName = null,params = null;
if(str.length>0) if(str.length>0)
@ -104,8 +105,8 @@ public class CoreDictService extends CoreBaseService<CoreDict> {
param[i] = param[i].contains("=") && !param[i].contains("find_in_set")?(param[i].replace("=","='").replace(",","',")+ (StringUtils.isBlank(param[i])?"":"'")):param[i]; param[i] = param[i].contains("=") && !param[i].contains("find_in_set")?(param[i].replace("=","='").replace(",","',")+ (StringUtils.isBlank(param[i])?"":"'")):param[i];
} }
} }
System.out.println("导致堆栈空间不足-----------------------------------------------------------------------------------"); List<CoreDict> aLlListByTable = dictDao.findALlListByTable(idName, filedName, tableCode, tableName, param);
return dictDao.findALlListByTable(idName,filedName,tableCode,tableName,param); return aLlListByTable;
}else { }else {
return new ArrayList<>(); return new ArrayList<>();
} }
@ -149,7 +150,6 @@ public class CoreDictService extends CoreBaseService<CoreDict> {
return resultScript; return resultScript;
} }
}catch (Exception e) { }catch (Exception e) {
System.out.println(e.getMessage());
return script; return script;
} }

@ -200,7 +200,7 @@ public class CorePlatformService {
public MenuItem getMenuItem(long userId, long orgId) { public MenuItem getMenuItem(long userId, long orgId) {
CoreUserDao coreUserDao1 = SpringUtil.getBean("coreUserDao"); CoreUserDao coreUserDao1 = SpringUtil.getBean("coreUserDao");
System.out.println(coreUserDao1); System.out.println("coreUserDao1:"+coreUserDao1);
user = coreUserDao1.unique(userId); user = coreUserDao1.unique(userId);
if (this.isSupperAdmin(user)) { if (this.isSupperAdmin(user)) {
return self.buildMenu(); return self.buildMenu();

@ -144,7 +144,7 @@ public class AliPayController extends AbstractAliPayApiController {
String content = PayKit.createLinkString(paramsMap); String content = PayKit.createLinkString(paramsMap);
System.out.println(content); System.out.println("wapPayNoSdk:"+content);
String encrypt = RsaKit.encryptByPrivateKey(content, aliPayApiConfig.getPrivateKey()); String encrypt = RsaKit.encryptByPrivateKey(content, aliPayApiConfig.getPrivateKey());
System.out.println(encrypt); System.out.println(encrypt);

@ -135,12 +135,12 @@ public class ResourcesInfoService extends CoreBaseService<ResourcesInfo> {
String fileName = path.substring(path.lastIndexOf("/") + 1); String fileName = path.substring(path.lastIndexOf("/") + 1);
String formatSpot = fileName.substring(fileName.lastIndexOf(".")); String formatSpot = fileName.substring(fileName.lastIndexOf("."));
System.out.println(path); System.out.println("getById:"+path);
path = path path = path
.replace("/filesystem/temp/", "/filesystem/temp/" + fileName.replace(formatSpot, "") + "/") .replace("/filesystem/temp/", "/filesystem/temp/" + fileName.replace(formatSpot, "") + "/")
.replace("server/", "") .replace("server/", "")
.replace(formatSpot, ".m3u8"); .replace(formatSpot, ".m3u8");
System.out.println(path); System.out.println("getById:"+path);
Boolean flag = booleanMap.get(fileName.replace(formatSpot, "")); Boolean flag = booleanMap.get(fileName.replace(formatSpot, ""));
if (null == flag) { if (null == flag) {

@ -154,7 +154,6 @@ public class UniversityFacultyController extends BaseController {
} }
/* 后台接口 */ /* 后台接口 */
@PostMapping(MODEL + "/list.json") @PostMapping(MODEL + "/list.json")
@Function("universityFaculty.query") @Function("universityFaculty.query")
@ResponseBody @ResponseBody

Loading…
Cancel
Save