wangzhe 2 lat temu
rodzic
commit
898d2958c5

+ 21 - 0
leiSP-common/src/main/java/com/sooka/common/core/domain/BaseEntity.java

@@ -5,6 +5,7 @@ import java.util.Date;
 import java.util.HashMap;
 import java.util.Map;
 import com.fasterxml.jackson.annotation.JsonFormat;
+import com.sooka.common.constant.Constants;
 
 /**
  * Entity基类
@@ -38,6 +39,26 @@ public class BaseEntity implements Serializable
     /** 请求参数 */
     private Map<String, Object> params;
 
+
+    /**
+     * 获取cache name
+     *
+     * @return 缓存名
+     */
+    public String getCacheName()
+    {
+        return Constants.LOG_TOTAL_CACHE;
+    }
+
+    /**
+     * 设置cache key
+     * @return 缓存键key
+     */
+    public String getCacheKey()
+    {
+        return Constants.LOG_TOTAL_KEY;
+    }
+
     public String getSearchValue()
     {
         return searchValue;

+ 2 - 2
mybusiness/src/main/java/com/sooka/system/controller/TULogController.java

@@ -81,8 +81,8 @@ public class TULogController extends BaseController
     {
         TULog tULog = new TULog();
         tULog.setInterfaceinfoId(id);
-        tULog.setLoginName(loginName);
-        tULog.setPlatformInterfacetype(platformInterfacetype);
+//        tULog.setLoginName(loginName);
+//        tULog.setPlatformInterfacetype(platformInterfacetype);
         tULog.setDeptName(deptName);
         startPage();
         List<TULog> list = tULogService.selectTULogList(tULog);

+ 0 - 19
mybusiness/src/main/java/com/sooka/system/domain/TULog.java

@@ -87,23 +87,4 @@ public class TULog extends BaseEntity
     @Excel(name = "异常记录")
     private String exceptionLog;
 
-    /**
-     * 获取cache name
-     *
-     * @return 缓存名
-     */
-    public String getCacheName()
-    {
-        return Constants.LOG_TOTAL_CACHE;
-    }
-
-    /**
-     * 设置cache key
-     * @return 缓存键key
-     */
-    public String getCacheKey()
-    {
-        return Constants.LOG_TOTAL_KEY;
-    }
-
 }