Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pension
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
mengmeng
pension
Commits
0df4f6ae
Commit
0df4f6ae
authored
May 12, 2021
by
Shen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 添加活动和报名模块
parent
a40cfc0e
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
869 additions
and
3 deletions
+869
-3
SwaggerConfig.java
...in/src/main/java/io/hmit/common/config/SwaggerConfig.java
+1
-1
EnrollController.java
...mit/modules/serviceOrder/controller/EnrollController.java
+116
-0
PensionEventController.java
...dules/serviceOrder/controller/PensionEventController.java
+116
-0
EnrollDao.java
...main/java/io/hmit/modules/serviceOrder/dao/EnrollDao.java
+16
-0
PensionEventDao.java
...ava/io/hmit/modules/serviceOrder/dao/PensionEventDao.java
+16
-0
EnrollDTO.java
...main/java/io/hmit/modules/serviceOrder/dto/EnrollDTO.java
+65
-0
PensionEventDTO.java
...ava/io/hmit/modules/serviceOrder/dto/PensionEventDTO.java
+89
-0
EnrollEntity.java
...ava/io/hmit/modules/serviceOrder/entity/EnrollEntity.java
+77
-0
PensionEventEntity.java
.../hmit/modules/serviceOrder/entity/PensionEventEntity.java
+111
-0
EnrollExcel.java
.../java/io/hmit/modules/serviceOrder/excel/EnrollExcel.java
+45
-0
PensionEventExcel.java
...io/hmit/modules/serviceOrder/excel/PensionEventExcel.java
+61
-0
EnrollService.java
...a/io/hmit/modules/serviceOrder/service/EnrollService.java
+15
-0
PensionEventService.java
...mit/modules/serviceOrder/service/PensionEventService.java
+15
-0
EnrollServiceImpl.java
.../modules/serviceOrder/service/impl/EnrollServiceImpl.java
+34
-0
PensionEventServiceImpl.java
...es/serviceOrder/service/impl/PensionEventServiceImpl.java
+34
-0
EnrollDao.xml
...dmin/src/main/resources/mapper/serviceOrder/EnrollDao.xml
+24
-0
PensionEventDao.xml
...rc/main/resources/mapper/serviceOrder/PensionEventDao.xml
+32
-0
generator.properties
hmit-generator/src/main/resources/generator.properties
+2
-2
No files found.
hmit-admin/src/main/java/io/hmit/common/config/SwaggerConfig.java
View file @
0df4f6ae
...
...
@@ -33,7 +33,7 @@ public class SwaggerConfig {
@Bean
public
Docket
createRestApi
()
{
return
new
Docket
(
DocumentationType
.
SWAGGER_2
)
.
host
(
"byyl.zjhmit.com"
)
//
.host("byyl.zjhmit.com")
.
apiInfo
(
apiInfo
())
.
select
()
//加了ApiOperation注解的类,生成接口文档
...
...
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/controller/EnrollController.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
controller
;
import
io.hmit.common.annotation.LogOperation
;
import
io.hmit.common.constant.Constant
;
import
io.hmit.common.page.PageData
;
import
io.hmit.common.utils.ExcelUtils
;
import
io.hmit.common.utils.Result
;
import
io.hmit.common.validator.AssertUtils
;
import
io.hmit.common.validator.ValidatorUtils
;
import
io.hmit.common.validator.group.AddGroup
;
import
io.hmit.common.validator.group.DefaultGroup
;
import
io.hmit.common.validator.group.UpdateGroup
;
import
io.hmit.modules.serviceOrder.dto.EnrollDTO
;
import
io.hmit.modules.serviceOrder.excel.EnrollExcel
;
import
io.hmit.modules.serviceOrder.service.EnrollService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.Map
;
/**
* 报名表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@RestController
@RequestMapping
(
"serviceOrder/enroll"
)
@Api
(
tags
=
"报名表"
)
public
class
EnrollController
{
@Autowired
private
EnrollService
enrollService
;
@GetMapping
(
"page"
)
@ApiOperation
(
"分页"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
Constant
.
PAGE
,
value
=
"当前页码,从1开始"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
LIMIT
,
value
=
"每页显示记录数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@RequiresPermissions
(
"serviceOrder:enroll:page"
)
public
Result
<
PageData
<
EnrollDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
EnrollDTO
>
page
=
enrollService
.
page
(
params
);
return
new
Result
<
PageData
<
EnrollDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
@RequiresPermissions
(
"serviceOrder:enroll:info"
)
public
Result
<
EnrollDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
EnrollDTO
data
=
enrollService
.
get
(
id
);
return
new
Result
<
EnrollDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
@LogOperation
(
"保存"
)
@RequiresPermissions
(
"serviceOrder:enroll:save"
)
public
Result
save
(
@RequestBody
EnrollDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
enrollService
.
save
(
dto
);
return
new
Result
();
}
@PutMapping
@ApiOperation
(
"修改"
)
@LogOperation
(
"修改"
)
@RequiresPermissions
(
"serviceOrder:enroll:update"
)
public
Result
update
(
@RequestBody
EnrollDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
enrollService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
@LogOperation
(
"删除"
)
@RequiresPermissions
(
"serviceOrder:enroll:delete"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//校验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
enrollService
.
delete
(
ids
);
return
new
Result
();
}
@GetMapping
(
"export"
)
@ApiOperation
(
"导出"
)
@LogOperation
(
"导出"
)
@RequiresPermissions
(
"serviceOrder:enroll:export"
)
public
void
export
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
,
HttpServletResponse
response
)
throws
Exception
{
List
<
EnrollDTO
>
list
=
enrollService
.
list
(
params
);
ExcelUtils
.
exportExcelToTarget
(
response
,
null
,
list
,
EnrollExcel
.
class
);
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/controller/PensionEventController.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
controller
;
import
io.hmit.common.annotation.LogOperation
;
import
io.hmit.common.constant.Constant
;
import
io.hmit.common.page.PageData
;
import
io.hmit.common.utils.ExcelUtils
;
import
io.hmit.common.utils.Result
;
import
io.hmit.common.validator.AssertUtils
;
import
io.hmit.common.validator.ValidatorUtils
;
import
io.hmit.common.validator.group.AddGroup
;
import
io.hmit.common.validator.group.DefaultGroup
;
import
io.hmit.common.validator.group.UpdateGroup
;
import
io.hmit.modules.serviceOrder.dto.PensionEventDTO
;
import
io.hmit.modules.serviceOrder.excel.PensionEventExcel
;
import
io.hmit.modules.serviceOrder.service.PensionEventService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.Map
;
/**
* 活动表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@RestController
@RequestMapping
(
"serviceOrder/pensionevent"
)
@Api
(
tags
=
"活动表"
)
public
class
PensionEventController
{
@Autowired
private
PensionEventService
pensionEventService
;
@GetMapping
(
"page"
)
@ApiOperation
(
"分页"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
Constant
.
PAGE
,
value
=
"当前页码,从1开始"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
LIMIT
,
value
=
"每页显示记录数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@RequiresPermissions
(
"serviceOrder:pensionevent:page"
)
public
Result
<
PageData
<
PensionEventDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
PensionEventDTO
>
page
=
pensionEventService
.
page
(
params
);
return
new
Result
<
PageData
<
PensionEventDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
@RequiresPermissions
(
"serviceOrder:pensionevent:info"
)
public
Result
<
PensionEventDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
PensionEventDTO
data
=
pensionEventService
.
get
(
id
);
return
new
Result
<
PensionEventDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
@LogOperation
(
"保存"
)
@RequiresPermissions
(
"serviceOrder:pensionevent:save"
)
public
Result
save
(
@RequestBody
PensionEventDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
pensionEventService
.
save
(
dto
);
return
new
Result
();
}
@PutMapping
@ApiOperation
(
"修改"
)
@LogOperation
(
"修改"
)
@RequiresPermissions
(
"serviceOrder:pensionevent:update"
)
public
Result
update
(
@RequestBody
PensionEventDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
pensionEventService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
@LogOperation
(
"删除"
)
@RequiresPermissions
(
"serviceOrder:pensionevent:delete"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//校验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
pensionEventService
.
delete
(
ids
);
return
new
Result
();
}
@GetMapping
(
"export"
)
@ApiOperation
(
"导出"
)
@LogOperation
(
"导出"
)
@RequiresPermissions
(
"serviceOrder:pensionevent:export"
)
public
void
export
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
,
HttpServletResponse
response
)
throws
Exception
{
List
<
PensionEventDTO
>
list
=
pensionEventService
.
list
(
params
);
ExcelUtils
.
exportExcelToTarget
(
response
,
null
,
list
,
PensionEventExcel
.
class
);
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dao/EnrollDao.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
dao
;
import
io.hmit.common.dao.BaseDao
;
import
io.hmit.modules.serviceOrder.entity.EnrollEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 报名表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Mapper
public
interface
EnrollDao
extends
BaseDao
<
EnrollEntity
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dao/PensionEventDao.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
dao
;
import
io.hmit.common.dao.BaseDao
;
import
io.hmit.modules.serviceOrder.entity.PensionEventEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 活动表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Mapper
public
interface
PensionEventDao
extends
BaseDao
<
PensionEventEntity
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dto/EnrollDTO.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 报名表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Data
@ApiModel
(
value
=
"报名表"
)
public
class
EnrollDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"用户id"
)
private
Long
userId
;
@ApiModelProperty
(
value
=
"活动id"
)
private
Long
eventId
;
@ApiModelProperty
(
value
=
"活动名称"
)
private
String
eventTitle
;
@ApiModelProperty
(
value
=
"报名费"
)
private
String
eventFee
;
@ApiModelProperty
(
value
=
"图像id"
)
private
Long
eventImageId
;
@ApiModelProperty
(
value
=
"图像url"
)
private
String
eventImageUrl
;
@ApiModelProperty
(
value
=
"姓名"
)
private
String
name
;
@ApiModelProperty
(
value
=
"性别"
)
private
Integer
gender
;
@ApiModelProperty
(
value
=
"电话"
)
private
String
mobile
;
@ApiModelProperty
(
value
=
"状态:0已报名,1已取消"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dto/PensionEventDTO.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 活动表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Data
@ApiModel
(
value
=
"活动表"
)
public
class
PensionEventDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"活动名称"
)
private
String
eventTitle
;
@ApiModelProperty
(
value
=
"图像id"
)
private
Long
eventImageId
;
@ApiModelProperty
(
value
=
"图像url"
)
private
String
eventImageUrl
;
@ApiModelProperty
(
value
=
"负责人"
)
private
String
eventLeaderName
;
@ApiModelProperty
(
value
=
"电话"
)
private
String
eventLeaderPhone
;
@ApiModelProperty
(
value
=
"报名费"
)
private
String
eventFee
;
@ApiModelProperty
(
value
=
"计划人数"
)
private
String
eventNum
;
@ApiModelProperty
(
value
=
"介绍"
)
private
String
eventDescribe
;
@ApiModelProperty
(
value
=
"结束展示内容"
)
private
String
eventEndDescribe
;
@ApiModelProperty
(
value
=
"活动签到信息"
)
private
String
eventClock
;
@ApiModelProperty
(
value
=
"状态:0未发布(草稿),1已发布(可报名),2结束报名,3活动结束,4隐藏"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"活动地点"
)
private
String
eventPlace
;
@ApiModelProperty
(
value
=
"报名结束日期"
)
private
Date
enrollEndDate
;
@ApiModelProperty
(
value
=
"活动日期"
)
private
String
eventDate
;
@ApiModelProperty
(
value
=
"机构id"
)
private
Long
eventOrgId
;
@ApiModelProperty
(
value
=
"机构名称"
)
private
String
eventOrgName
;
@ApiModelProperty
(
value
=
"社区id"
)
private
Long
eventComId
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"创建人"
)
private
Long
creator
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/entity/EnrollEntity.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.hmit.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 报名表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"tb_enroll"
)
public
class
EnrollEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@TableId
private
Long
id
;
/**
* 用户id
*/
private
Long
userId
;
/**
* 活动id
*/
private
Long
eventId
;
/**
* 活动名称
*/
private
String
eventTitle
;
/**
* 报名费
*/
private
String
eventFee
;
/**
* 图像id
*/
private
Long
eventImageId
;
/**
* 图像url
*/
private
String
eventImageUrl
;
/**
* 姓名
*/
private
String
name
;
/**
* 性别
*/
private
Integer
gender
;
/**
* 电话
*/
private
String
mobile
;
/**
* 状态:0已报名,1已取消
*/
private
Integer
status
;
/**
* 备注
*/
private
String
remark
;
/**
* 创建时间
*/
private
Date
createDate
;
/**
* 更新时间
*/
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/entity/PensionEventEntity.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.hmit.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 活动表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"pension_event"
)
public
class
PensionEventEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@TableId
private
Long
id
;
/**
* 活动名称
*/
private
String
eventTitle
;
/**
* 图像id
*/
private
Long
eventImageId
;
/**
* 图像url
*/
private
String
eventImageUrl
;
/**
* 负责人
*/
private
String
eventLeaderName
;
/**
* 电话
*/
private
String
eventLeaderPhone
;
/**
* 报名费
*/
private
String
eventFee
;
/**
* 计划人数
*/
private
String
eventNum
;
/**
* 介绍
*/
private
String
eventDescribe
;
/**
* 结束展示内容
*/
private
String
eventEndDescribe
;
/**
* 活动签到信息
*/
private
String
eventClock
;
/**
* 状态:0未发布(草稿),1已发布(可报名),2结束报名,3活动结束,4隐藏
*/
private
Integer
status
;
/**
* 活动地点
*/
private
String
eventPlace
;
/**
* 报名结束日期
*/
private
Date
enrollEndDate
;
/**
* 活动日期
*/
private
String
eventDate
;
/**
* 机构id
*/
private
Long
eventOrgId
;
/**
* 机构名称
*/
private
String
eventOrgName
;
/**
* 社区id
*/
private
Long
eventComId
;
/**
* 备注
*/
private
String
remark
;
/**
* 创建者
*/
private
Long
creator
;
/**
* 创建时间
*/
private
Date
createDate
;
/**
* 更新时间
*/
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/excel/EnrollExcel.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
excel
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 报名表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Data
public
class
EnrollExcel
{
@Excel
(
name
=
"id"
)
private
Long
id
;
@Excel
(
name
=
"用户id"
)
private
Long
userId
;
@Excel
(
name
=
"活动id"
)
private
Long
eventId
;
@Excel
(
name
=
"活动名称"
)
private
String
eventTitle
;
@Excel
(
name
=
"报名费"
)
private
String
eventFee
;
@Excel
(
name
=
"图像id"
)
private
Long
eventImageId
;
@Excel
(
name
=
"图像url"
)
private
String
eventImageUrl
;
@Excel
(
name
=
"姓名"
)
private
String
name
;
@Excel
(
name
=
"性别"
)
private
Integer
gender
;
@Excel
(
name
=
"电话"
)
private
String
mobile
;
@Excel
(
name
=
"状态:0已报名,1已取消"
)
private
Integer
status
;
@Excel
(
name
=
"备注"
)
private
String
remark
;
@Excel
(
name
=
"创建时间"
)
private
Date
createTime
;
@Excel
(
name
=
"更新时间"
)
private
Date
updateTime
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/excel/PensionEventExcel.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
excel
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 活动表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Data
public
class
PensionEventExcel
{
@Excel
(
name
=
"id"
)
private
Long
id
;
@Excel
(
name
=
"活动名称"
)
private
String
eventTitle
;
@Excel
(
name
=
"图像id"
)
private
Long
eventImageId
;
@Excel
(
name
=
"图像url"
)
private
String
eventImageUrl
;
@Excel
(
name
=
"负责人"
)
private
String
eventLeaderName
;
@Excel
(
name
=
"电话"
)
private
String
eventLeaderPhone
;
@Excel
(
name
=
"报名费"
)
private
String
eventFee
;
@Excel
(
name
=
"计划人数"
)
private
String
eventNum
;
@Excel
(
name
=
"介绍"
)
private
String
eventDescribe
;
@Excel
(
name
=
"结束展示内容"
)
private
String
eventEndDescribe
;
@Excel
(
name
=
"活动签到信息"
)
private
String
eventClock
;
@Excel
(
name
=
"状态:0未发布(草稿),1已发布(可报名),2结束报名,3活动结束,4隐藏"
)
private
Integer
status
;
@Excel
(
name
=
"活动地点"
)
private
String
eventPlace
;
@Excel
(
name
=
"报名结束日期"
)
private
Date
enrollEndDate
;
@Excel
(
name
=
"活动日期"
)
private
String
eventDate
;
@Excel
(
name
=
"机构id"
)
private
Long
eventOrgId
;
@Excel
(
name
=
"机构名称"
)
private
String
eventOrgName
;
@Excel
(
name
=
"社区id"
)
private
Long
eventComId
;
@Excel
(
name
=
"备注"
)
private
String
remark
;
@Excel
(
name
=
"创建人"
)
private
Long
creator
;
@Excel
(
name
=
"创建时间"
)
private
Date
createDate
;
@Excel
(
name
=
"更新时间"
)
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/EnrollService.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.EnrollDTO
;
import
io.hmit.modules.serviceOrder.entity.EnrollEntity
;
/**
* 报名表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
public
interface
EnrollService
extends
CrudService
<
EnrollEntity
,
EnrollDTO
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/PensionEventService.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.PensionEventDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionEventEntity
;
/**
* 活动表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
public
interface
PensionEventService
extends
CrudService
<
PensionEventEntity
,
PensionEventDTO
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/impl/EnrollServiceImpl.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
io.hmit.common.service.impl.CrudServiceImpl
;
import
io.hmit.modules.serviceOrder.dao.EnrollDao
;
import
io.hmit.modules.serviceOrder.dto.EnrollDTO
;
import
io.hmit.modules.serviceOrder.entity.EnrollEntity
;
import
io.hmit.modules.serviceOrder.service.EnrollService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
/**
* 报名表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Service
public
class
EnrollServiceImpl
extends
CrudServiceImpl
<
EnrollDao
,
EnrollEntity
,
EnrollDTO
>
implements
EnrollService
{
@Override
public
QueryWrapper
<
EnrollEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
QueryWrapper
<
EnrollEntity
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
);
return
wrapper
;
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionEventServiceImpl.java
0 → 100644
View file @
0df4f6ae
package
io
.
hmit
.
modules
.
serviceOrder
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
io.hmit.common.service.impl.CrudServiceImpl
;
import
io.hmit.modules.serviceOrder.dao.PensionEventDao
;
import
io.hmit.modules.serviceOrder.dto.PensionEventDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionEventEntity
;
import
io.hmit.modules.serviceOrder.service.PensionEventService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
/**
* 活动表
*
* @author Shen Yuanfeng syf0412@vip.qq.com
* @since 1.0.0 2021-05-12
*/
@Service
public
class
PensionEventServiceImpl
extends
CrudServiceImpl
<
PensionEventDao
,
PensionEventEntity
,
PensionEventDTO
>
implements
PensionEventService
{
@Override
public
QueryWrapper
<
PensionEventEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
QueryWrapper
<
PensionEventEntity
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
);
return
wrapper
;
}
}
\ No newline at end of file
hmit-admin/src/main/resources/mapper/serviceOrder/EnrollDao.xml
0 → 100644
View file @
0df4f6ae
<?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=
"io.hmit.modules.serviceOrder.dao.EnrollDao"
>
<resultMap
type=
"io.hmit.modules.serviceOrder.entity.EnrollEntity"
id=
"enrollMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"eventId"
column=
"event_id"
/>
<result
property=
"eventTitle"
column=
"event_title"
/>
<result
property=
"eventFee"
column=
"event_fee"
/>
<result
property=
"eventImageId"
column=
"event_image_id"
/>
<result
property=
"eventImageUrl"
column=
"event_image_url"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"gender"
column=
"gender"
/>
<result
property=
"mobile"
column=
"mobile"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"createDate"
column=
"create_date"
/>
<result
property=
"updateDate"
column=
"update_date"
/>
</resultMap>
</mapper>
\ No newline at end of file
hmit-admin/src/main/resources/mapper/serviceOrder/PensionEventDao.xml
0 → 100644
View file @
0df4f6ae
<?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=
"io.hmit.modules.serviceOrder.dao.PensionEventDao"
>
<resultMap
type=
"io.hmit.modules.serviceOrder.entity.PensionEventEntity"
id=
"pensionEventMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"eventTitle"
column=
"event_title"
/>
<result
property=
"eventImageId"
column=
"event_image_id"
/>
<result
property=
"eventImageUrl"
column=
"event_image_url"
/>
<result
property=
"eventLeaderName"
column=
"event_leader_name"
/>
<result
property=
"eventLeaderPhone"
column=
"event_leader_phone"
/>
<result
property=
"eventFee"
column=
"event_fee"
/>
<result
property=
"eventNum"
column=
"event_num"
/>
<result
property=
"eventDescribe"
column=
"event_describe"
/>
<result
property=
"eventEndDescribe"
column=
"event_end_describe"
/>
<result
property=
"eventClock"
column=
"event_clock"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"eventPlace"
column=
"event_place"
/>
<result
property=
"enrollEndDate"
column=
"enroll_end_date"
/>
<result
property=
"eventDate"
column=
"event_date"
/>
<result
property=
"eventOrgId"
column=
"event_org_id"
/>
<result
property=
"eventOrgName"
column=
"event_org_name"
/>
<result
property=
"eventComId"
column=
"event_com_id"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"creator"
column=
"creator"
/>
<result
property=
"createDate"
column=
"create_date"
/>
<result
property=
"updateDate"
column=
"update_date"
/>
</resultMap>
</mapper>
\ No newline at end of file
hmit-generator/src/main/resources/generator.properties
View file @
0df4f6ae
...
...
@@ -4,9 +4,9 @@
package
=
io.hmit
moduleName
=
serviceOrder
#\u4F5C\u8005
author
=
zsh
author
=
Shen Yuanfeng
#Email
email
=
408538940@
qq.com
email
=
syf0412@vip.
qq.com
#\u8868\u524D\u7F00(\u7C7B\u540D\u4E0D\u4F1A\u5305\u542B\u8868\u524D\u7F00)
tablePrefix
=
tb_
version
=
1.0.0
...
...
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