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
3b77a1d7
Commit
3b77a1d7
authored
Sep 22, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
no message
parents
fb3da0ab
6fe2c983
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
846 additions
and
0 deletions
+846
-0
EnevatorRelationDto.java
...oin/amos/boot/module/tzs/api/dto/EnevatorRelationDto.java
+29
-0
MaintainInfoDto.java
...yeejoin/amos/boot/module/tzs/api/dto/MaintainInfoDto.java
+45
-0
TestInfoDto.java
...com/yeejoin/amos/boot/module/tzs/api/dto/TestInfoDto.java
+45
-0
EnevatorRelation.java
...oin/amos/boot/module/tzs/api/entity/EnevatorRelation.java
+33
-0
MaintainInfo.java
...yeejoin/amos/boot/module/tzs/api/entity/MaintainInfo.java
+67
-0
TestInfo.java
...com/yeejoin/amos/boot/module/tzs/api/entity/TestInfo.java
+67
-0
EnevatorRelationMapper.java
...os/boot/module/tzs/api/mapper/EnevatorRelationMapper.java
+14
-0
MaintainInfoMapper.java
...n/amos/boot/module/tzs/api/mapper/MaintainInfoMapper.java
+14
-0
TestInfoMapper.java
...ejoin/amos/boot/module/tzs/api/mapper/TestInfoMapper.java
+14
-0
IEnevatorRelationService.java
...boot/module/tzs/api/service/IEnevatorRelationService.java
+12
-0
IMaintainInfoService.java
...mos/boot/module/tzs/api/service/IMaintainInfoService.java
+12
-0
ITestInfoService.java
...in/amos/boot/module/tzs/api/service/ITestInfoService.java
+12
-0
EnevatorRelationMapper.xml
...-api/src/main/resources/mapper/EnevatorRelationMapper.xml
+5
-0
MaintainInfoMapper.xml
...-tzs-api/src/main/resources/mapper/MaintainInfoMapper.xml
+5
-0
TestInfoMapper.xml
...dule-tzs-api/src/main/resources/mapper/TestInfoMapper.xml
+5
-0
EnevatorRelationController.java
...module/tzs/biz/controller/EnevatorRelationController.java
+123
-0
MaintainInfoController.java
...oot/module/tzs/biz/controller/MaintainInfoController.java
+116
-0
TestInfoController.java
...os/boot/module/tzs/biz/controller/TestInfoController.java
+116
-0
EnevatorRelationServiceImpl.java
...ule/tzs/biz/service/impl/EnevatorRelationServiceImpl.java
+34
-0
MaintainInfoServiceImpl.java
.../module/tzs/biz/service/impl/MaintainInfoServiceImpl.java
+34
-0
TestInfoServiceImpl.java
...boot/module/tzs/biz/service/impl/TestInfoServiceImpl.java
+34
-0
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+10
-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/EnevatorRelationDto.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* 关注电梯关系表
*
* @author litw
* @date 2021-09-22
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"EnevatorRelationDto"
,
description
=
"关注电梯关系表"
)
public
class
EnevatorRelationDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"openid个人识别id"
)
private
Long
openId
;
@ApiModelProperty
(
value
=
"电梯id"
)
private
String
enevatorId
;
}
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
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 维保信息表
*
* @author litw
* @date 2021-09-22
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"MaintainInfoDto"
,
description
=
"维保信息表"
)
public
class
MaintainInfoDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"最新维保时间"
)
private
Date
maintainTime
;
@ApiModelProperty
(
value
=
"下次维保时间"
)
private
Date
nextMaintainTime
;
@ApiModelProperty
(
value
=
"维保单位id"
)
private
String
maintainUnitId
;
@ApiModelProperty
(
value
=
"维保单位"
)
private
String
maintainUnit
;
@ApiModelProperty
(
value
=
"维保人员id"
)
private
String
maintainPersonId
;
@ApiModelProperty
(
value
=
"维保人员"
)
private
String
maintainPerson
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
}
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
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 检验信息表
*
* @author litw
* @date 2021-09-22
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"TestInfoDto"
,
description
=
"检验信息表"
)
public
class
TestInfoDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"最新检验时间"
)
private
Date
testTime
;
@ApiModelProperty
(
value
=
"检验单位id"
)
private
String
testUnitId
;
@ApiModelProperty
(
value
=
"检验单位"
)
private
String
testUnit
;
@ApiModelProperty
(
value
=
"检验人员id"
)
private
String
testPersonId
;
@ApiModelProperty
(
value
=
"检验人员"
)
private
String
testPerson
;
@ApiModelProperty
(
value
=
"检验结论"
)
private
String
testResult
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/entity/EnevatorRelation.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
/**
* 关注电梯关系表
*
* @author litw
* @date 2021-09-22
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"tz_enevator_relation"
)
public
class
EnevatorRelation
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* openid个人识别id
*/
@TableField
(
"open_id"
)
private
Long
openId
;
/**
* 电梯id
*/
@TableField
(
"enevator_id"
)
private
String
enevatorId
;
}
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
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 维保信息表
*
* @author litw
* @date 2021-09-22
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tz_maintain_info"
)
public
class
MaintainInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 最新维保时间
*/
@TableField
(
"maintain_time"
)
private
Date
maintainTime
;
/**
* 下次维保时间
*/
@TableField
(
"next_maintain_time"
)
private
Date
nextMaintainTime
;
/**
* 维保单位id
*/
@TableField
(
"maintain_unit_id"
)
private
String
maintainUnitId
;
/**
* 维保单位
*/
@TableField
(
"maintain_unit"
)
private
String
maintainUnit
;
/**
* 维保人员id
*/
@TableField
(
"maintain_person_id"
)
private
String
maintainPersonId
;
/**
* 维保人员
*/
@TableField
(
"maintain_person"
)
private
String
maintainPerson
;
/**
* 更新时间
*/
@TableField
(
"update_time"
)
private
Date
updateTime
;
}
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
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 检验信息表
*
* @author litw
* @date 2021-09-22
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tz_test_info"
)
public
class
TestInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 最新检验时间
*/
@TableField
(
"test_time"
)
private
Date
testTime
;
/**
* 检验单位id
*/
@TableField
(
"test_unit_id"
)
private
String
testUnitId
;
/**
* 检验单位
*/
@TableField
(
"test_unit"
)
private
String
testUnit
;
/**
* 检验人员id
*/
@TableField
(
"test_person_id"
)
private
String
testPersonId
;
/**
* 检验人员
*/
@TableField
(
"test_person"
)
private
String
testPerson
;
/**
* 检验结论
*/
@TableField
(
"test_result"
)
private
String
testResult
;
/**
* 更新时间
*/
@TableField
(
"update_time"
)
private
Date
updateTime
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/EnevatorRelationMapper.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EnevatorRelation
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 关注电梯关系表 Mapper 接口
*
* @author litw
* @date 2021-09-22
*/
public
interface
EnevatorRelationMapper
extends
BaseMapper
<
EnevatorRelation
>
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/MaintainInfoMapper.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.MaintainInfo
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 维保信息表 Mapper 接口
*
* @author litw
* @date 2021-09-22
*/
public
interface
MaintainInfoMapper
extends
BaseMapper
<
MaintainInfo
>
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/TestInfoMapper.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TestInfo
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 检验信息表 Mapper 接口
*
* @author litw
* @date 2021-09-22
*/
public
interface
TestInfoMapper
extends
BaseMapper
<
TestInfo
>
{
}
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
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
service
;
/**
* 关注电梯关系表接口类
*
* @author litw
* @date 2021-09-22
*/
public
interface
IEnevatorRelationService
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IMaintainInfoService.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
service
;
/**
* 维保信息表接口类
*
* @author litw
* @date 2021-09-22
*/
public
interface
IMaintainInfoService
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/ITestInfoService.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
service
;
/**
* 检验信息表接口类
*
* @author litw
* @date 2021-09-22
*/
public
interface
ITestInfoService
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/EnevatorRelationMapper.xml
0 → 100644
View file @
3b77a1d7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.api.mapper.EnevatorRelationMapper"
>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/MaintainInfoMapper.xml
0 → 100644
View file @
3b77a1d7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.api.mapper.MaintainInfoMapper"
>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/TestInfoMapper.xml
0 → 100644
View file @
3b77a1d7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.api.mapper.TestInfoMapper"
>
</mapper>
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
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EnevatorRelationDto
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.EnevatorRelationServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
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
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
/**
* 关注电梯关系表
*
* @author litw
* @date 2021-09-22
*/
@RestController
@Api
(
tags
=
"关注电梯关系表Api"
)
@RequestMapping
(
value
=
"/enevator-relation"
)
public
class
EnevatorRelationController
extends
BaseController
{
@Autowired
EnevatorRelationServiceImpl
enevatorRelationServiceImpl
;
/**
* 新增关注电梯关系表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增关注电梯关系表"
,
notes
=
"新增关注电梯关系表"
)
public
ResponseModel
<
EnevatorRelationDto
>
save
(
@RequestBody
EnevatorRelationDto
model
)
{
model
=
enevatorRelationServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据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删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除关注电梯关系表"
,
notes
=
"根据sequenceNbr删除关注电梯关系表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
enevatorRelationServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个关注电梯关系表"
,
notes
=
"根据sequenceNbr查询单个关注电梯关系表"
)
public
ResponseModel
<
EnevatorRelationDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
enevatorRelationServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"关注电梯关系表分页查询"
,
notes
=
"关注电梯关系表分页查询"
)
public
ResponseModel
<
Page
<
EnevatorRelationDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
EnevatorRelationDto
>
page
=
new
Page
<
EnevatorRelationDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
enevatorRelationServiceImpl
.
queryForEnevatorRelationPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"关注电梯关系表列表全部数据查询"
,
notes
=
"关注电梯关系表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
EnevatorRelationDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
enevatorRelationServiceImpl
.
queryForEnevatorRelationList
());
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/MaintainInfoController.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.MaintainInfoServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.MaintainInfoDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 维保信息表
*
* @author litw
* @date 2021-09-22
*/
@RestController
@Api
(
tags
=
"维保信息表Api"
)
@RequestMapping
(
value
=
"/maintain-info"
)
public
class
MaintainInfoController
extends
BaseController
{
@Autowired
MaintainInfoServiceImpl
maintainInfoServiceImpl
;
/**
* 新增维保信息表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增维保信息表"
,
notes
=
"新增维保信息表"
)
public
ResponseModel
<
MaintainInfoDto
>
save
(
@RequestBody
MaintainInfoDto
model
)
{
model
=
maintainInfoServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新维保信息表"
,
notes
=
"根据sequenceNbr更新维保信息表"
)
public
ResponseModel
<
MaintainInfoDto
>
updateBySequenceNbrMaintainInfo
(
@RequestBody
MaintainInfoDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
maintainInfoServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除维保信息表"
,
notes
=
"根据sequenceNbr删除维保信息表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
maintainInfoServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个维保信息表"
,
notes
=
"根据sequenceNbr查询单个维保信息表"
)
public
ResponseModel
<
MaintainInfoDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
maintainInfoServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"维保信息表分页查询"
,
notes
=
"维保信息表分页查询"
)
public
ResponseModel
<
Page
<
MaintainInfoDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
MaintainInfoDto
>
page
=
new
Page
<
MaintainInfoDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
maintainInfoServiceImpl
.
queryForMaintainInfoPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"维保信息表列表全部数据查询"
,
notes
=
"维保信息表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
MaintainInfoDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
maintainInfoServiceImpl
.
queryForMaintainInfoList
());
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/TestInfoController.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.TestInfoServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.TestInfoDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 检验信息表
*
* @author litw
* @date 2021-09-22
*/
@RestController
@Api
(
tags
=
"检验信息表Api"
)
@RequestMapping
(
value
=
"/test-info"
)
public
class
TestInfoController
extends
BaseController
{
@Autowired
TestInfoServiceImpl
testInfoServiceImpl
;
/**
* 新增检验信息表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增检验信息表"
,
notes
=
"新增检验信息表"
)
public
ResponseModel
<
TestInfoDto
>
save
(
@RequestBody
TestInfoDto
model
)
{
model
=
testInfoServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新检验信息表"
,
notes
=
"根据sequenceNbr更新检验信息表"
)
public
ResponseModel
<
TestInfoDto
>
updateBySequenceNbrTestInfo
(
@RequestBody
TestInfoDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
testInfoServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除检验信息表"
,
notes
=
"根据sequenceNbr删除检验信息表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
testInfoServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个检验信息表"
,
notes
=
"根据sequenceNbr查询单个检验信息表"
)
public
ResponseModel
<
TestInfoDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
testInfoServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"检验信息表分页查询"
,
notes
=
"检验信息表分页查询"
)
public
ResponseModel
<
Page
<
TestInfoDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
TestInfoDto
>
page
=
new
Page
<
TestInfoDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
testInfoServiceImpl
.
queryForTestInfoPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"检验信息表列表全部数据查询"
,
notes
=
"检验信息表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
TestInfoDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
testInfoServiceImpl
.
queryForTestInfoList
());
}
}
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
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EnevatorRelation
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.EnevatorRelationMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IEnevatorRelationService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EnevatorRelationDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 关注电梯关系表服务实现类
*
* @author litw
* @date 2021-09-22
*/
@Service
public
class
EnevatorRelationServiceImpl
extends
BaseService
<
EnevatorRelationDto
,
EnevatorRelation
,
EnevatorRelationMapper
>
implements
IEnevatorRelationService
{
/**
* 分页查询
*/
public
Page
<
EnevatorRelationDto
>
queryForEnevatorRelationPage
(
Page
<
EnevatorRelationDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
EnevatorRelationDto
>
queryForEnevatorRelationList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/MaintainInfoServiceImpl.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.MaintainInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.MaintainInfoMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IMaintainInfoService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.MaintainInfoDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 维保信息表服务实现类
*
* @author litw
* @date 2021-09-22
*/
@Service
public
class
MaintainInfoServiceImpl
extends
BaseService
<
MaintainInfoDto
,
MaintainInfo
,
MaintainInfoMapper
>
implements
IMaintainInfoService
{
/**
* 分页查询
*/
public
Page
<
MaintainInfoDto
>
queryForMaintainInfoPage
(
Page
<
MaintainInfoDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
MaintainInfoDto
>
queryForMaintainInfoList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/TestInfoServiceImpl.java
0 → 100644
View file @
3b77a1d7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TestInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.TestInfoMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.ITestInfoService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.TestInfoDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 检验信息表服务实现类
*
* @author litw
* @date 2021-09-22
*/
@Service
public
class
TestInfoServiceImpl
extends
BaseService
<
TestInfoDto
,
TestInfo
,
TestInfoMapper
>
implements
ITestInfoService
{
/**
* 分页查询
*/
public
Page
<
TestInfoDto
>
queryForTestInfoPage
(
Page
<
TestInfoDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
TestInfoDto
>
queryForTestInfoList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
3b77a1d7
...
...
@@ -1135,4 +1135,14 @@
INSERT INTO `jc_alert_form`(`sequence_nbr`, `alert_type_code`, `field_value_code`, `field_name`, `field_code`, `field_type`, `rec_user_name`, `rec_user_id`, `rec_date`, `is_delete`, `block`, `sort_num`, `url`, `hide`) VALUES (142, '237', NULL, '航班号', 'flightNumber', 'selectDelay', NULL, NULL, NULL, b'0', b'0', -1, 'aircraft/getAircraftNum', b'0');
</sql>
</changeSet>
<changeSet
author=
"litw"
id=
"2021-09-22-litw-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"cb_fire_station"
/>
</preConditions>
<comment>
BUG 2961 微型消防站名称字段过短导致报错
</comment>
<sql>
ALTER TABLE cb_fire_station MODIFY COLUMN name varchar(300) NULL COMMENT '微型消防站名称';
</sql>
</changeSet>
</databaseChangeLog>
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