Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
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
base_platform_enterprise
gic-platform-enterprise
Commits
484a8d17
Commit
484a8d17
authored
May 21, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置表
parent
93157098
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
CustomSettingApiServiceImpl.java
...prise/service/outer/impl/CustomSettingApiServiceImpl.java
+5
-4
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/CustomSettingApiServiceImpl.java
View file @
484a8d17
...
...
@@ -21,10 +21,7 @@ import org.apache.logging.log4j.Logger;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.util.*
;
@Service
(
"customSettingApiService"
)
public
class
CustomSettingApiServiceImpl
implements
CustomSettingApiService
{
...
...
@@ -75,14 +72,18 @@ public class CustomSettingApiServiceImpl implements CustomSettingApiService {
}
}
log
.
info
(
"params:{}"
,
JSON
.
toJSONString
(
map
));
Date
date
=
new
Date
();
if
(
map
.
get
(
PRIMARYKEY
)
!=
null
){
//更新
map
.
put
(
"update_time"
,
date
);
MongoUpdateDTO
mongoUpdateDTO
=
new
MongoUpdateDTO
();
mongoUpdateDTO
.
setDataBaseAndCollectionName
(
DATABASENAME
,
tableName
);
mongoUpdateDTO
.
setData
(
map
);
ServiceResponse
<
Integer
>
update
=
mongoOperApiService
.
update
(
mongoUpdateDTO
);
log
.
info
(
"update:{}"
,
JSON
.
toJSONString
(
update
));
}
else
{
map
.
put
(
"update_time"
,
date
);
map
.
put
(
"create_time"
,
date
);
MongoSaveDTO
mongoSaveDTO
=
new
MongoSaveDTO
();
mongoSaveDTO
.
setDataBaseAndCollectionName
(
DATABASENAME
,
tableName
);
mongoSaveDTO
.
setData
(
map
);
...
...
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