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
ec2ccaea
Commit
ec2ccaea
authored
Aug 12, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*) 查询报修日志
parent
b8460314
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
FailureRepairlogController.java
...ule/common/biz/controller/FailureRepairlogController.java
+13
-0
FailureRepairlogServiceImpl.java
.../common/biz/service/impl/FailureRepairlogServiceImpl.java
+13
-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/FailureRepairlogController.java
View file @
ec2ccaea
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
controller
;
import
com.yeejoin.amos.boot.module.common.api.entity.FailureRepairlog
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
...
...
@@ -113,4 +114,16 @@ public class FailureRepairlogController extends BaseController {
public
ResponseModel
<
List
<
FailureRepairlogDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
failureRepairlogServiceImpl
.
queryForFailureRepairlogList
());
}
/**
* 查询报修日志
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询报修日志"
,
notes
=
"查询报修日志"
)
@GetMapping
(
value
=
"/list/{faultId}"
)
public
ResponseModel
<
List
<
FailureRepairlog
>>
findByFaultIdLog
(
@RequestParam
Long
faultId
)
{
return
ResponseHelper
.
buildResponse
(
failureRepairlogServiceImpl
.
findByfaultIdLog
(
faultId
));
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FailureRepairlogServiceImpl.java
View file @
ec2ccaea
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.module.common.api.entity.FailureAudit
;
import
com.yeejoin.amos.boot.module.common.api.entity.FailureRepairlog
;
import
com.yeejoin.amos.boot.module.common.api.mapper.FailureRepairlogMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.IFailureRepairlogService
;
...
...
@@ -30,4 +32,14 @@ public class FailureRepairlogServiceImpl extends BaseService<FailureRepairlogDto
public
List
<
FailureRepairlogDto
>
queryForFailureRepairlogList
()
{
return
this
.
queryForList
(
""
,
false
);
}
/**
* 根据FaultId查询
*/
public
List
<
FailureRepairlog
>
findByfaultIdLog
(
Long
faultId
)
{
Page
<
FailureRepairlogDto
>
page
=
new
Page
<>();
QueryWrapper
<
FailureRepairlog
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"fault_id"
,
faultId
).
orderByAsc
(
"process_time"
);
return
baseMapper
.
selectList
(
queryWrapper
);
}
}
\ No newline at end of file
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