Browse Source

t_u_log,删除字段

lidongyu 1 year ago
parent
commit
b84daf8d23

+ 1 - 83
mybusiness/src/main/java/com/sooka/system/domain/TUInterfaceCrashLog.java

@@ -1,7 +1,5 @@
 package com.sooka.system.domain;
 
-import com.alibaba.fastjson.JSON;
-import com.alibaba.fastjson.JSONObject;
 import com.sooka.common.annotation.Excel;
 import com.sooka.common.core.domain.BaseEntity;
 import lombok.Getter;
@@ -60,10 +58,6 @@ public class TUInterfaceCrashLog extends BaseEntity
     @Excel(name = "访问浏览器")
     private String browser;
 
-    /** 参数条件 */
-    @Excel(name = "参数条件")
-    private String param;
-
     /** 返回结果 */
     @Excel(name = "返回结果")
     private String results;
@@ -76,10 +70,6 @@ public class TUInterfaceCrashLog extends BaseEntity
     @Excel(name = "操作状态")
     private Long operationStatus;
 
-    /** 异常记录 */
-    @Excel(name = "异常记录")
-    private String exceptionLog;
-
     /** 崩溃类型 */
     @Excel(name = "崩溃类型")
     private String exceptionType;
@@ -92,61 +82,7 @@ public class TUInterfaceCrashLog extends BaseEntity
     @Excel(name = "发生位置")
     private String exceptionExistence;
 
-    public String getExceptionType(){
-        if(exceptionLog != null && exceptionLog.contains("_@type")){
-            JSONObject jsonObject = JSON.parseObject(exceptionLog);//"_@type": "org.springframework.dao.DuplicateKeyException"
-            String type = jsonObject.getString("_@type");//org.springframework.dao.DuplicateKeyException
-            String[] exception = type.split("\\.");
-            return exception[exception.length - 1];
-        }else {
-            return null;
-        }
-    }
-
-    public String getExceptionCause(){
-        if(exceptionLog != null && exceptionLog.contains("localizedMessage")){
-            if(exceptionLog.contains("DuplicateKeyException")){
-                JSONObject jsonObject = JSON.parseObject(exceptionLog);
-                String localizedMessage = jsonObject.getString("localizedMessage");//"Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '23929' for key 'PRIMARY'\n### The error may exist in class path resource [mapper/Guiji_Gas_Mapper.xml]
-                String cause = localizedMessage.split(" Cause: ")[1];//: Duplicate entry '23929' for key 'PRIMARY'\n
-                return cause.split(" : ")[0].split("\\n")[0].split(": ")[1];
-            }else if(exceptionLog.contains("MyBatisSystemException")){
-                JSONObject jsonObject = JSON.parseObject(exceptionLog);
-                String localizedMessage = jsonObject.getString("localizedMessage");//"Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '23929' for key 'PRIMARY'\n### The error may exist in class path resource [mapper/Guiji_Gas_Mapper.xml]
-                return localizedMessage.split(": ")[1].split("in ")[0];//nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'SYQZH' in 'class com.sooka.model.bo.Guiji_City_Real_Estate7_mortgage_construction_Bean
-            }else {//JSONException
-                JSONObject jsonObject = JSON.parseObject(exceptionLog);
-                String localizedMessage = jsonObject.getString("localizedMessage");//"Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '23929' for key 'PRIMARY'\n### The error may exist in class path resource [mapper/Guiji_Gas_Mapper.xml]
-                return localizedMessage.split(": ")[1].split("in ")[0];//nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'SYQZH' in 'class com.sooka.model.bo.Guiji_City_Real_Estate7_mortgage_construction_Bean
-            }
-        }else {
-            return null;
-        }
-    }
 
-    public String getExceptionExistence(){
-        if(exceptionLog != null && exceptionLog.contains("localizedMessage")){
-            if(exceptionLog.contains("DuplicateKeyException")){
-                JSONObject jsonObject = JSON.parseObject(exceptionLog);
-                String localizedMessage = jsonObject.getString("localizedMessage");//"Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '23929' for key 'PRIMARY'\n### The error may exist in class path resource [mapper/Guiji_Gas_Mapper.xml]
-                String cause = localizedMessage.split(" Cause: ")[1];//mapper/Guiji_Gas_Mapper.xml
-                return cause.split(" : ")[0].split("\\[")[1].split("\\]")[0];
-            }else if(exceptionLog.contains("MyBatisSystemException")){
-                JSONObject jsonObject = JSON.parseObject(exceptionLog);
-                String localizedMessage = jsonObject.getString("localizedMessage");//"Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '23929' for key 'PRIMARY'\n### The error may exist in class path resource [mapper/Guiji_Gas_Mapper.xml]
-                String cause =  localizedMessage.split(": ")[1].split("in ")[1];//There is no getter for property named 'SYQZH' in 'class com.sooka.model.bo.Guiji_City_Real_Estate7_mortgage_construction_Bean
-                String[] exists = cause.split("\\.");
-                String exist = exists[exists.length -1];
-                return exist.substring(0, exist.length() - 1);
-            }else {//JSONException
-                JSONObject jsonObject = JSON.parseObject(exceptionLog);
-                String localizedMessage = jsonObject.getString("localizedMessage");//syntax error, pos 1, json : %7B&%22Data%22%3A%2C&%22Key%22%3A%226573fead622f43d7bd5b690dbb8b992a%22%2C&%22iNumber%22%3A%22
-                return localizedMessage;
-            }
-        }else {
-            return null;
-        }
-    }
 
     public void setId(String id)
     {
@@ -247,15 +183,7 @@ public class TUInterfaceCrashLog extends BaseEntity
     {
         return browser;
     }
-    public void setParam(String params)
-    {
-        this.param = params;
-    }
 
-    public String getParam()
-    {
-        return param;
-    }
     public void setResults(String results)
     {
         this.results = results;
@@ -283,15 +211,6 @@ public class TUInterfaceCrashLog extends BaseEntity
     {
         return operationStatus;
     }
-    public void setExceptionLog(String exceptionLog)
-    {
-        this.exceptionLog = exceptionLog;
-    }
-
-    public String getExceptionLog()
-    {
-        return exceptionLog;
-    }
 
     @Override
     public String toString() {
@@ -312,11 +231,10 @@ public class TUInterfaceCrashLog extends BaseEntity
             .append("os", getOs())
             .append("platformInterfacetype", getPlatformInterfacetype())
             .append("browser", getBrowser())
-            .append("param", getParam())
             .append("results", getResults())
             .append("operationQuantity", getOperationQuantity())
             .append("operationStatus", getOperationStatus())
-            .append("exceptionLog", getExceptionLog())
+
             .toString();
     }
 }

+ 1 - 11
mybusiness/src/main/resources/mapper/system/TUInterfaceCrashLogMapper.xml

@@ -21,15 +21,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="os"    column="os"    />
         <result property="platformInterfacetype"    column="platform_interfacetype"    />
         <result property="browser"    column="browser"    />
-        <result property="param"    column="param"    />
         <result property="results"    column="results"    />
         <result property="operationQuantity"    column="operation_quantity"    />
         <result property="operationStatus"    column="operation_status"    />
-        <result property="exceptionLog"    column="exception_log"    />
     </resultMap>
 
     <sql id="selectTUInterfaceCrashLogVo">
-        select id, status, remark, del_flag, create_by, create_time, update_by, update_time, login_user, login_name, interfaceinfo_id, interfaceinfo_name, ipaddress, os, platform_interfacetype, browser, param, results, operation_quantity, operation_status, exception_log from t_u_interface_crash_log
+        select id, status, remark, del_flag, create_by, create_time, update_by, update_time, login_user, login_name, interfaceinfo_id, interfaceinfo_name, ipaddress, os, platform_interfacetype, browser, results, operation_quantity, operation_status, from t_u_interface_crash_log
     </sql>
 
     <select id="selectTUInterfaceCrashLogList" parameterType="TUInterfaceCrashLog" resultMap="TUInterfaceCrashLogResult">
@@ -44,11 +42,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="os != null  and os != ''"> and os = #{os}</if>
             <if test="platformInterfacetype != null  and platformInterfacetype != ''"> and platform_interfacetype = #{platformInterfacetype}</if>
             <if test="browser != null  and browser != ''"> and browser = #{browser}</if>
-            <if test="param != null  and param != ''"> and param = #{param}</if>
             <if test="results != null  and results != ''"> and results = #{results}</if>
             <if test="operationQuantity != null "> and operation_quantity = #{operationQuantity}</if>
             <if test="operationStatus != null "> and operation_status = #{operationStatus}</if>
-            <if test="exceptionLog != null  and exceptionLog != ''"> and exception_log = #{exceptionLog}</if>
         </where>
         order by create_time desc
     </select>
@@ -77,11 +73,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="os != null">os,</if>
             <if test="platformInterfacetype != null">platform_interfacetype,</if>
             <if test="browser != null">browser,</if>
-            <if test="param != null">param,</if>
             <if test="results != null">results,</if>
             <if test="operationQuantity != null">operation_quantity,</if>
             <if test="operationStatus != null">operation_status,</if>
-            <if test="exceptionLog != null">exception_log,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
@@ -100,11 +94,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="os != null">#{os},</if>
             <if test="platformInterfacetype != null">#{platformInterfacetype},</if>
             <if test="browser != null">#{browser},</if>
-            <if test="param != null">#{param},</if>
             <if test="results != null">#{results},</if>
             <if test="operationQuantity != null">#{operationQuantity},</if>
             <if test="operationStatus != null">#{operationStatus},</if>
-            <if test="exceptionLog != null">#{exceptionLog},</if>
          </trim>
     </insert>
 
@@ -126,11 +118,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="os != null">os = #{os},</if>
             <if test="platformInterfacetype != null">platform_interfacetype = #{platformInterfacetype},</if>
             <if test="browser != null">browser = #{browser},</if>
-            <if test="param != null">param = #{param},</if>
             <if test="results != null">results = #{results},</if>
             <if test="operationQuantity != null">operation_quantity = #{operationQuantity},</if>
             <if test="operationStatus != null">operation_status = #{operationStatus},</if>
-            <if test="exceptionLog != null">exception_log = #{exceptionLog},</if>
         </trim>
         where id = #{id}
     </update>