Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
a3310810
Commit
a3310810
authored
Jul 13, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issues about create new db
parent
a2cde1f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
37 deletions
+37
-37
OrganizationServiceImpl.java
...wc/taxtech/atms/service/impl/OrganizationServiceImpl.java
+36
-36
CreateProjectDB.sql
...main/resources/RuntimeDbScripts/MYSQL/CreateProjectDB.sql
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationServiceImpl.java
View file @
a3310810
...
...
@@ -2609,42 +2609,42 @@ public class OrganizationServiceImpl implements OrganizationService {
// addLogList.add(updateLogParams);
// }
for
(
OrganizationServiceTemplateGroup
item
:
updates
)
{
OrganizationServiceTemplateGroup
current
=
currentList
.
stream
()
.
filter
(
sa
->
Strings
.
equals
(
sa
.
getServiceTypeId
(),
item
.
getServiceTypeId
())).
findFirst
()
.
orElse
(
null
);
if
(
current
!=
null
)
{
ServiceType
tService
=
queryService
.
stream
()
.
filter
(
sa
->
Strings
.
equals
(
sa
.
getID
(),
item
.
getServiceTypeId
())).
findFirst
().
orElse
(
null
);
Assert
.
notNull
(
tService
,
"tService null exception in updateOrganizationServiceTemplateGroupLog"
);
String
serviceName
=
tService
.
getName
();
TemplateGroup
updateTemplate
=
queryTemplate
.
stream
()
.
filter
(
sa
->
Long
.
compare
(
sa
.
getId
(),
item
.
getTemplateGroupId
())==
0
).
findFirst
().
orElse
(
null
);
Assert
.
notNull
(
updateTemplate
,
"updateTemplate null exception in updateOrganizationServiceTemplateGroupLog"
);
String
updateStr
=
updateTemplate
.
getName
();
TemplateGroup
currentTemplate
=
queryTemplate
.
stream
()
.
filter
(
sa
->
Long
.
compare
(
sa
.
getId
(),
current
.
getTemplateGroupId
())==
0
).
findFirst
()
.
orElse
(
null
);
Assert
.
notNull
(
currentTemplate
,
"currentTemplate null exception in updateOrganizationServiceTemplateGroupLog"
);
String
currentStr
=
currentTemplate
.
getName
();
UpdateLogParams
updateLogParams
=
new
UpdateLogParams
();
updateLogParams
.
setUpdateState
(
updateStr
);
updateLogParams
.
setOriginalState
(
currentStr
);
updateLogParams
.
setOperationContent
(
OrganizationMessage
.
OrganizationServiceTemplateGroup
);
updateLogParams
.
setOperationObject
(
operateObject
+
DashSignSeparator
+
serviceName
);
updateLogParams
.
setOperationModule
(
OperationModule
.
Organization
.
value
());
updateLogParams
.
setOperateLogType
(
OperateLogType
.
OperationLogOrganization
.
value
());
updateLogParams
.
setComment
(
""
);
updateLogParams
.
setOperationAction
(
OperationAction
.
Update
.
value
());
addLogList
.
add
(
updateLogParams
);
}
}
//
for (OrganizationServiceTemplateGroup item : updates) {
//
OrganizationServiceTemplateGroup current = currentList.stream()
//
.filter(sa -> Strings.equals(sa.getServiceTypeId(), item.getServiceTypeId())).findFirst()
//
.orElse(null);
//
if (current != null) {
//
ServiceType tService = queryService.stream()
//
.filter(sa -> Strings.equals(sa.getID(), item.getServiceTypeId())).findFirst().orElse(null);
//
Assert.notNull(tService, "tService null exception in updateOrganizationServiceTemplateGroupLog");
//
String serviceName = tService.getName();
//
//
TemplateGroup updateTemplate = queryTemplate.stream()
//
.filter(sa -> Long.compare(sa.getId(), item.getTemplateGroupId())==0).findFirst().orElse(null);
//
Assert.notNull(updateTemplate,
//
"updateTemplate null exception in updateOrganizationServiceTemplateGroupLog");
//
String updateStr = updateTemplate.getName();
//
//
TemplateGroup currentTemplate = queryTemplate.stream()
//
.filter(sa -> Long.compare(sa.getId(), current.getTemplateGroupId())==0).findFirst()
//
.orElse(null);
//
Assert.notNull(currentTemplate,
//
"currentTemplate null exception in updateOrganizationServiceTemplateGroupLog");
//
String currentStr = currentTemplate.getName();
//
//
UpdateLogParams updateLogParams = new UpdateLogParams();
//
updateLogParams.setUpdateState(updateStr);
//
updateLogParams.setOriginalState(currentStr);
//
updateLogParams.setOperationContent(OrganizationMessage.OrganizationServiceTemplateGroup);
//
updateLogParams.setOperationObject(operateObject + DashSignSeparator + serviceName);
//
updateLogParams.setOperationModule(OperationModule.Organization.value());
//
updateLogParams.setOperateLogType(OperateLogType.OperationLogOrganization.value());
//
updateLogParams.setComment("");
//
updateLogParams.setOperationAction(OperationAction.Update.value());
//
addLogList.add(updateLogParams);
//
}
//
//
}
operationLogService
.
addOrDeleteDataAddLog
(
addLogList
);
}
...
...
atms-api/src/main/resources/RuntimeDbScripts/MYSQL/CreateProjectDB.sql
View file @
a3310810
...
...
@@ -1122,7 +1122,7 @@ CREATE TABLE IF NOT EXISTS `DBKeyword_ProjectDbName`.`modified_report_cell` (
`create_by`
varchar
(
128
)
NOT
NULL
,
`update_by`
varchar
(
128
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
Insert
INTO
EnterpriseAccount
SELECT
...
...
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