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
20978507
Commit
20978507
authored
May 24, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置表
parent
f2256ee2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CustomSettingApiServiceImpl.java
...prise/service/outer/impl/CustomSettingApiServiceImpl.java
+3
-3
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/CustomSettingApiServiceImpl.java
View file @
20978507
...
...
@@ -28,7 +28,7 @@ import java.util.*;
public
class
CustomSettingApiServiceImpl
implements
CustomSettingApiService
{
private
static
final
Logger
log
=
LogManager
.
getLogger
(
CustomSettingApiServiceImpl
.
class
);
private
static
final
String
DATABASENAME
=
"custom_table"
;
private
static
final
String
PRIMARYKEY
=
"
_
id"
;
private
static
final
String
PRIMARYKEY
=
"id"
;
@Autowired
private
MongoOperApiService
mongoOperApiService
;
@Autowired
...
...
@@ -78,7 +78,7 @@ public class CustomSettingApiServiceImpl implements CustomSettingApiService {
//更新
map
.
put
(
"update_time"
,
date
);
MongoUpdateDTO
mongoUpdateDTO
=
new
MongoUpdateDTO
();
mongoUpdateDTO
.
setDataBaseAndCollectionName
(
DATABASENAME
,
tableName
);
mongoUpdateDTO
.
setDataBaseAndCollectionName
(
DATABASENAME
,
tableName
,
PRIMARYKEY
);
mongoUpdateDTO
.
setData
(
map
);
ServiceResponse
<
Integer
>
update
=
mongoOperApiService
.
update
(
mongoUpdateDTO
);
log
.
info
(
"update:{},{}"
,
JSON
.
toJSONString
(
map
),
JSON
.
toJSONString
(
update
));
...
...
@@ -87,7 +87,7 @@ public class CustomSettingApiServiceImpl implements CustomSettingApiService {
map
.
put
(
"create_time"
,
date
);
MongoSaveDTO
mongoSaveDTO
=
new
MongoSaveDTO
();
map
.
put
(
PRIMARYKEY
,
ToolUtil
.
randomUUID
());
mongoSaveDTO
.
setDataBaseAndCollectionName
(
DATABASENAME
,
tableName
);
mongoSaveDTO
.
setDataBaseAndCollectionName
(
DATABASENAME
,
tableName
,
PRIMARYKEY
);
mongoSaveDTO
.
setData
(
map
);
ServiceResponse
<
String
>
save
=
mongoOperApiService
.
save
(
mongoSaveDTO
);
log
.
info
(
"save:{}"
,
JSON
.
toJSONString
(
save
));
...
...
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