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
10ef5484
Commit
10ef5484
authored
Sep 22, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关注电梯模块基本代码
parent
6d4b8777
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
18 deletions
+25
-18
MaintainInfoDto.java
...yeejoin/amos/boot/module/tzs/api/dto/MaintainInfoDto.java
+3
-0
TestInfoDto.java
...com/yeejoin/amos/boot/module/tzs/api/dto/TestInfoDto.java
+2
-0
MaintainInfo.java
...yeejoin/amos/boot/module/tzs/api/entity/MaintainInfo.java
+6
-0
TestInfo.java
...com/yeejoin/amos/boot/module/tzs/api/entity/TestInfo.java
+6
-0
IEnevatorRelationService.java
...boot/module/tzs/api/service/IEnevatorRelationService.java
+2
-0
EnevatorRelationController.java
...module/tzs/biz/controller/EnevatorRelationController.java
+4
-18
EnevatorRelationServiceImpl.java
...ule/tzs/biz/service/impl/EnevatorRelationServiceImpl.java
+2
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/MaintainInfoDto.java
View file @
10ef5484
...
...
@@ -20,6 +20,9 @@ public class MaintainInfoDto extends BaseDto {
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"电梯id"
)
private
String
enevatorId
;
@ApiModelProperty
(
value
=
"最新维保时间"
)
private
Date
maintainTime
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/TestInfoDto.java
View file @
10ef5484
...
...
@@ -20,6 +20,8 @@ public class TestInfoDto extends BaseDto {
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"电梯id"
)
private
String
enevatorId
;
@ApiModelProperty
(
value
=
"最新检验时间"
)
private
Date
testTime
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/entity/MaintainInfo.java
View file @
10ef5484
...
...
@@ -23,6 +23,12 @@ public class MaintainInfo extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
/**
* 电梯id
*/
@TableField
(
"enevator_id"
)
private
String
enevatorId
;
/**
* 最新维保时间
*/
@TableField
(
"maintain_time"
)
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/entity/TestInfo.java
View file @
10ef5484
...
...
@@ -23,6 +23,12 @@ public class TestInfo extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
/**
* 电梯id
*/
@TableField
(
"enevator_id"
)
private
String
enevatorId
;
/**
* 最新检验时间
*/
@TableField
(
"test_time"
)
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IEnevatorRelationService.java
View file @
10ef5484
...
...
@@ -9,4 +9,6 @@ package com.yeejoin.amos.boot.module.tzs.api.service;
*/
public
interface
IEnevatorRelationService
{
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/EnevatorRelationController.java
View file @
10ef5484
...
...
@@ -11,7 +11,6 @@ import org.springframework.web.bind.annotation.DeleteMapping;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
...
@@ -52,29 +51,16 @@ public class EnevatorRelationController extends BaseController {
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新关注电梯关系表"
,
notes
=
"根据sequenceNbr更新关注电梯关系表"
)
public
ResponseModel
<
EnevatorRelationDto
>
updateBySequenceNbrEnevatorRelation
(
@RequestBody
EnevatorRelationDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
enevatorRelationServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
* 根据sequenceNbr删除 -- 取消关注
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{
sequenceNbr
}"
)
@DeleteMapping
(
value
=
"/{
openId}/{enevatorId
}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除关注电梯关系表"
,
notes
=
"根据sequenceNbr删除关注电梯关系表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"openId"
)
Long
openId
,
@PathVariable
(
value
=
"enevatorId"
)
String
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
enevatorRelationServiceImpl
.
removeById
(
sequenceNbr
));
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EnevatorRelationServiceImpl.java
View file @
10ef5484
...
...
@@ -30,4 +30,5 @@ public class EnevatorRelationServiceImpl extends BaseService<EnevatorRelationDto
public
List
<
EnevatorRelationDto
>
queryForEnevatorRelationList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ 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