Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
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
竹天卫
tianjin-cement
Commits
983dfefe
Commit
983dfefe
authored
Oct 28, 2020
by
竹天卫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.203.232.171:8888/zhutianwei/tianjin-cement
parents
f635f02d
7dadbf06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
28 deletions
+33
-28
PlanTrainingServiceImpl.java
...cement/business/service/impl/PlanTrainingServiceImpl.java
+31
-26
application.yml
cement-business/src/main/resources/application.yml
+2
-2
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/PlanTrainingServiceImpl.java
View file @
983dfefe
...
...
@@ -159,11 +159,12 @@ public class PlanTrainingServiceImpl extends ServiceImpl<PlanTrainingMapper, Pla
boolean
remove
=
iPlantPeopleService
.
remove
(
qw
);
if
(
remove
)
{
Integer
planId
=
update
.
getId
();
List
<
PlanPeople
>
batchAdd
=
new
ArrayList
<>();
//todo 培训关联表对象 ==>plant + 基本用户信息
//拆分用户id
String
userIds
=
planTrainingQuery
.
getUserIds
();
String
[]
split
=
userIds
.
split
(
"、"
);
List
<
PlanPeople
>
batchAdd
=
new
ArrayList
<>();
if
(
planTrainingQuery
.
getUserIds
()!=
null
)
{
//为每个用户id创建关联表信息s
for
(
String
userId
:
split
)
{
Integer
id
=
Integer
.
parseInt
(
userId
);
...
...
@@ -178,7 +179,9 @@ public class PlanTrainingServiceImpl extends ServiceImpl<PlanTrainingMapper, Pla
batchAdd
.
add
(
planPeople
);
update
.
setPlanObject
(
update
.
getPlanObject
()
+
user
.
getName
()
+
"、"
);
}
}
if
(
planTrainingQuery
.
getGroupIds
()!=
null
)
{
//传的GroupIds
String
groupIds
=
planTrainingQuery
.
getGroupIds
();
String
[]
split1
=
groupIds
.
split
(
"、"
);
...
...
@@ -197,6 +200,8 @@ public class PlanTrainingServiceImpl extends ServiceImpl<PlanTrainingMapper, Pla
planPeople
.
setGroupId
(
user
.
getGroupId
());
batchAdd
.
add
(
planPeople
);
update
.
setPlanObject
(
update
.
getPlanObject
()
+
user
.
getName
()
+
"、"
);
}
}
}
iPlantPeopleService
.
saveBatch
(
batchAdd
);
...
...
cement-business/src/main/resources/application.yml
View file @
983dfefe
...
...
@@ -7,8 +7,8 @@ spring:
active
:
dev
datasource
:
# 192.168.110.85 admin!@#123
#
url: jdbc:mysql://192.168.110.85:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
url
:
jdbc:mysql://81.68.92.175:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
url
:
jdbc:mysql://192.168.110.85:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
#
url: jdbc:mysql://81.68.92.175:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
username
:
root
password
:
admin!@#123
driverClassName
:
com.mysql.cj.jdbc.Driver
...
...
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