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
c44db8b5
Commit
c44db8b5
authored
May 15, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求:反馈建议
parent
7cdf15f4
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
1000 additions
and
0 deletions
+1000
-0
FeedbackRepliesDto.java
...n/amos/boot/module/common/api/dto/FeedbackRepliesDto.java
+55
-0
FeedbackSuggestionsDto.java
...os/boot/module/common/api/dto/FeedbackSuggestionsDto.java
+67
-0
FeedbackReplies.java
...n/amos/boot/module/common/api/entity/FeedbackReplies.java
+86
-0
FeedbackSuggestions.java
...os/boot/module/common/api/entity/FeedbackSuggestions.java
+110
-0
ProblemTypeEnum.java
...in/amos/boot/module/common/api/enums/ProblemTypeEnum.java
+52
-0
FeedbackRepliesMapper.java
.../boot/module/common/api/mapper/FeedbackRepliesMapper.java
+14
-0
FeedbackSuggestionsMapper.java
...t/module/common/api/mapper/FeedbackSuggestionsMapper.java
+14
-0
IFeedbackRepliesService.java
...ot/module/common/api/service/IFeedbackRepliesService.java
+9
-0
IFeedbackSuggestionsService.java
...odule/common/api/service/IFeedbackSuggestionsService.java
+9
-0
FeedbackRepliesMapper.xml
...n-api/src/main/resources/mapper/FeedbackRepliesMapper.xml
+5
-0
FeedbackSuggestionsMapper.xml
...i/src/main/resources/mapper/FeedbackSuggestionsMapper.xml
+5
-0
FeedbackRepliesController.java
...dule/common/biz/controller/FeedbackRepliesController.java
+114
-0
FeedbackSuggestionsController.java
.../common/biz/controller/FeedbackSuggestionsController.java
+114
-0
FeedbackRepliesServiceImpl.java
...e/common/biz/service/impl/FeedbackRepliesServiceImpl.java
+34
-0
FeedbackSuggestionsServiceImpl.java
...mmon/biz/service/impl/FeedbackSuggestionsServiceImpl.java
+34
-0
FeedbackReplies.java
...n/amos/boot/module/common/api/entity/FeedbackReplies.java
+60
-0
FeedbackSuggestions.java
...os/boot/module/common/api/entity/FeedbackSuggestions.java
+72
-0
FeedbackRepliesMapper.java
.../boot/module/common/api/mapper/FeedbackRepliesMapper.java
+16
-0
FeedbackSuggestionsMapper.java
...t/module/common/api/mapper/FeedbackSuggestionsMapper.java
+16
-0
IFeedbackRepliesService.java
...ot/module/common/api/service/IFeedbackRepliesService.java
+16
-0
IFeedbackSuggestionsService.java
...odule/common/api/service/IFeedbackSuggestionsService.java
+16
-0
FeedbackRepliesController.java
...dule/common/biz/controller/FeedbackRepliesController.java
+21
-0
FeedbackSuggestionsController.java
.../common/biz/controller/FeedbackSuggestionsController.java
+21
-0
FeedbackRepliesServiceImpl.java
...e/common/biz/service/impl/FeedbackRepliesServiceImpl.java
+20
-0
FeedbackSuggestionsServiceImpl.java
...mmon/biz/service/impl/FeedbackSuggestionsServiceImpl.java
+20
-0
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FeedbackRepliesDto.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
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 2025-05-15
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"FeedbackRepliesDto"
,
description
=
"反馈回复表"
)
public
class
FeedbackRepliesDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"创建人id"
)
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
createUserName
;
@ApiModelProperty
(
value
=
"创建时间(回复时间)"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"回复描述"
)
private
String
replyDescription
;
@ApiModelProperty
(
value
=
"回复用户id"
)
private
Integer
replyUserId
;
@ApiModelProperty
(
value
=
"回复用户姓名"
)
private
String
replyUserName
;
@ApiModelProperty
(
value
=
"反馈建议表seq"
)
private
String
suggestionsSeq
;
@ApiModelProperty
(
value
=
"已读状态(1:已读,0:未读)"
)
private
String
readStatus
;
@ApiModelProperty
(
value
=
"回复单位code"
)
private
String
replyCompanyCode
;
@ApiModelProperty
(
value
=
"回复单位名称"
)
private
String
replyCompanyName
;
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FeedbackSuggestionsDto.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
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 2025-05-15
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"FeedbackSuggestionsDto"
,
description
=
"反馈建议表"
)
public
class
FeedbackSuggestionsDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"创建人id"
)
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
createUserName
;
@ApiModelProperty
(
value
=
"创建时间(填报时间)"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"问题类型(字典值)"
)
private
String
problemType
;
@ApiModelProperty
(
value
=
"问题描述"
)
private
String
problemDescription
;
@ApiModelProperty
(
value
=
"管辖机构org_code"
)
private
String
superviseOrgCode
;
@ApiModelProperty
(
value
=
"ed"
)
private
String
superviseOrgName
;
@ApiModelProperty
(
value
=
"上报企业统一信用代码"
)
private
String
companyCode
;
@ApiModelProperty
(
value
=
"上报企业名称"
)
private
String
companyName
;
@ApiModelProperty
(
value
=
"上报人员id"
)
private
Integer
reporterUserId
;
@ApiModelProperty
(
value
=
"上报人员姓名"
)
private
String
reporterUserName
;
@ApiModelProperty
(
value
=
"联系人"
)
private
String
contactPerson
;
@ApiModelProperty
(
value
=
"联系电话"
)
private
String
contactPhone
;
@ApiModelProperty
(
value
=
"回复状态(1:回复,0:未回复)"
)
private
String
status
;
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/entity/FeedbackReplies.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
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 2025-05-15
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tzs_feedback_replies"
)
public
class
FeedbackReplies
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 创建人id
*/
@TableField
(
"create_user_id"
)
private
String
createUserId
;
/**
* 创建人
*/
@TableField
(
"create_user_name"
)
private
String
createUserName
;
/**
* 创建时间(回复时间)
*/
@TableField
(
"create_date"
)
private
Date
createDate
;
/**
* 回复描述
*/
@TableField
(
"reply_description"
)
private
String
replyDescription
;
/**
* 回复用户id
*/
@TableField
(
"reply_user_id"
)
private
Integer
replyUserId
;
/**
* 回复用户姓名
*/
@TableField
(
"reply_user_name"
)
private
String
replyUserName
;
/**
* 反馈建议表seq
*/
@TableField
(
"suggestions_seq"
)
private
String
suggestionsSeq
;
/**
* 已读状态(1:已读,0:未读)
*/
@TableField
(
"read_status"
)
private
String
readStatus
;
/**
* 回复单位code
*/
@TableField
(
"reply_company_code"
)
private
String
replyCompanyCode
;
/**
* 回复单位名称
*/
@TableField
(
"reply_company_name"
)
private
String
replyCompanyName
;
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/entity/FeedbackSuggestions.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
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 2025-05-15
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tzs_feedback_suggestions"
)
public
class
FeedbackSuggestions
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 创建人id
*/
@TableField
(
"create_user_id"
)
private
String
createUserId
;
/**
* 创建人
*/
@TableField
(
"create_user_name"
)
private
String
createUserName
;
/**
* 创建时间(填报时间)
*/
@TableField
(
"create_date"
)
private
Date
createDate
;
/**
* 问题类型(字典值)
*/
@TableField
(
"problem_type"
)
private
String
problemType
;
/**
* 问题描述
*/
@TableField
(
"problem_description"
)
private
String
problemDescription
;
/**
* 管辖机构org_code
*/
@TableField
(
"supervise_org_code"
)
private
String
superviseOrgCode
;
/**
* ed
*/
@TableField
(
"supervise_org_name"
)
private
String
superviseOrgName
;
/**
* 上报企业统一信用代码
*/
@TableField
(
"company_code"
)
private
String
companyCode
;
/**
* 上报企业名称
*/
@TableField
(
"company_name"
)
private
String
companyName
;
/**
* 上报人员id
*/
@TableField
(
"reporter_user_id"
)
private
Integer
reporterUserId
;
/**
* 上报人员姓名
*/
@TableField
(
"reporter_user_name"
)
private
String
reporterUserName
;
/**
* 联系人
*/
@TableField
(
"contact_person"
)
private
String
contactPerson
;
/**
* 联系电话
*/
@TableField
(
"contact_phone"
)
private
String
contactPhone
;
/**
* 回复状态(1:回复,0:未回复)
*/
@TableField
(
"status"
)
private
String
status
;
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/enums/ProblemTypeEnum.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
enums
;
/**
* 反馈建议-问题类型枚举值
*/
public
enum
ProblemTypeEnum
{
MAJOR_ACCIDENT_HAZARDS
(
101
,
"重大事故隐患问题"
),
TWO_REGULATIONS_ISSUES
(
102
,
"两个规定问题"
),
DUAL_PREVENTION_ISSUES
(
103
,
"双重预防问题"
),
TWO_LISTS_ISSUES
(
104
,
"两个清单问题"
),
TWO_GUIDELINES_ISSUES
(
105
,
"两个指南问题"
),
BUSINESS_PROCESSING_ISSUES
(
106
,
"业务办理问题"
),
ADMINISTRATIVE_GUIDANCE
(
107
,
"行政指导"
),
TECHNICAL_SERVICES
(
108
,
"技术服务"
),
OTHER_ISSUES
(
109
,
"其他问题"
),
SUGGESTIONS
(
110
,
"建议"
);
private
final
int
id
;
private
final
String
description
;
ProblemTypeEnum
(
int
id
,
String
description
)
{
this
.
id
=
id
;
this
.
description
=
description
;
}
public
int
getId
()
{
return
id
;
}
public
String
getDescription
()
{
return
description
;
}
@Override
public
String
toString
()
{
return
id
+
": "
+
name
()
+
" -> "
+
description
;
}
/**
* 根据ID获取对应的枚举值
*/
public
static
ProblemTypeEnum
getById
(
int
id
)
{
for
(
ProblemTypeEnum
category
:
ProblemTypeEnum
.
values
())
{
if
(
category
.
getId
()
==
id
)
{
return
category
;
}
}
throw
new
IllegalArgumentException
(
"No ProblemTypeEnum found with ID: "
+
id
);
}
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/FeedbackRepliesMapper.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackReplies
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 反馈回复表 Mapper 接口
*
* @author system_generator
* @date 2025-05-15
*/
public
interface
FeedbackRepliesMapper
extends
BaseMapper
<
FeedbackReplies
>
{
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/FeedbackSuggestionsMapper.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackSuggestions
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 反馈建议表 Mapper 接口
*
* @author system_generator
* @date 2025-05-15
*/
public
interface
FeedbackSuggestionsMapper
extends
BaseMapper
<
FeedbackSuggestions
>
{
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IFeedbackRepliesService.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
/**
* 反馈回复表接口类
*
* @author system_generator
* @date 2025-05-15
*/
public
interface
IFeedbackRepliesService
{}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IFeedbackSuggestionsService.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
/**
* 反馈建议表接口类
*
* @author system_generator
* @date 2025-05-15
*/
public
interface
IFeedbackSuggestionsService
{}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/resources/mapper/FeedbackRepliesMapper.xml
0 → 100644
View file @
c44db8b5
<?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.common.api.mapper.FeedbackRepliesMapper"
>
</mapper>
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/resources/mapper/FeedbackSuggestionsMapper.xml
0 → 100644
View file @
c44db8b5
<?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.common.api.mapper.FeedbackSuggestionsMapper"
>
</mapper>
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FeedbackRepliesController.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
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.common.api.entity.FeedbackReplies
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FeedbackRepliesServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
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 2025-05-15
*/
@RestController
@Api
(
tags
=
"反馈回复表"
)
@RequestMapping
(
value
=
"/feedback-replies"
)
public
class
FeedbackRepliesController
extends
BaseController
{
@Autowired
FeedbackRepliesServiceImpl
feedbackRepliesServiceImpl
;
/**
* 新增
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
ResponseModel
<
FeedbackReplies
>
save
(
@RequestBody
FeedbackReplies
feedbackReplies
)
{
feedbackReplies
=
feedbackRepliesServiceImpl
.
createWithModel
(
feedbackReplies
);
return
ResponseHelper
.
buildResponse
(
feedbackReplies
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
FeedbackReplies
>
updateBySequenceNbrFeedbackReplies
(
@RequestBody
FeedbackReplies
entity
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
entity
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
feedbackRepliesServiceImpl
.
updateWithModel
(
entity
));
}
/**
* 根据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
(
feedbackRepliesServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
FeedbackReplies
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
feedbackRepliesServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
FeedbackReplies
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
FeedbackReplies
>
page
=
new
Page
<
FeedbackReplies
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
feedbackRepliesServiceImpl
.
queryForFeedbackRepliesPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
FeedbackReplies
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
feedbackRepliesServiceImpl
.
queryForFeedbackRepliesList
());
}
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FeedbackSuggestionsController.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
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.common.api.entity.FeedbackSuggestions
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FeedbackSuggestionsServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
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 2025-05-15
*/
@RestController
@Api
(
tags
=
"反馈建议表"
)
@RequestMapping
(
value
=
"/feedback-suggestions"
)
public
class
FeedbackSuggestionsController
extends
BaseController
{
@Autowired
FeedbackSuggestionsServiceImpl
feedbackSuggestionsServiceImpl
;
/**
* 新增
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
ResponseModel
<
FeedbackSuggestions
>
save
(
@RequestBody
FeedbackSuggestions
suggestions
)
{
suggestions
=
feedbackSuggestionsServiceImpl
.
createWithModel
(
suggestions
);
return
ResponseHelper
.
buildResponse
(
suggestions
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
FeedbackSuggestions
>
updateBySequenceNbrFeedbackSuggestions
(
@RequestBody
FeedbackSuggestions
entity
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
entity
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
feedbackSuggestionsServiceImpl
.
updateWithModel
(
entity
));
}
/**
* 根据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
(
feedbackSuggestionsServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
FeedbackSuggestions
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
feedbackSuggestionsServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
FeedbackSuggestions
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
FeedbackSuggestions
>
page
=
new
Page
<
FeedbackSuggestions
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
feedbackSuggestionsServiceImpl
.
queryForFeedbackSuggestionsPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
FeedbackSuggestions
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
feedbackSuggestionsServiceImpl
.
queryForFeedbackSuggestionsList
());
}
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FeedbackRepliesServiceImpl.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackReplies
;
import
com.yeejoin.amos.boot.module.common.api.mapper.FeedbackRepliesMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.IFeedbackRepliesService
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.List
;
/**
* 反馈回复表服务实现类
*
* @author system_generator
* @date 2025-05-15
*/
@Service
public
class
FeedbackRepliesServiceImpl
extends
BaseService
<
FeedbackReplies
,
FeedbackReplies
,
FeedbackRepliesMapper
>
implements
IFeedbackRepliesService
{
/**
* 分页查询
*/
public
Page
<
FeedbackReplies
>
queryForFeedbackRepliesPage
(
Page
<
FeedbackReplies
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
FeedbackReplies
>
queryForFeedbackRepliesList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FeedbackSuggestionsServiceImpl.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackSuggestions
;
import
com.yeejoin.amos.boot.module.common.api.mapper.FeedbackSuggestionsMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.IFeedbackSuggestionsService
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.List
;
/**
* 反馈建议表服务实现类
*
* @author system_generator
* @date 2025-05-15
*/
@Service
public
class
FeedbackSuggestionsServiceImpl
extends
BaseService
<
FeedbackSuggestions
,
FeedbackSuggestions
,
FeedbackSuggestionsMapper
>
implements
IFeedbackSuggestionsService
{
/**
* 分页查询
*/
public
Page
<
FeedbackSuggestions
>
queryForFeedbackSuggestionsPage
(
Page
<
FeedbackSuggestions
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
FeedbackSuggestions
>
queryForFeedbackSuggestionsList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
com/yeejoin/amos/boot/module/common/api/entity/FeedbackReplies.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.time.LocalDateTime
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
/**
* <p>
* 反馈回复表
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tzs_feedback_replies"
)
@ApiModel
(
value
=
"FeedbackReplies对象"
,
description
=
"反馈回复表"
)
public
class
FeedbackReplies
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"创建人id"
)
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
createUserName
;
@ApiModelProperty
(
value
=
"创建时间(回复时间)"
)
private
LocalDateTime
createDate
;
@ApiModelProperty
(
value
=
"回复描述"
)
private
String
replyDescription
;
@ApiModelProperty
(
value
=
"回复用户id"
)
private
Integer
replyUserId
;
@ApiModelProperty
(
value
=
"回复用户姓名"
)
private
String
replyUserName
;
@ApiModelProperty
(
value
=
"反馈建议表seq"
)
private
String
suggestionsSeq
;
@ApiModelProperty
(
value
=
"已读状态(1:已读,0:未读)"
)
private
String
readStatus
;
@ApiModelProperty
(
value
=
"回复单位code"
)
private
String
replyCompanyCode
;
@ApiModelProperty
(
value
=
"回复单位名称"
)
private
String
replyCompanyName
;
}
com/yeejoin/amos/boot/module/common/api/entity/FeedbackSuggestions.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.time.LocalDateTime
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
/**
* <p>
* 反馈建议表
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tzs_feedback_suggestions"
)
@ApiModel
(
value
=
"FeedbackSuggestions对象"
,
description
=
"反馈建议表"
)
public
class
FeedbackSuggestions
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"创建人id"
)
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
createUserName
;
@ApiModelProperty
(
value
=
"创建时间(填报时间)"
)
private
LocalDateTime
createDate
;
@ApiModelProperty
(
value
=
"问题类型(字典值)"
)
private
String
problemType
;
@ApiModelProperty
(
value
=
"问题描述"
)
private
String
problemDescription
;
@ApiModelProperty
(
value
=
"管辖机构org_code"
)
private
String
superviseOrgCode
;
@ApiModelProperty
(
value
=
"ed"
)
private
String
superviseOrgName
;
@ApiModelProperty
(
value
=
"上报企业统一信用代码"
)
private
String
companyCode
;
@ApiModelProperty
(
value
=
"上报企业名称"
)
private
String
companyName
;
@ApiModelProperty
(
value
=
"上报人员id"
)
private
Integer
reporterUserId
;
@ApiModelProperty
(
value
=
"上报人员姓名"
)
private
String
reporterUserName
;
@ApiModelProperty
(
value
=
"联系人"
)
private
String
contactPerson
;
@ApiModelProperty
(
value
=
"联系电话"
)
private
String
contactPhone
;
@ApiModelProperty
(
value
=
"回复状态(1:回复,0:未回复)"
)
private
String
status
;
}
com/yeejoin/amos/boot/module/common/api/mapper/FeedbackRepliesMapper.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackReplies
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 反馈回复表 Mapper 接口
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
public
interface
FeedbackRepliesMapper
extends
BaseMapper
<
FeedbackReplies
>
{
}
com/yeejoin/amos/boot/module/common/api/mapper/FeedbackSuggestionsMapper.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackSuggestions
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 反馈建议表 Mapper 接口
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
public
interface
FeedbackSuggestionsMapper
extends
BaseMapper
<
FeedbackSuggestions
>
{
}
com/yeejoin/amos/boot/module/common/api/service/IFeedbackRepliesService.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackReplies
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 反馈回复表 服务类
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
public
interface
IFeedbackRepliesService
extends
IService
<
FeedbackReplies
>
{
}
com/yeejoin/amos/boot/module/common/api/service/IFeedbackSuggestionsService.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackSuggestions
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 反馈建议表 服务类
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
public
interface
IFeedbackSuggestionsService
extends
IService
<
FeedbackSuggestions
>
{
}
com/yeejoin/amos/boot/module/common/biz/controller/FeedbackRepliesController.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
/**
* <p>
* 反馈回复表 前端控制器
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
@RestController
@RequestMapping
(
"/common/feedback-replies"
)
public
class
FeedbackRepliesController
extends
BaseController
{
}
com/yeejoin/amos/boot/module/common/biz/controller/FeedbackSuggestionsController.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
/**
* <p>
* 反馈建议表 前端控制器
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
@RestController
@RequestMapping
(
"/common/feedback-suggestions"
)
public
class
FeedbackSuggestionsController
extends
BaseController
{
}
com/yeejoin/amos/boot/module/common/biz/service/impl/FeedbackRepliesServiceImpl.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackReplies
;
import
com.yeejoin.amos.boot.module.common.api.mapper.FeedbackRepliesMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.IFeedbackRepliesService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 反馈回复表 服务实现类
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
@Service
public
class
FeedbackRepliesServiceImpl
extends
ServiceImpl
<
FeedbackRepliesMapper
,
FeedbackReplies
>
implements
IFeedbackRepliesService
{
}
com/yeejoin/amos/boot/module/common/biz/service/impl/FeedbackSuggestionsServiceImpl.java
0 → 100644
View file @
c44db8b5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.common.api.entity.FeedbackSuggestions
;
import
com.yeejoin.amos.boot.module.common.api.mapper.FeedbackSuggestionsMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.IFeedbackSuggestionsService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 反馈建议表 服务实现类
* </p>
*
* @author system_generator
* @since 2025-05-15
*/
@Service
public
class
FeedbackSuggestionsServiceImpl
extends
ServiceImpl
<
FeedbackSuggestionsMapper
,
FeedbackSuggestions
>
implements
IFeedbackSuggestionsService
{
}
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