Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
ec11bb66
Commit
ec11bb66
authored
Mar 31, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(安全问题追踪): 修复更新操作中的创建日期问题
- 在执行更新操作时,将实体的创建日期设置为 null - 这样可以避免在更新记录时错误地修改创建日期字段
parent
bdf92760
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
SafetyProblemTracingServiceImpl.java
.../jg/biz/service/impl/SafetyProblemTracingServiceImpl.java
+1
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/SafetyProblemTracingServiceImpl.java
View file @
ec11bb66
...
@@ -212,6 +212,7 @@ public class SafetyProblemTracingServiceImpl extends BaseService<SafetyProblemTr
...
@@ -212,6 +212,7 @@ public class SafetyProblemTracingServiceImpl extends BaseService<SafetyProblemTr
batchSqlSession
.
insert
(
sqlStatement
(
SqlMethod
.
INSERT_ONE
),
entity
);
batchSqlSession
.
insert
(
sqlStatement
(
SqlMethod
.
INSERT_ONE
),
entity
);
}
else
{
}
else
{
Map
<
String
,
Object
>
param
=
Maps
.
newHashMap
();
Map
<
String
,
Object
>
param
=
Maps
.
newHashMap
();
entity
.
setCreateDate
(
null
);
param
.
put
(
Constants
.
ENTITY
,
entity
);
param
.
put
(
Constants
.
ENTITY
,
entity
);
param
.
put
(
Constants
.
WRAPPER
,
queryWrapperFunction
.
apply
(
entity
));
param
.
put
(
Constants
.
WRAPPER
,
queryWrapperFunction
.
apply
(
entity
));
batchSqlSession
.
update
(
sqlStatement
(
SqlMethod
.
UPDATE
),
param
);
batchSqlSession
.
update
(
sqlStatement
(
SqlMethod
.
UPDATE
),
param
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment