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
705f4d35
Commit
705f4d35
authored
Dec 02, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改已办待办接口
parent
45392c42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
TaskController.java
...n/amos/boot/module/ugp/biz/controller/TaskController.java
+12
-2
TaskServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/TaskServiceImpl.java
+4
-4
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/TaskController.java
View file @
705f4d35
...
@@ -16,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -16,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
@@ -146,12 +147,21 @@ public class TaskController {
...
@@ -146,12 +147,21 @@ public class TaskController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/getTaskList"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getTaskList"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取当前登录人的所有任务列表"
,
notes
=
"获取当前登录人的所有任务列表"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取当前登录人的所有任务列表"
,
notes
=
"获取当前登录人的所有任务列表"
)
public
ResponseModel
<
Page
<
TaskDto
>>
getTaskList
(
@RequestParam
(
"status"
)
String
type
,
Long
current
,
Long
size
){
public
ResponseModel
<
Page
<
TaskDto
>>
getTaskList
(
@RequestParam
(
value
=
"status"
,
required
=
false
)
String
type
,
Long
current
,
Long
size
){
Page
page
=
new
Page
(
current
,
size
);
Page
page
=
new
Page
(
current
,
size
);
List
<
TaskDto
>
taskDtoList
=
new
ArrayList
<>();
List
<
TaskDto
>
taskDtoList
=
new
ArrayList
<>();
boolean
status
=
false
;
if
(
ValidationUtil
.
isEmpty
(
type
)){
type
=
TaskTypeEnum
.
待办
.
getKey
();
status
=
true
;
}
if
(
TaskTypeEnum
.
待办
.
getKey
().
equals
(
type
)){
if
(
TaskTypeEnum
.
待办
.
getKey
().
equals
(
type
)){
taskDtoList
.
addAll
(
iTzUgpTaskService
.
unDoneTask
());
taskDtoList
.
addAll
(
iTzUgpTaskService
.
unDoneTask
());
}
else
{
if
(
status
){
type
=
TaskTypeEnum
.
已办
.
getKey
();
}
}
if
(
TaskTypeEnum
.
已办
.
getKey
().
equals
(
type
)){
taskDtoList
.
addAll
(
iTzUgpTaskService
.
doneTask
());
taskDtoList
.
addAll
(
iTzUgpTaskService
.
doneTask
());
}
}
page
.
setRecords
(
taskDtoList
);
page
.
setRecords
(
taskDtoList
);
...
...
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 @
705f4d35
...
@@ -222,25 +222,25 @@ public class TaskServiceImpl extends BaseService<TaskDto, Task, TaskMapper> impl
...
@@ -222,25 +222,25 @@ public class TaskServiceImpl extends BaseService<TaskDto, Task, TaskMapper> impl
LambdaQueryWrapper
<
ProjectInitiation
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
ProjectInitiation
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
ProjectInitiation:
:
getInstanceId
,
project
.
getInstanceId
());
wrapper
.
eq
(
ProjectInitiation:
:
getInstanceId
,
project
.
getInstanceId
());
List
<
ProjectInitiation
>
projectInitiationList
=
projectInitiationService
.
list
(
wrapper
);
List
<
ProjectInitiation
>
projectInitiationList
=
projectInitiationService
.
list
(
wrapper
);
if
(
OrgEnum
.
安装单位
.
get
Name
().
equals
(
companyType
))
{
if
(
OrgEnum
.
安装单位
.
get
Key
().
equals
(
companyType
))
{
for
(
ProjectInitiation
projectInitiation
:
projectInitiationList
)
{
for
(
ProjectInitiation
projectInitiation
:
projectInitiationList
)
{
if
(
ProjectInitiationEnum
.
提交资料
.
getName
().
equals
(
projectInitiation
.
getTaskName
()))
{
if
(
ProjectInitiationEnum
.
提交资料
.
getName
().
equals
(
projectInitiation
.
getTaskName
()))
{
taskDtoList
.
add
(
setTask
(
projectInitiation
.
getTaskName
(),
true
,
TaskTypeEnum
.
填报
.
getKey
(),
projectInitiation
.
getRecDate
(),
project
.
getSequenceNbr
()));
taskDtoList
.
add
(
setTask
(
projectInitiation
.
getTaskName
(),
true
,
TaskTypeEnum
.
填报
.
getKey
(),
projectInitiation
.
getRecDate
(),
project
.
getSequenceNbr
()));
}
}
}
}
}
else
if
(
OrgEnum
.
设计单位
.
get
Name
().
equals
(
companyType
))
{
}
else
if
(
OrgEnum
.
设计单位
.
get
Key
().
equals
(
companyType
))
{
for
(
ProjectInitiation
projectInitiation
:
projectInitiationList
)
{
for
(
ProjectInitiation
projectInitiation
:
projectInitiationList
)
{
if
(
ProjectInitiationEnum
.
提交资料
.
getName
().
equals
(
projectInitiation
.
getTaskName
()))
{
if
(
ProjectInitiationEnum
.
提交资料
.
getName
().
equals
(
projectInitiation
.
getTaskName
()))
{
taskDtoList
.
add
(
setTask
(
projectInitiation
.
getTaskName
(),
true
,
TaskTypeEnum
.
填报
.
getKey
(),
projectInitiation
.
getRecDate
(),
project
.
getSequenceNbr
()));
taskDtoList
.
add
(
setTask
(
projectInitiation
.
getTaskName
(),
true
,
TaskTypeEnum
.
填报
.
getKey
(),
projectInitiation
.
getRecDate
(),
project
.
getSequenceNbr
()));
}
}
}
}
}
else
if
(
OrgEnum
.
监察部门
.
get
Name
().
equals
(
companyType
))
{
}
else
if
(
OrgEnum
.
监察部门
.
get
Key
().
equals
(
companyType
))
{
for
(
ProjectInitiation
projectInitiation
:
projectInitiationList
)
{
for
(
ProjectInitiation
projectInitiation
:
projectInitiationList
)
{
if
(
ProjectInitiationEnum
.
接受告知
.
getName
().
equals
(
projectInitiation
.
getTaskName
()))
{
if
(
ProjectInitiationEnum
.
接受告知
.
getName
().
equals
(
projectInitiation
.
getTaskName
()))
{
taskDtoList
.
add
(
setTask
(
projectInitiation
.
getTaskName
(),
true
,
TaskTypeEnum
.
流程
.
getKey
(),
projectInitiation
.
getRecDate
(),
project
.
getSequenceNbr
()));
taskDtoList
.
add
(
setTask
(
projectInitiation
.
getTaskName
(),
true
,
TaskTypeEnum
.
流程
.
getKey
(),
projectInitiation
.
getRecDate
(),
project
.
getSequenceNbr
()));
}
}
}
}
}
else
if
(
OrgEnum
.
监检机构
.
get
Name
().
equals
(
companyType
))
{
}
else
if
(
OrgEnum
.
监检机构
.
get
Key
().
equals
(
companyType
))
{
for
(
ProjectInitiation
projectInitiation
:
projectInitiationList
)
{
for
(
ProjectInitiation
projectInitiation
:
projectInitiationList
)
{
if
(
ProjectInitiationEnum
.
审查项目
.
getName
().
equals
(
projectInitiation
.
getTaskName
())
||
ProjectInitiationEnum
.
监检科室分配
.
getName
().
equals
(
projectInitiation
.
getTaskName
())
||
ProjectInitiationEnum
.
监检员分配
.
getName
().
equals
(
projectInitiation
.
getTaskName
())
||
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
projectInitiation
.
getTaskName
()))
{
if
(
ProjectInitiationEnum
.
审查项目
.
getName
().
equals
(
projectInitiation
.
getTaskName
())
||
ProjectInitiationEnum
.
监检科室分配
.
getName
().
equals
(
projectInitiation
.
getTaskName
())
||
ProjectInitiationEnum
.
监检员分配
.
getName
().
equals
(
projectInitiation
.
getTaskName
())
||
ProjectInitiationEnum
.
监检员审核
.
getName
().
equals
(
projectInitiation
.
getTaskName
()))
{
taskDtoList
.
add
(
setTask
(
projectInitiation
.
getTaskName
(),
true
,
TaskTypeEnum
.
流程
.
getKey
(),
projectInitiation
.
getRecDate
(),
project
.
getSequenceNbr
()));
taskDtoList
.
add
(
setTask
(
projectInitiation
.
getTaskName
(),
true
,
TaskTypeEnum
.
流程
.
getKey
(),
projectInitiation
.
getRecDate
(),
project
.
getSequenceNbr
()));
...
...
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