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
8c814508
Commit
8c814508
authored
Dec 12, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改ugp任务查询接口
parent
ae17ed84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
TaskMapper.java
...m/yeejoin/amos/boot/module/ugp/api/mapper/TaskMapper.java
+1
-1
TaskMapper.xml
...t-module-ugp-api/src/main/resources/mapper/TaskMapper.xml
+2
-2
TaskController.java
...n/amos/boot/module/ugp/biz/controller/TaskController.java
+15
-6
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/TaskMapper.java
View file @
8c814508
...
...
@@ -14,6 +14,6 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public
interface
TaskMapper
extends
BaseMapper
<
Task
>
{
IPage
getTask
(
IPage
page
,
String
type
,
Long
unitId
);
IPage
getTask
(
IPage
page
,
int
type
,
Long
unitId
);
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/TaskMapper.xml
View file @
8c814508
...
...
@@ -13,8 +13,8 @@
where tk.title =tp.`name` and
tk.`status` =tp.`status`
and tk.unit_id =#{unitId}
<if
test=
"type !=
null and !=''
"
>
and tk.
task_type
=#{type}
<if
test=
"type !=
null
"
>
and tk.
status
=#{type}
</if>
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/TaskController.java
View file @
8c814508
...
...
@@ -161,13 +161,22 @@ public class TaskController {
public
ResponseModel
<
IPage
<
Task
>>
getTaskList
(
@RequestParam
(
value
=
"status"
,
required
=
false
)
String
type
,
Long
current
,
Long
size
){
Long
unitId
=
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
();
IPage
<
Task
>
page
=
new
Page
(
current
,
size
);
/* LambdaQueryWrapper<Task> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(Task::getUnitId,unitId);
if(!ValidationUtil.isEmpty(type)){
wrapper.eq(Task::getTaskType,type);
// LambdaQueryWrapper<Task> wrapper = new LambdaQueryWrapper<>();
// wrapper.eq(Task::getUnitId,unitId);
// if(!ValidationUtil.isEmpty(type)){
// wrapper.eq(Task::getStatus,type);
// }
// iTzUgpTaskService.page(page, wrapper);
Integer
status
=
null
;
if
(!
ValidationUtil
.
isEmpty
(
type
))
{
if
(
"true"
.
equals
(
type
)){
status
=
1
;
}
else
{
status
=
0
;
}
}
iTzUgpTaskService.page(page, wrapper);*/
IPage
task
=
taskMapper
.
getTask
(
page
,
type
,
unitId
);
IPage
task
=
taskMapper
.
getTask
(
page
,
status
,
unitId
);
return
ResponseHelper
.
buildResponse
(
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