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
61d65968
Commit
61d65968
authored
Aug 11, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*) 添加count接口
parent
7d6c8480
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
FailureDetailsController.java
...odule/common/biz/controller/FailureDetailsController.java
+11
-0
FailureDetailsServiceImpl.java
...le/common/biz/service/impl/FailureDetailsServiceImpl.java
+9
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FailureDetailsController.java
View file @
61d65968
...
@@ -153,5 +153,16 @@ public class FailureDetailsController extends BaseController {
...
@@ -153,5 +153,16 @@ public class FailureDetailsController extends BaseController {
return
ResponseHelper
.
buildResponse
(
failureDetailsServiceImpl
.
queryForFailureDetailsList
(
currentStatus
));
return
ResponseHelper
.
buildResponse
(
failureDetailsServiceImpl
.
queryForFailureDetailsList
(
currentStatus
));
}
}
/**
* 查询当前状态任务数量
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询当前状态任务数量"
,
notes
=
"查询当前状态任务数量"
)
@GetMapping
(
value
=
"/list/count/{currentStatus}"
)
public
ResponseModel
<
Integer
>
selectStatusCount
(
@RequestParam
Long
currentStatus
)
{
return
ResponseHelper
.
buildResponse
(
failureDetailsServiceImpl
.
queryStatusCount
(
currentStatus
));
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FailureDetailsServiceImpl.java
View file @
61d65968
...
@@ -86,6 +86,15 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
...
@@ -86,6 +86,15 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
}
}
/**
/**
* 查询任务状态数量
*/
public
Integer
queryStatusCount
(
Long
currentStatus
)
{
QueryWrapper
<
FailureDetails
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"current_status"
,
currentStatus
);
return
baseMapper
.
selectCount
(
queryWrapper
);
}
/**
* 发起故障保修单
* 发起故障保修单
* @throws Exception
* @throws Exception
*/
*/
...
...
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