tao.mo

common-dao | 修改 | 操作日志类型调整

mt
2025年1月13日18:38:16
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
18 <result column="REQUEST_TIME" jdbcType="TIMESTAMP" property="requestTime" /> 18 <result column="REQUEST_TIME" jdbcType="TIMESTAMP" property="requestTime" />
19 <result column="RESPONSE_TIME" jdbcType="TIMESTAMP" property="responseTime" /> 19 <result column="RESPONSE_TIME" jdbcType="TIMESTAMP" property="responseTime" />
20 <result column="EXCEUTE_CONSUME" jdbcType="NUMERIC" property="exceuteConsume" /> 20 <result column="EXCEUTE_CONSUME" jdbcType="NUMERIC" property="exceuteConsume" />
21 + <result column="STATUS" jdbcType="NUMERIC" property="status" />
21 </resultMap> 22 </resultMap>
22 <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.fedex.connect.common.model.log.OperationWithBLOBs"> 23 <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.fedex.connect.common.model.log.OperationWithBLOBs">
23 <result column="REMARK" jdbcType="CLOB" property="remark" /> 24 <result column="REMARK" jdbcType="CLOB" property="remark" />
...@@ -85,7 +86,7 @@ ...@@ -85,7 +86,7 @@
85 <sql id="Base_Column_List"> 86 <sql id="Base_Column_List">
86 ID, USER_ID, LOGIN_NAME, USER_NAME, MODULE, DESCRIBE, URL, CREATE_TIME, CREATE_USER_ID, 87 ID, USER_ID, LOGIN_NAME, USER_NAME, MODULE, DESCRIBE, URL, CREATE_TIME, CREATE_USER_ID,
87 CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME, REQUEST_TIME, RESPONSE_TIME, 88 CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME, REQUEST_TIME, RESPONSE_TIME,
88 - EXCEUTE_CONSUME 89 + EXCEUTE_CONSUME, STATUS
89 </sql> 90 </sql>
90 <sql id="Blob_Column_List"> 91 <sql id="Blob_Column_List">
91 REMARK, REQUEST_PARAMETERS, RESULT 92 REMARK, REQUEST_PARAMETERS, RESULT
...@@ -151,15 +152,15 @@ ...@@ -151,15 +152,15 @@
151 URL, CREATE_TIME, CREATE_USER_ID, 152 URL, CREATE_TIME, CREATE_USER_ID,
152 CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, 153 CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID,
153 MODIFY_USER_NAME, REQUEST_TIME, RESPONSE_TIME, 154 MODIFY_USER_NAME, REQUEST_TIME, RESPONSE_TIME,
154 - EXCEUTE_CONSUME, REMARK, REQUEST_PARAMETERS, 155 + EXCEUTE_CONSUME, STATUS, REMARK,
155 - RESULT) 156 + REQUEST_PARAMETERS, RESULT)
156 values (#{id,jdbcType=NUMERIC}, #{userId,jdbcType=NUMERIC}, #{loginName,jdbcType=VARCHAR}, 157 values (#{id,jdbcType=NUMERIC}, #{userId,jdbcType=NUMERIC}, #{loginName,jdbcType=VARCHAR},
157 #{userName,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR}, #{describe,jdbcType=VARCHAR}, 158 #{userName,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR}, #{describe,jdbcType=VARCHAR},
158 #{url,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC}, 159 #{url,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC},
159 #{createUserName,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=NUMERIC}, 160 #{createUserName,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=NUMERIC},
160 #{modifyUserName,jdbcType=VARCHAR}, #{requestTime,jdbcType=TIMESTAMP}, #{responseTime,jdbcType=TIMESTAMP}, 161 #{modifyUserName,jdbcType=VARCHAR}, #{requestTime,jdbcType=TIMESTAMP}, #{responseTime,jdbcType=TIMESTAMP},
161 - #{exceuteConsume,jdbcType=NUMERIC}, #{remark,jdbcType=CLOB}, #{requestParameters,jdbcType=CLOB}, 162 + #{exceuteConsume,jdbcType=NUMERIC}, #{status,jdbcType=NUMERIC}, #{remark,jdbcType=CLOB},
162 - #{result,jdbcType=CLOB}) 163 + #{requestParameters,jdbcType=CLOB}, #{result,jdbcType=CLOB})
163 </insert> 164 </insert>
164 <insert id="insertSelective" parameterType="com.fedex.connect.common.model.log.OperationWithBLOBs"> 165 <insert id="insertSelective" parameterType="com.fedex.connect.common.model.log.OperationWithBLOBs">
165 <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long"> 166 <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
...@@ -213,6 +214,9 @@ ...@@ -213,6 +214,9 @@
213 <if test="exceuteConsume != null"> 214 <if test="exceuteConsume != null">
214 EXCEUTE_CONSUME, 215 EXCEUTE_CONSUME,
215 </if> 216 </if>
217 + <if test="status != null">
218 + STATUS,
219 + </if>
216 <if test="remark != null"> 220 <if test="remark != null">
217 REMARK, 221 REMARK,
218 </if> 222 </if>
...@@ -270,6 +274,9 @@ ...@@ -270,6 +274,9 @@
270 <if test="exceuteConsume != null"> 274 <if test="exceuteConsume != null">
271 #{exceuteConsume,jdbcType=NUMERIC}, 275 #{exceuteConsume,jdbcType=NUMERIC},
272 </if> 276 </if>
277 + <if test="status != null">
278 + #{status,jdbcType=NUMERIC},
279 + </if>
273 <if test="remark != null"> 280 <if test="remark != null">
274 #{remark,jdbcType=CLOB}, 281 #{remark,jdbcType=CLOB},
275 </if> 282 </if>
...@@ -338,6 +345,9 @@ ...@@ -338,6 +345,9 @@
338 <if test="record.exceuteConsume != null"> 345 <if test="record.exceuteConsume != null">
339 EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC}, 346 EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC},
340 </if> 347 </if>
348 + <if test="record.status != null">
349 + STATUS = #{record.status,jdbcType=NUMERIC},
350 + </if>
341 <if test="record.remark != null"> 351 <if test="record.remark != null">
342 REMARK = #{record.remark,jdbcType=CLOB}, 352 REMARK = #{record.remark,jdbcType=CLOB},
343 </if> 353 </if>
...@@ -370,6 +380,7 @@ ...@@ -370,6 +380,7 @@
370 REQUEST_TIME = #{record.requestTime,jdbcType=TIMESTAMP}, 380 REQUEST_TIME = #{record.requestTime,jdbcType=TIMESTAMP},
371 RESPONSE_TIME = #{record.responseTime,jdbcType=TIMESTAMP}, 381 RESPONSE_TIME = #{record.responseTime,jdbcType=TIMESTAMP},
372 EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC}, 382 EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC},
383 + STATUS = #{record.status,jdbcType=NUMERIC},
373 REMARK = #{record.remark,jdbcType=CLOB}, 384 REMARK = #{record.remark,jdbcType=CLOB},
374 REQUEST_PARAMETERS = #{record.requestParameters,jdbcType=CLOB}, 385 REQUEST_PARAMETERS = #{record.requestParameters,jdbcType=CLOB},
375 RESULT = #{record.result,jdbcType=CLOB} 386 RESULT = #{record.result,jdbcType=CLOB}
...@@ -394,7 +405,8 @@ ...@@ -394,7 +405,8 @@
394 MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR}, 405 MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR},
395 REQUEST_TIME = #{record.requestTime,jdbcType=TIMESTAMP}, 406 REQUEST_TIME = #{record.requestTime,jdbcType=TIMESTAMP},
396 RESPONSE_TIME = #{record.responseTime,jdbcType=TIMESTAMP}, 407 RESPONSE_TIME = #{record.responseTime,jdbcType=TIMESTAMP},
397 - EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC} 408 + EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC},
409 + STATUS = #{record.status,jdbcType=NUMERIC}
398 <if test="_parameter != null"> 410 <if test="_parameter != null">
399 <include refid="Update_By_Example_Where_Clause" /> 411 <include refid="Update_By_Example_Where_Clause" />
400 </if> 412 </if>
...@@ -447,6 +459,9 @@ ...@@ -447,6 +459,9 @@
447 <if test="exceuteConsume != null"> 459 <if test="exceuteConsume != null">
448 EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC}, 460 EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC},
449 </if> 461 </if>
462 + <if test="status != null">
463 + STATUS = #{status,jdbcType=NUMERIC},
464 + </if>
450 <if test="remark != null"> 465 <if test="remark != null">
451 REMARK = #{remark,jdbcType=CLOB}, 466 REMARK = #{remark,jdbcType=CLOB},
452 </if> 467 </if>
...@@ -476,6 +491,7 @@ ...@@ -476,6 +491,7 @@
476 REQUEST_TIME = #{requestTime,jdbcType=TIMESTAMP}, 491 REQUEST_TIME = #{requestTime,jdbcType=TIMESTAMP},
477 RESPONSE_TIME = #{responseTime,jdbcType=TIMESTAMP}, 492 RESPONSE_TIME = #{responseTime,jdbcType=TIMESTAMP},
478 EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC}, 493 EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC},
494 + STATUS = #{status,jdbcType=NUMERIC},
479 REMARK = #{remark,jdbcType=CLOB}, 495 REMARK = #{remark,jdbcType=CLOB},
480 REQUEST_PARAMETERS = #{requestParameters,jdbcType=CLOB}, 496 REQUEST_PARAMETERS = #{requestParameters,jdbcType=CLOB},
481 RESULT = #{result,jdbcType=CLOB} 497 RESULT = #{result,jdbcType=CLOB}
...@@ -497,7 +513,8 @@ ...@@ -497,7 +513,8 @@
497 MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR}, 513 MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR},
498 REQUEST_TIME = #{requestTime,jdbcType=TIMESTAMP}, 514 REQUEST_TIME = #{requestTime,jdbcType=TIMESTAMP},
499 RESPONSE_TIME = #{responseTime,jdbcType=TIMESTAMP}, 515 RESPONSE_TIME = #{responseTime,jdbcType=TIMESTAMP},
500 - EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC} 516 + EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC},
517 + STATUS = #{status,jdbcType=NUMERIC}
501 where ID = #{id,jdbcType=NUMERIC} 518 where ID = #{id,jdbcType=NUMERIC}
502 </update> 519 </update>
503 <sql id="OracleDialectPrefix"> 520 <sql id="OracleDialectPrefix">
......
...@@ -88,6 +88,11 @@ public class Operation implements Serializable { ...@@ -88,6 +88,11 @@ public class Operation implements Serializable {
88 */ 88 */
89 private Long exceuteConsume; 89 private Long exceuteConsume;
90 90
91 + /**
92 + * 状态(0:展示、1:不展示)
93 + */
94 + private Long status;
95 +
91 private static final long serialVersionUID = 1L; 96 private static final long serialVersionUID = 1L;
92 97
93 public Long getId() { 98 public Long getId() {
...@@ -218,6 +223,14 @@ public class Operation implements Serializable { ...@@ -218,6 +223,14 @@ public class Operation implements Serializable {
218 this.exceuteConsume = exceuteConsume; 223 this.exceuteConsume = exceuteConsume;
219 } 224 }
220 225
226 + public Long getStatus() {
227 + return status;
228 + }
229 +
230 + public void setStatus(Long status) {
231 + this.status = status;
232 + }
233 +
221 @Override 234 @Override
222 public String toString() { 235 public String toString() {
223 StringBuilder sb = new StringBuilder(); 236 StringBuilder sb = new StringBuilder();
...@@ -240,6 +253,7 @@ public class Operation implements Serializable { ...@@ -240,6 +253,7 @@ public class Operation implements Serializable {
240 sb.append(", requestTime=").append(requestTime); 253 sb.append(", requestTime=").append(requestTime);
241 sb.append(", responseTime=").append(responseTime); 254 sb.append(", responseTime=").append(responseTime);
242 sb.append(", exceuteConsume=").append(exceuteConsume); 255 sb.append(", exceuteConsume=").append(exceuteConsume);
256 + sb.append(", status=").append(status);
243 sb.append(", serialVersionUID=").append(serialVersionUID); 257 sb.append(", serialVersionUID=").append(serialVersionUID);
244 sb.append("]"); 258 sb.append("]");
245 return sb.toString(); 259 return sb.toString();
......
...@@ -1154,6 +1154,66 @@ public class OperationExample { ...@@ -1154,6 +1154,66 @@ public class OperationExample {
1154 addCriterion("EXCEUTE_CONSUME not between", value1, value2, "exceuteConsume"); 1154 addCriterion("EXCEUTE_CONSUME not between", value1, value2, "exceuteConsume");
1155 return (Criteria) this; 1155 return (Criteria) this;
1156 } 1156 }
1157 +
1158 + public Criteria andStatusIsNull() {
1159 + addCriterion("STATUS is null");
1160 + return (Criteria) this;
1161 + }
1162 +
1163 + public Criteria andStatusIsNotNull() {
1164 + addCriterion("STATUS is not null");
1165 + return (Criteria) this;
1166 + }
1167 +
1168 + public Criteria andStatusEqualTo(Long value) {
1169 + addCriterion("STATUS =", value, "status");
1170 + return (Criteria) this;
1171 + }
1172 +
1173 + public Criteria andStatusNotEqualTo(Long value) {
1174 + addCriterion("STATUS <>", value, "status");
1175 + return (Criteria) this;
1176 + }
1177 +
1178 + public Criteria andStatusGreaterThan(Long value) {
1179 + addCriterion("STATUS >", value, "status");
1180 + return (Criteria) this;
1181 + }
1182 +
1183 + public Criteria andStatusGreaterThanOrEqualTo(Long value) {
1184 + addCriterion("STATUS >=", value, "status");
1185 + return (Criteria) this;
1186 + }
1187 +
1188 + public Criteria andStatusLessThan(Long value) {
1189 + addCriterion("STATUS <", value, "status");
1190 + return (Criteria) this;
1191 + }
1192 +
1193 + public Criteria andStatusLessThanOrEqualTo(Long value) {
1194 + addCriterion("STATUS <=", value, "status");
1195 + return (Criteria) this;
1196 + }
1197 +
1198 + public Criteria andStatusIn(List<Long> values) {
1199 + addCriterion("STATUS in", values, "status");
1200 + return (Criteria) this;
1201 + }
1202 +
1203 + public Criteria andStatusNotIn(List<Long> values) {
1204 + addCriterion("STATUS not in", values, "status");
1205 + return (Criteria) this;
1206 + }
1207 +
1208 + public Criteria andStatusBetween(Long value1, Long value2) {
1209 + addCriterion("STATUS between", value1, value2, "status");
1210 + return (Criteria) this;
1211 + }
1212 +
1213 + public Criteria andStatusNotBetween(Long value1, Long value2) {
1214 + addCriterion("STATUS not between", value1, value2, "status");
1215 + return (Criteria) this;
1216 + }
1157 } 1217 }
1158 1218
1159 public static class Criteria extends GeneratedCriteria { 1219 public static class Criteria extends GeneratedCriteria {
......