提交 a5fca07f 编写于 作者: Mosher's avatar Mosher

Revert "更新代码表过期时间逻辑"

This reverts commit 99a24147.
上级 99a24147
...@@ -22,29 +22,28 @@ export default class ${srfclassname('${item.getCodeName()}')} { ...@@ -22,29 +22,28 @@ export default class ${srfclassname('${item.getCodeName()}')} {
public isEnableCache:boolean = ${item.isEnableCache()?c}; public isEnableCache:boolean = ${item.isEnableCache()?c};
/** /**
* 预定义类型 * 过期时间
* *
* @type string * @type any
* @memberof ${srfclassname('${item.getCodeName()}')} * @memberof ${srfclassname('${item.getCodeName()}')}
*/ */
public predefinedType:string ='<#if item.getPredefinedType?? && item.getPredefinedType()??>${item.getPredefinedType()}</#if>'; public expirationTime:any;
/** /**
* 缓存超长时长 * 预定义类型
* *
* @type any * @type string
* @memberof ${srfclassname('${item.getCodeName()}')} * @memberof ${srfclassname('${item.getCodeName()}')}
*/ */
public cacheTimeout:any = ${item.getCacheTimeout()?c}; public predefinedType:string ='<#if item.getPredefinedType?? && item.getPredefinedType()??>${item.getPredefinedType()}</#if>';
/** /**
* 过期时间 * 缓存超长时长
* *
* @type any * @type any
* @memberof ${srfclassname('${item.getCodeName()}')} * @memberof ${srfclassname('${item.getCodeName()}')}
*/ */
public expirationTime:any = this.cacheTimeout && this.cacheTimeout != 0 ? new Date().getTime()+this.cacheTimeout : 0; public cacheTimeout:any = ${item.getCacheTimeout()?c};
/** /**
* 代码表模型对象 * 代码表模型对象
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册