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
7e07602e
Commit
7e07602e
authored
Jun 01, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.新增问题流水表气瓶
parent
3f39815e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
307 additions
and
0 deletions
+307
-0
CylinderQuestionInfoDto.java
...boot/module/cylinder/api/dto/CylinderQuestionInfoDto.java
+55
-0
CylinderQuestionInfo.java
...boot/module/cylinder/api/entity/CylinderQuestionInfo.java
+85
-0
CylinderQuestionInfoMapper.java
...odule/cylinder/api/mapper/CylinderQuestionInfoMapper.java
+14
-0
ICylinderQuestionInfoService.java
...le/cylinder/api/service/ICylinderQuestionInfoService.java
+12
-0
CylinderQuestionInfoMapper.xml
.../src/main/resources/mapper/CylinderQuestionInfoMapper.xml
+5
-0
CylinderQuestionInfoController.java
...linder/biz/controller/CylinderQuestionInfoController.java
+107
-0
CylinderQuestionInfoServiceImpl.java
...der/biz/service/impl/CylinderQuestionInfoServiceImpl.java
+29
-0
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/api/dto/CylinderQuestionInfoDto.java
0 → 100644
View file @
7e07602e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
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
;
import
java.util.Date
;
/**
* 问题信息列表
*
* @author system_generator
* @date 2024-06-01
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"CylinderQuestionInfoDto"
,
description
=
"问题信息列表"
)
public
class
CylinderQuestionInfoDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"行政区划"
)
private
String
regionCode
;
@ApiModelProperty
(
value
=
"问题类型枚举"
)
private
String
questionType
;
@ApiModelProperty
(
value
=
"问题内容"
)
private
String
questionContent
;
@ApiModelProperty
(
value
=
"发生日期"
)
private
Date
happenDate
;
@ApiModelProperty
(
value
=
"等级"
)
private
String
level
;
@ApiModelProperty
(
value
=
"预警对象唯一标识"
)
private
String
questionObjectId
;
@ApiModelProperty
(
value
=
"预警对象名称"
)
private
String
questionObjectName
;
@ApiModelProperty
(
value
=
"问题归属唯一标识"
)
private
String
questionAttributionId
;
@ApiModelProperty
(
value
=
"问题归属名称"
)
private
String
questionAttributionName
;
@ApiModelProperty
(
value
=
"问题类型名称"
)
private
String
questionTypeName
;
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/api/entity/CylinderQuestionInfo.java
0 → 100644
View file @
7e07602e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
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 system_generator
* @date 2024-06-01
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tz_cylinder_question_info"
)
public
class
CylinderQuestionInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 行政区划
*/
@TableField
(
"region_code"
)
private
String
regionCode
;
/**
* 问题类型枚举
*/
@TableField
(
"question_type"
)
private
String
questionType
;
/**
* 问题内容
*/
@TableField
(
"question_content"
)
private
String
questionContent
;
/**
* 发生日期
*/
@TableField
(
"happen_date"
)
private
Date
happenDate
;
/**
* 等级
*/
@TableField
(
"level"
)
private
String
level
;
/**
* 预警对象唯一标识
*/
@TableField
(
"question_object_id"
)
private
String
questionObjectId
;
/**
* 预警对象名称
*/
@TableField
(
"question_object_name"
)
private
String
questionObjectName
;
/**
* 问题归属唯一标识
*/
@TableField
(
"question_attribution_id"
)
private
String
questionAttributionId
;
/**
* 问题归属名称
*/
@TableField
(
"question_attribution_name"
)
private
String
questionAttributionName
;
/**
* 问题类型名称
*/
@TableField
(
"question_type_name"
)
private
String
questionTypeName
;
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/api/mapper/CylinderQuestionInfoMapper.java
0 → 100644
View file @
7e07602e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.cylinder.api.entity.CylinderQuestionInfo
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 问题信息列表 Mapper 接口
*
* @author system_generator
* @date 2024-06-01
*/
public
interface
CylinderQuestionInfoMapper
extends
BaseMapper
<
CylinderQuestionInfo
>
{
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/api/service/ICylinderQuestionInfoService.java
0 → 100644
View file @
7e07602e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
api
.
service
;
/**
* 问题信息列表接口类
*
* @author system_generator
* @date 2024-06-01
*/
public
interface
ICylinderQuestionInfoService
{
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/resources/mapper/CylinderQuestionInfoMapper.xml
0 → 100644
View file @
7e07602e
<?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.cylinder.api.mapper.CylinderQuestionInfoMapper"
>
</mapper>
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/biz/controller/CylinderQuestionInfoController.java
0 → 100644
View file @
7e07602e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
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.cylinder.api.dto.CylinderQuestionInfoDto
;
import
com.yeejoin.amos.boot.module.cylinder.biz.service.impl.CylinderQuestionInfoServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
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 system_generator
* @date 2024-06-01
*/
@RestController
@Api
(
tags
=
"问题信息列表Api"
)
@RequestMapping
(
value
=
"/cylinder-question-info"
)
public
class
CylinderQuestionInfoController
extends
BaseController
{
@Autowired
CylinderQuestionInfoServiceImpl
cylinderQuestionInfoServiceImpl
;
/**
* 新增问题信息列表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增问题信息列表"
,
notes
=
"新增问题信息列表"
)
public
ResponseModel
<
CylinderQuestionInfoDto
>
save
(
@RequestBody
CylinderQuestionInfoDto
model
)
{
model
=
cylinderQuestionInfoServiceImpl
.
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
<
CylinderQuestionInfoDto
>
updateBySequenceNbrCylinderQuestionInfo
(
@RequestBody
CylinderQuestionInfoDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
cylinderQuestionInfoServiceImpl
.
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
(
cylinderQuestionInfoServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个问题信息列表"
,
notes
=
"根据sequenceNbr查询单个问题信息列表"
)
public
ResponseModel
<
CylinderQuestionInfoDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
cylinderQuestionInfoServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"问题信息列表分页查询"
,
notes
=
"问题信息列表分页查询"
)
public
ResponseModel
<
Page
<
CylinderQuestionInfoDto
>>
queryForPage
(
@ApiParam
(
name
=
"页数"
)
@RequestParam
(
value
=
"current"
)
int
current
,
@ApiParam
(
name
=
"每页大小"
)
@RequestParam
(
value
=
"size"
)
int
size
,
@ApiParam
(
name
=
"问题类型枚举"
)
@RequestParam
(
value
=
"questionType"
,
required
=
false
)
String
questionType
,
@ApiParam
(
name
=
"行政区域code"
)
@RequestParam
(
value
=
"regionCode"
,
required
=
false
)
String
regionCode
)
{
Page
<
CylinderQuestionInfoDto
>
page
=
new
Page
<
CylinderQuestionInfoDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
cylinderQuestionInfoServiceImpl
.
queryForCylinderQuestionInfoPage
(
page
,
questionType
,
regionCode
));
}
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/biz/service/impl/CylinderQuestionInfoServiceImpl.java
0 → 100644
View file @
7e07602e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.cylinder.api.dto.CylinderQuestionInfoDto
;
import
com.yeejoin.amos.boot.module.cylinder.api.entity.CylinderQuestionInfo
;
import
com.yeejoin.amos.boot.module.cylinder.api.mapper.CylinderQuestionInfoMapper
;
import
com.yeejoin.amos.boot.module.cylinder.api.service.ICylinderQuestionInfoService
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.annotation.Condition
;
import
org.typroject.tyboot.core.rdbms.annotation.Operator
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
/**
* 问题信息列表服务实现类
*
* @author system_generator
* @date 2024-06-01
*/
@Service
public
class
CylinderQuestionInfoServiceImpl
extends
BaseService
<
CylinderQuestionInfoDto
,
CylinderQuestionInfo
,
CylinderQuestionInfoMapper
>
implements
ICylinderQuestionInfoService
{
/**
* 分页查询
*/
public
Page
<
CylinderQuestionInfoDto
>
queryForCylinderQuestionInfoPage
(
Page
<
CylinderQuestionInfoDto
>
page
,
String
questionType
,
@Condition
(
value
=
Operator
.
like
)
String
regionCode
)
{
return
this
.
queryForPage
(
page
,
"happen_date"
,
true
,
questionType
,
regionCode
);
}
}
\ 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