Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-Connect-Pre-Clearance
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tao.mo
2025-01-13 18:38:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4ea3ebe15d7c28a032f3a89e1ba0cbea3b5cd10c
4ea3ebe1
1 parent
0eb6ad1e
common-dao | 修改 | 操作日志类型调整
mt 2025年1月13日18:38:16
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
7 deletions
server/common-dao/src/main/java/com/fedex/connect/common/mapper/log/OperationMapper.xml
server/common-dao/src/main/java/com/fedex/connect/common/model/log/Operation.java
server/common-dao/src/main/java/com/fedex/connect/common/model/log/OperationExample.java
server/common-dao/src/main/java/com/fedex/connect/common/mapper/log/OperationMapper.xml
View file @
4ea3ebe
...
...
@@ -18,6 +18,7 @@
<result
column=
"REQUEST_TIME"
jdbcType=
"TIMESTAMP"
property=
"requestTime"
/>
<result
column=
"RESPONSE_TIME"
jdbcType=
"TIMESTAMP"
property=
"responseTime"
/>
<result
column=
"EXCEUTE_CONSUME"
jdbcType=
"NUMERIC"
property=
"exceuteConsume"
/>
<result
column=
"STATUS"
jdbcType=
"NUMERIC"
property=
"status"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.fedex.connect.common.model.log.OperationWithBLOBs"
>
<result
column=
"REMARK"
jdbcType=
"CLOB"
property=
"remark"
/>
...
...
@@ -85,7 +86,7 @@
<sql
id=
"Base_Column_List"
>
ID, USER_ID, LOGIN_NAME, USER_NAME, MODULE, DESCRIBE, URL, CREATE_TIME, CREATE_USER_ID,
CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME, REQUEST_TIME, RESPONSE_TIME,
EXCEUTE_CONSUME
EXCEUTE_CONSUME
, STATUS
</sql>
<sql
id=
"Blob_Column_List"
>
REMARK, REQUEST_PARAMETERS, RESULT
...
...
@@ -151,15 +152,15 @@
URL, CREATE_TIME, CREATE_USER_ID,
CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID,
MODIFY_USER_NAME, REQUEST_TIME, RESPONSE_TIME,
EXCEUTE_CONSUME,
REMARK, REQUEST_PARAMETERS
,
RESULT)
EXCEUTE_CONSUME,
STATUS, REMARK
,
RE
QUEST_PARAMETERS, RE
SULT)
values (#{id,jdbcType=NUMERIC}, #{userId,jdbcType=NUMERIC}, #{loginName,jdbcType=VARCHAR},
#{userName,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR}, #{describe,jdbcType=VARCHAR},
#{url,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC},
#{createUserName,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=NUMERIC},
#{modifyUserName,jdbcType=VARCHAR}, #{requestTime,jdbcType=TIMESTAMP}, #{responseTime,jdbcType=TIMESTAMP},
#{exceuteConsume,jdbcType=NUMERIC}, #{
remark,jdbcType=CLOB}, #{requestParameters
,jdbcType=CLOB},
#{result,jdbcType=CLOB})
#{exceuteConsume,jdbcType=NUMERIC}, #{
status,jdbcType=NUMERIC}, #{remark
,jdbcType=CLOB},
#{re
questParameters,jdbcType=CLOB}, #{re
sult,jdbcType=CLOB})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.fedex.connect.common.model.log.OperationWithBLOBs"
>
<selectKey
keyProperty=
"id"
order=
"BEFORE"
resultType=
"java.lang.Long"
>
...
...
@@ -213,6 +214,9 @@
<if
test=
"exceuteConsume != null"
>
EXCEUTE_CONSUME,
</if>
<if
test=
"status != null"
>
STATUS,
</if>
<if
test=
"remark != null"
>
REMARK,
</if>
...
...
@@ -270,6 +274,9 @@
<if
test=
"exceuteConsume != null"
>
#{exceuteConsume,jdbcType=NUMERIC},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=NUMERIC},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=CLOB},
</if>
...
...
@@ -338,6 +345,9 @@
<if
test=
"record.exceuteConsume != null"
>
EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC},
</if>
<if
test=
"record.status != null"
>
STATUS = #{record.status,jdbcType=NUMERIC},
</if>
<if
test=
"record.remark != null"
>
REMARK = #{record.remark,jdbcType=CLOB},
</if>
...
...
@@ -370,6 +380,7 @@
REQUEST_TIME = #{record.requestTime,jdbcType=TIMESTAMP},
RESPONSE_TIME = #{record.responseTime,jdbcType=TIMESTAMP},
EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC},
STATUS = #{record.status,jdbcType=NUMERIC},
REMARK = #{record.remark,jdbcType=CLOB},
REQUEST_PARAMETERS = #{record.requestParameters,jdbcType=CLOB},
RESULT = #{record.result,jdbcType=CLOB}
...
...
@@ -394,7 +405,8 @@
MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR},
REQUEST_TIME = #{record.requestTime,jdbcType=TIMESTAMP},
RESPONSE_TIME = #{record.responseTime,jdbcType=TIMESTAMP},
EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC}
EXCEUTE_CONSUME = #{record.exceuteConsume,jdbcType=NUMERIC},
STATUS = #{record.status,jdbcType=NUMERIC}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -447,6 +459,9 @@
<if
test=
"exceuteConsume != null"
>
EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC},
</if>
<if
test=
"status != null"
>
STATUS = #{status,jdbcType=NUMERIC},
</if>
<if
test=
"remark != null"
>
REMARK = #{remark,jdbcType=CLOB},
</if>
...
...
@@ -476,6 +491,7 @@
REQUEST_TIME = #{requestTime,jdbcType=TIMESTAMP},
RESPONSE_TIME = #{responseTime,jdbcType=TIMESTAMP},
EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC},
STATUS = #{status,jdbcType=NUMERIC},
REMARK = #{remark,jdbcType=CLOB},
REQUEST_PARAMETERS = #{requestParameters,jdbcType=CLOB},
RESULT = #{result,jdbcType=CLOB}
...
...
@@ -497,7 +513,8 @@
MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR},
REQUEST_TIME = #{requestTime,jdbcType=TIMESTAMP},
RESPONSE_TIME = #{responseTime,jdbcType=TIMESTAMP},
EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC}
EXCEUTE_CONSUME = #{exceuteConsume,jdbcType=NUMERIC},
STATUS = #{status,jdbcType=NUMERIC}
where ID = #{id,jdbcType=NUMERIC}
</update>
<sql
id=
"OracleDialectPrefix"
>
...
...
server/common-dao/src/main/java/com/fedex/connect/common/model/log/Operation.java
View file @
4ea3ebe
...
...
@@ -88,6 +88,11 @@ public class Operation implements Serializable {
*/
private
Long
exceuteConsume
;
/**
* 状态(0:展示、1:不展示)
*/
private
Long
status
;
private
static
final
long
serialVersionUID
=
1L
;
public
Long
getId
()
{
...
...
@@ -218,6 +223,14 @@ public class Operation implements Serializable {
this
.
exceuteConsume
=
exceuteConsume
;
}
public
Long
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Long
status
)
{
this
.
status
=
status
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
...
...
@@ -240,6 +253,7 @@ public class Operation implements Serializable {
sb
.
append
(
", requestTime="
).
append
(
requestTime
);
sb
.
append
(
", responseTime="
).
append
(
responseTime
);
sb
.
append
(
", exceuteConsume="
).
append
(
exceuteConsume
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
...
...
server/common-dao/src/main/java/com/fedex/connect/common/model/log/OperationExample.java
View file @
4ea3ebe
...
...
@@ -1154,6 +1154,66 @@ public class OperationExample {
addCriterion
(
"EXCEUTE_CONSUME not between"
,
value1
,
value2
,
"exceuteConsume"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIsNull
()
{
addCriterion
(
"STATUS is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIsNotNull
()
{
addCriterion
(
"STATUS is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusEqualTo
(
Long
value
)
{
addCriterion
(
"STATUS ="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotEqualTo
(
Long
value
)
{
addCriterion
(
"STATUS <>"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThan
(
Long
value
)
{
addCriterion
(
"STATUS >"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"STATUS >="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThan
(
Long
value
)
{
addCriterion
(
"STATUS <"
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"STATUS <="
,
value
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusIn
(
List
<
Long
>
values
)
{
addCriterion
(
"STATUS in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"STATUS not in"
,
values
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"STATUS between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStatusNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"STATUS not between"
,
value1
,
value2
,
"status"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
Please
register
or
login
to post a comment