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
7497e15c
Commit
7497e15c
authored
Mar 11, 2021
by
mengmeng
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
f2a77f6c
24eb707e
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
720 additions
and
6 deletions
+720
-6
PensionCommunityController.java
...s/serviceOrder/controller/PensionCommunityController.java
+116
-0
PensionCommunityDao.java
...io/hmit/modules/serviceOrder/dao/PensionCommunityDao.java
+16
-0
PensionCommunityDTO.java
...io/hmit/modules/serviceOrder/dto/PensionCommunityDTO.java
+44
-0
PensionOrderDTO.java
...ava/io/hmit/modules/serviceOrder/dto/PensionOrderDTO.java
+5
-0
PensionServiceDTO.java
...a/io/hmit/modules/serviceOrder/dto/PensionServiceDTO.java
+4
-1
UserDTO.java
...c/main/java/io/hmit/modules/serviceOrder/dto/UserDTO.java
+17
-0
PensionCommunityEntity.java
...t/modules/serviceOrder/entity/PensionCommunityEntity.java
+38
-0
PensionOrderEntity.java
.../hmit/modules/serviceOrder/entity/PensionOrderEntity.java
+9
-1
PensionServiceEntity.java
...mit/modules/serviceOrder/entity/PensionServiceEntity.java
+6
-1
UserEntity.java
.../java/io/hmit/modules/serviceOrder/entity/UserEntity.java
+25
-0
PensionCommunityExcel.java
...mit/modules/serviceOrder/excel/PensionCommunityExcel.java
+31
-0
PensionOrderExcel.java
...io/hmit/modules/serviceOrder/excel/PensionOrderExcel.java
+4
-0
PensionServiceExcel.java
.../hmit/modules/serviceOrder/excel/PensionServiceExcel.java
+4
-1
UserExcel.java
...in/java/io/hmit/modules/serviceOrder/excel/UserExcel.java
+12
-0
PensionCommunityService.java
...modules/serviceOrder/service/PensionCommunityService.java
+15
-0
PensionCommunityServiceImpl.java
...erviceOrder/service/impl/PensionCommunityServiceImpl.java
+34
-0
PensionCommunityDao.xml
...ain/resources/mapper/serviceOrder/PensionCommunityDao.xml
+17
-0
UserInfoDTO.java
hmit-api/src/main/java/io/hmit/dto/UserInfoDTO.java
+14
-0
UserEntity.java
hmit-api/src/main/java/io/hmit/entity/UserEntity.java
+24
-0
PensionCommunityController.java
...s/serviceOrder/controller/PensionCommunityController.java
+94
-0
PensionServiceController.java
...les/serviceOrder/controller/PensionServiceController.java
+1
-1
PensionCommunityDao.java
...io/hmit/modules/serviceOrder/dao/PensionCommunityDao.java
+16
-0
PensionCommunityDTO.java
...io/hmit/modules/serviceOrder/dto/PensionCommunityDTO.java
+44
-0
PensionOrderDTO.java
...ava/io/hmit/modules/serviceOrder/dto/PensionOrderDTO.java
+6
-0
PensionServiceDTO.java
...a/io/hmit/modules/serviceOrder/dto/PensionServiceDTO.java
+3
-0
PensionCommunityEntity.java
...t/modules/serviceOrder/entity/PensionCommunityEntity.java
+38
-0
PensionOrderEntity.java
.../hmit/modules/serviceOrder/entity/PensionOrderEntity.java
+10
-0
PensionServiceEntity.java
...mit/modules/serviceOrder/entity/PensionServiceEntity.java
+6
-0
PensionCommunityService.java
...modules/serviceOrder/service/PensionCommunityService.java
+15
-0
PensionCommunityServiceImpl.java
...erviceOrder/service/impl/PensionCommunityServiceImpl.java
+34
-0
PensionServiceTypeServiceImpl.java
...viceOrder/service/impl/PensionServiceTypeServiceImpl.java
+1
-1
PensionCommunityDao.xml
...ain/resources/mapper/serviceOrder/PensionCommunityDao.xml
+17
-0
No files found.
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/controller/PensionCommunityController.java
0 → 100644
View file @
7497e15c
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.PensionCommunityDTO
;
import
io.hmit.modules.serviceOrder.excel.PensionCommunityExcel
;
import
io.hmit.modules.serviceOrder.service.PensionCommunityService
;
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 zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@RestController
@RequestMapping
(
"serviceOrder/pensioncommunity"
)
@Api
(
tags
=
"社区表"
)
public
class
PensionCommunityController
{
@Autowired
private
PensionCommunityService
pensionCommunityService
;
@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:pensioncommunity:page"
)
public
Result
<
PageData
<
PensionCommunityDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
PensionCommunityDTO
>
page
=
pensionCommunityService
.
page
(
params
);
return
new
Result
<
PageData
<
PensionCommunityDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
@RequiresPermissions
(
"serviceOrder:pensioncommunity:info"
)
public
Result
<
PensionCommunityDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
PensionCommunityDTO
data
=
pensionCommunityService
.
get
(
id
);
return
new
Result
<
PensionCommunityDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
@LogOperation
(
"保存"
)
@RequiresPermissions
(
"serviceOrder:pensioncommunity:save"
)
public
Result
save
(
@RequestBody
PensionCommunityDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
pensionCommunityService
.
save
(
dto
);
return
new
Result
();
}
@PutMapping
@ApiOperation
(
"修改"
)
@LogOperation
(
"修改"
)
@RequiresPermissions
(
"serviceOrder:pensioncommunity:update"
)
public
Result
update
(
@RequestBody
PensionCommunityDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
pensionCommunityService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
@LogOperation
(
"删除"
)
@RequiresPermissions
(
"serviceOrder:pensioncommunity:delete"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//校验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
pensionCommunityService
.
delete
(
ids
);
return
new
Result
();
}
@GetMapping
(
"export"
)
@ApiOperation
(
"导出"
)
@LogOperation
(
"导出"
)
@RequiresPermissions
(
"serviceOrder:pensioncommunity:export"
)
public
void
export
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
,
HttpServletResponse
response
)
throws
Exception
{
List
<
PensionCommunityDTO
>
list
=
pensionCommunityService
.
list
(
params
);
ExcelUtils
.
exportExcelToTarget
(
response
,
null
,
list
,
PensionCommunityExcel
.
class
);
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dao/PensionCommunityDao.java
0 → 100644
View file @
7497e15c
package
io
.
hmit
.
modules
.
serviceOrder
.
dao
;
import
io.hmit.common.dao.BaseDao
;
import
io.hmit.modules.serviceOrder.entity.PensionCommunityEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 社区表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@Mapper
public
interface
PensionCommunityDao
extends
BaseDao
<
PensionCommunityEntity
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dto/PensionCommunityDTO.java
0 → 100644
View file @
7497e15c
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 zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@Data
@ApiModel
(
value
=
"社区表"
)
public
class
PensionCommunityDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
""
)
private
Long
id
;
@ApiModelProperty
(
value
=
""
)
private
String
name
;
@ApiModelProperty
(
value
=
"创建者dept_id"
)
private
Long
deptId
;
@ApiModelProperty
(
value
=
"创建者"
)
private
Long
creator
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"更新者"
)
private
Long
updater
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dto/PensionOrderDTO.java
View file @
7497e15c
...
@@ -85,5 +85,10 @@ public class PensionOrderDTO implements Serializable {
...
@@ -85,5 +85,10 @@ public class PensionOrderDTO implements Serializable {
@ApiModelProperty
(
value
=
"更新时间"
)
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateDate
;
private
Date
updateDate
;
@ApiModelProperty
(
value
=
"所属社区名称"
)
private
String
communityName
;
@ApiModelProperty
(
value
=
"所属社区Id"
)
private
Long
communityId
;
}
}
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dto/PensionServiceDTO.java
View file @
7497e15c
...
@@ -28,8 +28,11 @@ public class PensionServiceDTO implements Serializable {
...
@@ -28,8 +28,11 @@ public class PensionServiceDTO implements Serializable {
@ApiModelProperty
(
value
=
"服务名称"
)
@ApiModelProperty
(
value
=
"服务名称"
)
private
String
name
;
private
String
name
;
@ApiModelProperty
(
value
=
"服务内容介绍"
)
private
String
serviceContent
;
@ApiModelProperty
(
value
=
"服务类型"
)
@ApiModelProperty
(
value
=
"服务类型"
)
private
Long
service
Type
Id
;
private
Long
service
Parent
Id
;
@ApiModelProperty
(
value
=
"排序"
)
@ApiModelProperty
(
value
=
"排序"
)
private
Integer
sort
;
private
Integer
sort
;
...
...
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dto/UserDTO.java
View file @
7497e15c
...
@@ -56,5 +56,22 @@ public class UserDTO implements Serializable {
...
@@ -56,5 +56,22 @@ public class UserDTO implements Serializable {
@ApiModelProperty
(
value
=
"角色ID列表"
)
@ApiModelProperty
(
value
=
"角色ID列表"
)
private
List
<
Long
>
roleIdList
;
private
List
<
Long
>
roleIdList
;
@ApiModelProperty
(
value
=
"所属社区名称"
)
private
String
communityName
;
@ApiModelProperty
(
value
=
"身体状态"
)
private
String
healthStatus
;
@ApiModelProperty
(
value
=
"联系家属姓名"
)
private
String
familyMemberName
;
@ApiModelProperty
(
value
=
"家属身份"
)
private
String
familyMemberRole
;
@ApiModelProperty
(
value
=
"家属联系电话"
)
private
String
familyMemberTel
;
@ApiModelProperty
(
value
=
"所属社区Id"
)
private
Long
communityId
;
}
}
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/entity/PensionCommunityEntity.java
0 → 100644
View file @
7497e15c
package
io
.
hmit
.
modules
.
serviceOrder
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.hmit.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 社区表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"pension_community"
)
public
class
PensionCommunityEntity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
*
*/
private
String
name
;
/**
* 创建者dept_id
*/
private
Long
deptId
;
/**
* 更新者
*/
private
Long
updater
;
/**
* 更新时间
*/
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/entity/PensionOrderEntity.java
View file @
7497e15c
...
@@ -59,7 +59,15 @@ public class PensionOrderEntity extends BaseEntity {
...
@@ -59,7 +59,15 @@ public class PensionOrderEntity extends BaseEntity {
* 备注
* 备注
*/
*/
private
String
remark
;
private
String
remark
;
/**
/**
* 所属社区名称
*/
private
String
communityName
;
/**
* 所属社区Id
*/
private
Long
communityId
;
/**
* 接单人id
* 接单人id
*/
*/
private
Long
orderRecipientId
;
private
Long
orderRecipientId
;
...
...
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/entity/PensionServiceEntity.java
View file @
7497e15c
...
@@ -27,7 +27,7 @@ public class PensionServiceEntity extends BaseEntity {
...
@@ -27,7 +27,7 @@ public class PensionServiceEntity extends BaseEntity {
/**
/**
* 服务类型
* 服务类型
*/
*/
private
Long
service
Type
Id
;
private
Long
service
Parent
Id
;
/**
/**
* 排序
* 排序
*/
*/
...
@@ -72,4 +72,9 @@ public class PensionServiceEntity extends BaseEntity {
...
@@ -72,4 +72,9 @@ public class PensionServiceEntity extends BaseEntity {
* 更新时间
* 更新时间
*/
*/
private
Date
updateDate
;
private
Date
updateDate
;
/**
* 服务内容介绍
*/
private
String
serviceContent
;
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/entity/UserEntity.java
View file @
7497e15c
...
@@ -55,4 +55,29 @@ public class UserEntity extends BaseEntity {
...
@@ -55,4 +55,29 @@ public class UserEntity extends BaseEntity {
* 详细地址
* 详细地址
*/
*/
private
String
address
;
private
String
address
;
/**
* 所属社区名称
*/
private
String
communityName
;
/**
* 所属社区Id
*/
private
Long
communityId
;
/**
* 身体状态
*/
private
String
healthStatus
;
/**
* 联系家属姓名
*/
private
String
familyMemberName
;
/**
* 家属身份
*/
private
String
familyMemberRole
;
/**
* 家属联系电话
*/
private
String
familyMemberTel
;
}
}
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/excel/PensionCommunityExcel.java
0 → 100644
View file @
7497e15c
package
io
.
hmit
.
modules
.
serviceOrder
.
excel
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 社区表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@Data
public
class
PensionCommunityExcel
{
@Excel
(
name
=
""
)
private
Long
id
;
@Excel
(
name
=
""
)
private
String
name
;
@Excel
(
name
=
"创建者dept_id"
)
private
Long
deptId
;
@Excel
(
name
=
"创建者"
)
private
Long
creator
;
@Excel
(
name
=
"创建时间"
)
private
Date
createDate
;
@Excel
(
name
=
"更新者"
)
private
Long
updater
;
@Excel
(
name
=
"更新时间"
)
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/excel/PensionOrderExcel.java
View file @
7497e15c
...
@@ -33,6 +33,10 @@ public class PensionOrderExcel {
...
@@ -33,6 +33,10 @@ public class PensionOrderExcel {
private
String
appointmentPhone
;
private
String
appointmentPhone
;
@Excel
(
name
=
"预约时间"
)
@Excel
(
name
=
"预约时间"
)
private
Date
appointmentTime
;
private
Date
appointmentTime
;
@Excel
(
name
=
"所属社区名称"
)
private
String
communityName
;
@Excel
(
name
=
"所属社区Id"
)
private
Long
communityId
;
@Excel
(
name
=
"备注"
)
@Excel
(
name
=
"备注"
)
private
String
remark
;
private
String
remark
;
@Excel
(
name
=
"接单人id"
)
@Excel
(
name
=
"接单人id"
)
...
...
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/excel/PensionServiceExcel.java
View file @
7497e15c
...
@@ -19,7 +19,7 @@ public class PensionServiceExcel {
...
@@ -19,7 +19,7 @@ public class PensionServiceExcel {
@Excel
(
name
=
"服务名称"
)
@Excel
(
name
=
"服务名称"
)
private
String
name
;
private
String
name
;
@Excel
(
name
=
"服务类型"
)
@Excel
(
name
=
"服务类型"
)
private
Long
service
Type
Id
;
private
Long
service
Parent
Id
;
@Excel
(
name
=
"排序"
)
@Excel
(
name
=
"排序"
)
private
Integer
sort
;
private
Integer
sort
;
@Excel
(
name
=
"首页图标地址"
)
@Excel
(
name
=
"首页图标地址"
)
...
@@ -47,4 +47,7 @@ public class PensionServiceExcel {
...
@@ -47,4 +47,7 @@ public class PensionServiceExcel {
@Excel
(
name
=
"更新时间"
)
@Excel
(
name
=
"更新时间"
)
private
Date
updateDate
;
private
Date
updateDate
;
@Excel
(
name
=
"服务内容介绍"
)
private
String
serviceContent
;
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/excel/UserExcel.java
View file @
7497e15c
...
@@ -33,5 +33,17 @@ public class UserExcel {
...
@@ -33,5 +33,17 @@ public class UserExcel {
private
String
addressArea
;
private
String
addressArea
;
@Excel
(
name
=
"详细地址"
)
@Excel
(
name
=
"详细地址"
)
private
String
address
;
private
String
address
;
@Excel
(
name
=
"所属社区名称"
)
private
String
communityName
;
@Excel
(
name
=
"身体状态"
)
private
String
healthStatus
;
@Excel
(
name
=
"联系家属姓名"
)
private
String
familyMemberName
;
@Excel
(
name
=
"家属身份"
)
private
String
familyMemberRole
;
@Excel
(
name
=
"家属联系电话"
)
private
String
familyMemberTel
;
@Excel
(
name
=
"所属社区Id"
)
private
Long
communityId
;
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/PensionCommunityService.java
0 → 100644
View file @
7497e15c
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.PensionCommunityDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionCommunityEntity
;
/**
* 社区表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
public
interface
PensionCommunityService
extends
CrudService
<
PensionCommunityEntity
,
PensionCommunityDTO
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionCommunityServiceImpl.java
0 → 100644
View file @
7497e15c
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.PensionCommunityDao
;
import
io.hmit.modules.serviceOrder.dto.PensionCommunityDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionCommunityEntity
;
import
io.hmit.modules.serviceOrder.service.PensionCommunityService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
/**
* 社区表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@Service
public
class
PensionCommunityServiceImpl
extends
CrudServiceImpl
<
PensionCommunityDao
,
PensionCommunityEntity
,
PensionCommunityDTO
>
implements
PensionCommunityService
{
@Override
public
QueryWrapper
<
PensionCommunityEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
QueryWrapper
<
PensionCommunityEntity
>
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/PensionCommunityDao.xml
0 → 100644
View file @
7497e15c
<?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.PensionCommunityDao"
>
<resultMap
type=
"io.hmit.modules.serviceOrder.entity.PensionCommunityEntity"
id=
"pensionCommunityMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"deptId"
column=
"dept_id"
/>
<result
property=
"creator"
column=
"creator"
/>
<result
property=
"createDate"
column=
"create_date"
/>
<result
property=
"updater"
column=
"updater"
/>
<result
property=
"updateDate"
column=
"update_date"
/>
</resultMap>
</mapper>
\ No newline at end of file
hmit-api/src/main/java/io/hmit/dto/UserInfoDTO.java
View file @
7497e15c
...
@@ -43,5 +43,19 @@ public class UserInfoDTO {
...
@@ -43,5 +43,19 @@ public class UserInfoDTO {
@ApiModelProperty
(
value
=
"详细地址"
)
@ApiModelProperty
(
value
=
"详细地址"
)
private
String
address
;
private
String
address
;
@ApiModelProperty
(
value
=
"所属社区名称"
)
private
String
communityName
;
@ApiModelProperty
(
value
=
"身体状态"
)
private
String
healthStatus
;
@ApiModelProperty
(
value
=
"联系家属姓名"
)
private
String
familyMemberName
;
@ApiModelProperty
(
value
=
"家属身份"
)
private
String
familyMemberRole
;
@ApiModelProperty
(
value
=
"家属联系电话"
)
private
String
familyMemberTel
;
}
}
hmit-api/src/main/java/io/hmit/entity/UserEntity.java
View file @
7497e15c
...
@@ -62,5 +62,29 @@ public class UserEntity implements Serializable {
...
@@ -62,5 +62,29 @@ public class UserEntity implements Serializable {
* 详细地址
* 详细地址
*/
*/
private
String
address
;
private
String
address
;
/**
* 所属社区名称
*/
private
String
communityName
;
/**
* 身体状态
*/
private
String
healthStatus
;
/**
* 联系家属姓名
*/
private
String
familyMemberName
;
/**
* 家属身份
*/
private
String
familyMemberRole
;
/**
* 家属联系电话
*/
private
String
familyMemberTel
;
/**
* 所属社区Id
*/
private
Long
communityId
;
}
}
hmit-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionCommunityController.java
0 → 100644
View file @
7497e15c
package
io
.
hmit
.
modules
.
serviceOrder
.
controller
;
import
io.hmit.common.constant.Constant
;
import
io.hmit.common.page.PageData
;
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.PensionCommunityDTO
;
import
io.hmit.modules.serviceOrder.service.PensionCommunityService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
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 zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@RestController
@RequestMapping
(
"serviceOrder/pensioncommunity"
)
@Api
(
tags
=
"社区表"
)
public
class
PensionCommunityController
{
@Autowired
private
PensionCommunityService
pensionCommunityService
;
@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"
)
})
public
Result
<
PageData
<
PensionCommunityDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
PensionCommunityDTO
>
page
=
pensionCommunityService
.
page
(
params
);
return
new
Result
<
PageData
<
PensionCommunityDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
public
Result
<
PensionCommunityDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
PensionCommunityDTO
data
=
pensionCommunityService
.
get
(
id
);
return
new
Result
<
PensionCommunityDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
public
Result
save
(
@RequestBody
PensionCommunityDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
pensionCommunityService
.
save
(
dto
);
return
new
Result
();
}
@PutMapping
@ApiOperation
(
"修改"
)
public
Result
update
(
@RequestBody
PensionCommunityDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
pensionCommunityService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//校验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
pensionCommunityService
.
delete
(
ids
);
return
new
Result
();
}
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionServiceController.java
View file @
7497e15c
...
@@ -104,7 +104,7 @@ public class PensionServiceController {
...
@@ -104,7 +104,7 @@ public class PensionServiceController {
public Result<PensionServiceDTO> getByServiceTypeId(@PathVariable("serviceTypeId") Long serviceTypeId){
public Result<PensionServiceDTO> getByServiceTypeId(@PathVariable("serviceTypeId") Long serviceTypeId){
List<PensionServiceDTO> data = baseMapper.selectList(
List<PensionServiceDTO> data = baseMapper.selectList(
new QueryWrapper<PensionServiceDTO>().lambda()
new QueryWrapper<PensionServiceDTO>().lambda()
.eq(PensionServiceDTO::getService
Type
Id,serviceTypeId));
.eq(PensionServiceDTO::getService
Parent
Id,serviceTypeId));
return new Result<PensionServiceDTO>().ok(data.get(0));
return new Result<PensionServiceDTO>().ok(data.get(0));
}
}
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/dao/PensionCommunityDao.java
0 → 100644
View file @
7497e15c
package
io
.
hmit
.
modules
.
serviceOrder
.
dao
;
import
io.hmit.common.dao.BaseDao
;
import
io.hmit.modules.serviceOrder.entity.PensionCommunityEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 社区表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@Mapper
public
interface
PensionCommunityDao
extends
BaseDao
<
PensionCommunityEntity
>
{
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/dto/PensionCommunityDTO.java
0 → 100644
View file @
7497e15c
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 zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@Data
@ApiModel
(
value
=
"社区表"
)
public
class
PensionCommunityDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
""
)
private
Long
id
;
@ApiModelProperty
(
value
=
""
)
private
String
name
;
@ApiModelProperty
(
value
=
"创建者dept_id"
)
private
Long
deptId
;
@ApiModelProperty
(
value
=
"创建者"
)
private
Long
creator
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"更新者"
)
private
Long
updater
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateDate
;
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/dto/PensionOrderDTO.java
View file @
7497e15c
...
@@ -94,6 +94,12 @@ public class PensionOrderDTO implements Serializable {
...
@@ -94,6 +94,12 @@ public class PensionOrderDTO implements Serializable {
@ApiModelProperty
(
value
=
"封面"
)
@ApiModelProperty
(
value
=
"封面"
)
private
String
icon
;
private
String
icon
;
@ApiModelProperty
(
value
=
"所属社区名称"
)
private
String
communityName
;
@ApiModelProperty
(
value
=
"所属社区Id"
)
private
Long
communityId
;
public
PensionOrderDTO
assemblePensionOrder
(
ReservationDTO
reservationDTO
,
UserEntity
user
){
public
PensionOrderDTO
assemblePensionOrder
(
ReservationDTO
reservationDTO
,
UserEntity
user
){
PensionOrderDTO
pensionOrder
=
new
PensionOrderDTO
();
PensionOrderDTO
pensionOrder
=
new
PensionOrderDTO
();
pensionOrder
.
setOrderNum
(
""
);
pensionOrder
.
setOrderNum
(
""
);
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/dto/PensionServiceDTO.java
View file @
7497e15c
...
@@ -28,6 +28,9 @@ public class PensionServiceDTO implements Serializable {
...
@@ -28,6 +28,9 @@ public class PensionServiceDTO implements Serializable {
@ApiModelProperty
(
value
=
"服务父类id"
)
@ApiModelProperty
(
value
=
"服务父类id"
)
private
Long
pid
;
private
Long
pid
;
@ApiModelProperty
(
value
=
"服务内容介绍"
)
private
String
serviceContent
;
@ApiModelProperty
(
value
=
"排序"
)
@ApiModelProperty
(
value
=
"排序"
)
private
Integer
sort
;
private
Integer
sort
;
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/entity/PensionCommunityEntity.java
0 → 100644
View file @
7497e15c
package
io
.
hmit
.
modules
.
serviceOrder
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.hmit.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 社区表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"pension_community"
)
public
class
PensionCommunityEntity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
*
*/
private
String
name
;
/**
* 创建者dept_id
*/
private
Long
deptId
;
/**
* 更新者
*/
private
Long
updater
;
/**
* 更新时间
*/
private
Date
updateDate
;
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/entity/PensionOrderEntity.java
View file @
7497e15c
...
@@ -99,4 +99,14 @@ public class PensionOrderEntity extends BaseEntity {
...
@@ -99,4 +99,14 @@ public class PensionOrderEntity extends BaseEntity {
* 更新时间
* 更新时间
*/
*/
private
Date
updateDate
;
private
Date
updateDate
;
/**
* 所属社区名称
*/
private
String
communityName
;
/**
* 所属社区Id
*/
private
Long
communityId
;
}
}
hmit-api/src/main/java/io/hmit/modules/serviceOrder/entity/PensionServiceEntity.java
View file @
7497e15c
...
@@ -30,6 +30,7 @@ public class PensionServiceEntity extends BaseEntity {
...
@@ -30,6 +30,7 @@ public class PensionServiceEntity extends BaseEntity {
* 服务父类id
* 服务父类id
*/
*/
private
Long
pid
;
private
Long
pid
;
/**
/**
* 排序
* 排序
*/
*/
...
@@ -78,4 +79,9 @@ public class PensionServiceEntity extends BaseEntity {
...
@@ -78,4 +79,9 @@ public class PensionServiceEntity extends BaseEntity {
* 更新时间
* 更新时间
*/
*/
private
Date
updateDate
;
private
Date
updateDate
;
/**
* 服务内容介绍
*/
private
String
serviceContent
;
}
}
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/PensionCommunityService.java
0 → 100644
View file @
7497e15c
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.PensionCommunityDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionCommunityEntity
;
/**
* 社区表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
public
interface
PensionCommunityService
extends
CrudService
<
PensionCommunityEntity
,
PensionCommunityDTO
>
{
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionCommunityServiceImpl.java
0 → 100644
View file @
7497e15c
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.PensionCommunityDao
;
import
io.hmit.modules.serviceOrder.dto.PensionCommunityDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionCommunityEntity
;
import
io.hmit.modules.serviceOrder.service.PensionCommunityService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
/**
* 社区表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-02-03
*/
@Service
public
class
PensionCommunityServiceImpl
extends
CrudServiceImpl
<
PensionCommunityDao
,
PensionCommunityEntity
,
PensionCommunityDTO
>
implements
PensionCommunityService
{
@Override
public
QueryWrapper
<
PensionCommunityEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
QueryWrapper
<
PensionCommunityEntity
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
);
return
wrapper
;
}
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionServiceTypeServiceImpl.java
View file @
7497e15c
...
@@ -91,7 +91,7 @@ public class PensionServiceTypeServiceImpl extends CrudServiceImpl<PensionServic
...
@@ -91,7 +91,7 @@ public class PensionServiceTypeServiceImpl extends CrudServiceImpl<PensionServic
/*
/*
for (PensionServiceEntity pensionService:pensionServices) {
for (PensionServiceEntity pensionService:pensionServices) {
PensionServiceTypeDTO pensionServiceTypeDTO = get(pensionService.getService
Type
Id());
PensionServiceTypeDTO pensionServiceTypeDTO = get(pensionService.getService
Parent
Id());
resultList.add(pensionServiceTypeDTO);
resultList.add(pensionServiceTypeDTO);
}
}
*/
*/
...
...
hmit-api/src/main/resources/mapper/serviceOrder/PensionCommunityDao.xml
0 → 100644
View file @
7497e15c
<?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.PensionCommunityDao"
>
<resultMap
type=
"io.hmit.modules.serviceOrder.entity.PensionCommunityEntity"
id=
"pensionCommunityMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"deptId"
column=
"dept_id"
/>
<result
property=
"creator"
column=
"creator"
/>
<result
property=
"createDate"
column=
"create_date"
/>
<result
property=
"updater"
column=
"updater"
/>
<result
property=
"updateDate"
column=
"update_date"
/>
</resultMap>
</mapper>
\ 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