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
e4d99c34
Commit
e4d99c34
authored
Nov 08, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目立项流程修改
parent
c9ee68e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
ProblemInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProblemInitiationServiceImpl.java
+12
-10
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProblemInitiationServiceImpl.java
View file @
e4d99c34
...
@@ -64,10 +64,10 @@ public class ProblemInitiationServiceImpl {
...
@@ -64,10 +64,10 @@ public class ProblemInitiationServiceImpl {
@Value
(
"${params.work.flow.problemDefinitionKey}"
)
@Value
(
"${params.work.flow.problemDefinitionKey}"
)
private
String
problemDefinitionKey
;
private
String
problemDefinitionKey
;
@Value
(
"
supervisionRoleId
"
)
@Value
(
"
${supervisionRoleId}
"
)
private
String
supervisionRoleId
;
private
String
supervisionRoleId
;
@Value
(
"
installationRoleId
"
)
@Value
(
"
${installationRoleId}
"
)
private
String
installationRoleId
;
private
String
installationRoleId
;
public
String
start
(
QualityProblem
qualityProblem
)
{
public
String
start
(
QualityProblem
qualityProblem
)
{
...
@@ -192,15 +192,17 @@ public class ProblemInitiationServiceImpl {
...
@@ -192,15 +192,17 @@ public class ProblemInitiationServiceImpl {
public
void
sendMessage
(
Long
sequenceNbr
,
String
noticeUnitId
,
HashMap
<
String
,
String
>
smsParams
,
String
smsCode
,
String
roleId
){
public
void
sendMessage
(
Long
sequenceNbr
,
String
noticeUnitId
,
HashMap
<
String
,
String
>
smsParams
,
String
smsCode
,
String
roleId
){
//向noticeUnitId的部门发送短信
//向noticeUnitId的部门发送短信
List
<
AgencyUserModel
>
agencyUserModelList
=
Privilege
.
agencyUserClient
.
queryByRoleId
(
roleId
,
null
).
getResult
();
List
<
AgencyUserModel
>
agencyUserModelList
=
Privilege
.
agencyUserClient
.
queryByRoleId
(
roleId
,
null
).
getResult
();
List
<
AgencyUserModel
>
companyUserModelList
=
Privilege
.
agencyUserClient
.
queryByCompanyId
(
Long
.
valueOf
(
noticeUnitId
),
null
,
null
,
null
).
getResult
();
Map
<
String
,
AgencyUserModel
>
map
=
new
HashMap
<>();
for
(
AgencyUserModel
agencyUserModel
:
companyUserModelList
)
{
map
.
put
(
agencyUserModel
.
getUserId
(),
agencyUserModel
);
}
//遍历用户List,拿到用户手机号、userId,来发短信、存短信日志。
//遍历用户List,拿到用户手机号、userId,来发短信、存短信日志。
for
(
AgencyUserModel
agencyUserModel
:
agencyUserModelList
)
{
for
(
AgencyUserModel
agencyUserModel
:
agencyUserModelList
)
{
boolean
bool
=
false
;
boolean
bool
=
false
;
List
<
CompanyModel
>
companyModelList
=
agencyUserModel
.
getCompanys
();
if
(!
ValidationUtil
.
isEmpty
(
map
.
get
(
agencyUserModel
.
getUserId
()))){
for
(
CompanyModel
companyModel
:
companyModelList
)
{
bool
=
true
;
bool
=
companyModel
.
getSequenceNbr
().
equals
(
noticeUnitId
);
if
(
bool
){
break
;
}
}
}
if
(
bool
)
{
if
(
bool
)
{
...
@@ -224,8 +226,8 @@ public class ProblemInitiationServiceImpl {
...
@@ -224,8 +226,8 @@ public class ProblemInitiationServiceImpl {
InstallNoticeMsg
installNoticeMsg
=
new
InstallNoticeMsg
();
InstallNoticeMsg
installNoticeMsg
=
new
InstallNoticeMsg
();
installNoticeMsg
.
setContent
(
smsRecordModel
.
getSmsContent
());
installNoticeMsg
.
setContent
(
smsRecordModel
.
getSmsContent
());
installNoticeMsg
.
setInstallNoticeId
(
smsRecordModel
.
getSequenceNbr
());
installNoticeMsg
.
setInstallNoticeId
(
smsRecordModel
.
getSequenceNbr
());
installNoticeMsg
.
setTargetUnitId
(
Long
.
valueOf
(
smsRecordModel
.
getAgencyCode
()
));
installNoticeMsg
.
setTargetUnitId
(
Long
.
valueOf
(
noticeUnitId
));
installNoticeMsg
.
setTargetPersonId
(
Long
.
valueOf
(
agencyUserModel
.
getUserId
()
));
installNoticeMsg
.
setTargetPersonId
(
orgUsrServiceImpl
.
getOne
(
wrapperQueryWrapper
).
getSequenceNbr
(
));
installNoticeMsg
.
setSendTime
(
smsRecordModel
.
getSendTime
());
installNoticeMsg
.
setSendTime
(
smsRecordModel
.
getSendTime
());
installNoticeMsgService
.
save
(
installNoticeMsg
);
installNoticeMsgService
.
save
(
installNoticeMsg
);
}
}
...
...
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