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
e1107400
Commit
e1107400
authored
Dec 20, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化ugp接口
parent
024d282c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
CompanyServiceImpl.java
.../boot/module/ugp/biz/service/impl/CompanyServiceImpl.java
+2
-0
TaskServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/TaskServiceImpl.java
+5
-3
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/CompanyServiceImpl.java
View file @
e1107400
...
...
@@ -283,8 +283,10 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
}
SuperviseRule
superviseRule
=
superviseRuleService
.
getOne
(
new
LambdaQueryWrapper
<
SuperviseRule
>().
eq
(
SuperviseRule:
:
getAdminRegionCode
,
regionCode
));
List
<
Long
>
unitIds
=
new
ArrayList
<>();
if
(!
ValidationUtil
.
isEmpty
(
superviseRule
))
{
unitIds
.
add
(
superviseRule
.
getSuperviseDeptId
());
unitIds
.
add
(
superviseRule
.
getInspectionUnitId
());
}
//新增企业审核任务信息
taskService
.
saveOrUpdateTask
(
null
,
true
,
TaskTypeEnum
.
企业审核
.
getKey
(),
new
Date
(),
model
.
getSequenceNbr
(),
TaskTypeEnum
.
企业审核
.
getKey
(),
unitIds
);
return
this
.
updateById
(
company
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/TaskServiceImpl.java
View file @
e1107400
...
...
@@ -52,8 +52,9 @@ public class TaskServiceImpl extends BaseService<TaskDto, Task, TaskMapper> impl
* @Param sequenceNbr 项目/问题处置的sequenceNbr
* @return
*/
public
void
saveOrUpdateTask
(
String
InitiationStatus
,
boolean
status
,
String
taskType
,
Date
sendTime
,
Long
sourceId
,
String
type
,
List
<
Long
>
unitIds
){
for
(
Long
unitId:
unitIds
)
{
public
void
saveOrUpdateTask
(
String
InitiationStatus
,
boolean
status
,
String
taskType
,
Date
sendTime
,
Long
sourceId
,
String
type
,
List
<
Long
>
unitIds
)
{
if
(!
ValidationUtil
.
isEmpty
(
unitIds
))
{
for
(
Long
unitId
:
unitIds
)
{
Task
task
=
new
Task
();
String
title
=
""
,
taskStatus
=
""
;
task
.
setTaskType
(
taskType
);
...
...
@@ -101,7 +102,7 @@ public class TaskServiceImpl extends BaseService<TaskDto, Task, TaskMapper> impl
.
eq
(
Task:
:
getSourceId
,
sourceId
)
.
eq
(
Task:
:
getUnitId
,
unitId
);
task
=
this
.
getOne
(
wrapper
);
if
(
ValidationUtil
.
isEmpty
(
task
))
{
if
(
ValidationUtil
.
isEmpty
(
task
))
{
return
;
}
task
.
setStatusLabel
(
TaskTypeEnum
.
已办
.
getName
());
...
...
@@ -115,4 +116,5 @@ public class TaskServiceImpl extends BaseService<TaskDto, Task, TaskMapper> impl
this
.
saveOrUpdate
(
task
);
}
}
}
}
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