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
a862aded
Commit
a862aded
authored
Mar 10, 2021
by
mlchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.添加机构表和机构服务关系表
2.添加相关类
parent
555f7347
Show whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
1223 additions
and
1 deletion
+1223
-1
PensionOrganizationController.java
...erviceOrder/controller/PensionOrganizationController.java
+116
-0
PensionOrganizationServiceController.java
...rder/controller/PensionOrganizationServiceController.java
+116
-0
PensionOrganizationDao.java
...hmit/modules/serviceOrder/dao/PensionOrganizationDao.java
+16
-0
PensionOrganizationServiceDao.java
...dules/serviceOrder/dao/PensionOrganizationServiceDao.java
+16
-0
PensionOrganizationDTO.java
...hmit/modules/serviceOrder/dto/PensionOrganizationDTO.java
+47
-0
PensionOrganizationServiceDTO.java
...dules/serviceOrder/dto/PensionOrganizationServiceDTO.java
+44
-0
PensionOrganizationEntity.java
...odules/serviceOrder/entity/PensionOrganizationEntity.java
+42
-0
PensionOrganizationServiceEntity.java
...serviceOrder/entity/PensionOrganizationServiceEntity.java
+38
-0
PensionOrganizationExcel.java
.../modules/serviceOrder/excel/PensionOrganizationExcel.java
+33
-0
PensionOrganizationServiceExcel.java
...s/serviceOrder/excel/PensionOrganizationServiceExcel.java
+31
-0
PensionOrganizationService.java
...ules/serviceOrder/service/PensionOrganizationService.java
+15
-0
PensionOrganizationServiceService.java
...rviceOrder/service/PensionOrganizationServiceService.java
+15
-0
PensionOrganizationServiceImpl.java
...iceOrder/service/impl/PensionOrganizationServiceImpl.java
+34
-0
PensionOrganizationServiceServiceImpl.java
...r/service/impl/PensionOrganizationServiceServiceImpl.java
+34
-0
PensionOrganizationDao.xml
.../resources/mapper/serviceOrder/PensionOrganizationDao.xml
+18
-0
PensionOrganizationServiceDao.xml
...ces/mapper/serviceOrder/PensionOrganizationServiceDao.xml
+17
-0
SwaggerConfig.java
hmit-api/src/main/java/io/hmit/config/SwaggerConfig.java
+1
-1
PensionOrganizationController.java
...erviceOrder/controller/PensionOrganizationController.java
+95
-0
PensionOrganizationServiceController.java
...rder/controller/PensionOrganizationServiceController.java
+95
-0
PensionOrganizationDao.java
...hmit/modules/serviceOrder/dao/PensionOrganizationDao.java
+16
-0
PensionOrganizationServiceDao.java
...dules/serviceOrder/dao/PensionOrganizationServiceDao.java
+16
-0
PensionOrganizationDTO.java
...hmit/modules/serviceOrder/dto/PensionOrganizationDTO.java
+47
-0
PensionOrganizationServiceDTO.java
...dules/serviceOrder/dto/PensionOrganizationServiceDTO.java
+44
-0
PensionOrganizationEntity.java
...odules/serviceOrder/entity/PensionOrganizationEntity.java
+42
-0
PensionOrganizationServiceEntity.java
...serviceOrder/entity/PensionOrganizationServiceEntity.java
+38
-0
PensionOrganizationExcel.java
.../modules/serviceOrder/excel/PensionOrganizationExcel.java
+33
-0
PensionOrganizationServiceExcel.java
...s/serviceOrder/excel/PensionOrganizationServiceExcel.java
+31
-0
PensionOrganizationService.java
...ules/serviceOrder/service/PensionOrganizationService.java
+15
-0
PensionOrganizationServiceService.java
...rviceOrder/service/PensionOrganizationServiceService.java
+15
-0
PensionOrganizationServiceImpl.java
...iceOrder/service/impl/PensionOrganizationServiceImpl.java
+34
-0
PensionOrganizationServiceServiceImpl.java
...r/service/impl/PensionOrganizationServiceServiceImpl.java
+34
-0
PensionOrganizationDao.xml
.../resources/mapper/serviceOrder/PensionOrganizationDao.xml
+18
-0
PensionOrganizationServiceDao.xml
...ces/mapper/serviceOrder/PensionOrganizationServiceDao.xml
+17
-0
No files found.
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrganizationController.java
0 → 100644
View file @
a862aded
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.PensionOrganizationDTO
;
import
io.hmit.modules.serviceOrder.excel.PensionOrganizationExcel
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationService
;
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-03-10
*/
@RestController
@RequestMapping
(
"serviceOrder/pensionorganization"
)
@Api
(
tags
=
"机构表"
)
public
class
PensionOrganizationController
{
@Autowired
private
PensionOrganizationService
pensionOrganizationService
;
@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:pensionorganization:page"
)
public
Result
<
PageData
<
PensionOrganizationDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
PensionOrganizationDTO
>
page
=
pensionOrganizationService
.
page
(
params
);
return
new
Result
<
PageData
<
PensionOrganizationDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
@RequiresPermissions
(
"serviceOrder:pensionorganization:info"
)
public
Result
<
PensionOrganizationDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
PensionOrganizationDTO
data
=
pensionOrganizationService
.
get
(
id
);
return
new
Result
<
PensionOrganizationDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
@LogOperation
(
"保存"
)
@RequiresPermissions
(
"serviceOrder:pensionorganization:save"
)
public
Result
save
(
@RequestBody
PensionOrganizationDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
pensionOrganizationService
.
save
(
dto
);
return
new
Result
();
}
@PutMapping
@ApiOperation
(
"修改"
)
@LogOperation
(
"修改"
)
@RequiresPermissions
(
"serviceOrder:pensionorganization:update"
)
public
Result
update
(
@RequestBody
PensionOrganizationDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
pensionOrganizationService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
@LogOperation
(
"删除"
)
@RequiresPermissions
(
"serviceOrder:pensionorganization:delete"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//校验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
pensionOrganizationService
.
delete
(
ids
);
return
new
Result
();
}
@GetMapping
(
"export"
)
@ApiOperation
(
"导出"
)
@LogOperation
(
"导出"
)
@RequiresPermissions
(
"serviceOrder:pensionorganization:export"
)
public
void
export
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
,
HttpServletResponse
response
)
throws
Exception
{
List
<
PensionOrganizationDTO
>
list
=
pensionOrganizationService
.
list
(
params
);
ExcelUtils
.
exportExcelToTarget
(
response
,
null
,
list
,
PensionOrganizationExcel
.
class
);
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrganizationServiceController.java
0 → 100644
View file @
a862aded
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.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.excel.PensionOrganizationServiceExcel
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationServiceService
;
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-03-10
*/
@RestController
@RequestMapping
(
"serviceOrder/pensionorganizationservice"
)
@Api
(
tags
=
"机构服务关系"
)
public
class
PensionOrganizationServiceController
{
@Autowired
private
PensionOrganizationServiceService
pensionOrganizationServiceService
;
@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:pensionorganizationservice:page"
)
public
Result
<
PageData
<
PensionOrganizationServiceDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
PensionOrganizationServiceDTO
>
page
=
pensionOrganizationServiceService
.
page
(
params
);
return
new
Result
<
PageData
<
PensionOrganizationServiceDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
@RequiresPermissions
(
"serviceOrder:pensionorganizationservice:info"
)
public
Result
<
PensionOrganizationServiceDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
PensionOrganizationServiceDTO
data
=
pensionOrganizationServiceService
.
get
(
id
);
return
new
Result
<
PensionOrganizationServiceDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
@LogOperation
(
"保存"
)
@RequiresPermissions
(
"serviceOrder:pensionorganizationservice:save"
)
public
Result
save
(
@RequestBody
PensionOrganizationServiceDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
pensionOrganizationServiceService
.
save
(
dto
);
return
new
Result
();
}
@PutMapping
@ApiOperation
(
"修改"
)
@LogOperation
(
"修改"
)
@RequiresPermissions
(
"serviceOrder:pensionorganizationservice:update"
)
public
Result
update
(
@RequestBody
PensionOrganizationServiceDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
pensionOrganizationServiceService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
@LogOperation
(
"删除"
)
@RequiresPermissions
(
"serviceOrder:pensionorganizationservice:delete"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//校验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
pensionOrganizationServiceService
.
delete
(
ids
);
return
new
Result
();
}
@GetMapping
(
"export"
)
@ApiOperation
(
"导出"
)
@LogOperation
(
"导出"
)
@RequiresPermissions
(
"serviceOrder:pensionorganizationservice:export"
)
public
void
export
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
,
HttpServletResponse
response
)
throws
Exception
{
List
<
PensionOrganizationServiceDTO
>
list
=
pensionOrganizationServiceService
.
list
(
params
);
ExcelUtils
.
exportExcelToTarget
(
response
,
null
,
list
,
PensionOrganizationServiceExcel
.
class
);
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dao/PensionOrganizationDao.java
0 → 100644
View file @
a862aded
package
io
.
hmit
.
modules
.
serviceOrder
.
dao
;
import
io.hmit.common.dao.BaseDao
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 机构表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-03-10
*/
@Mapper
public
interface
PensionOrganizationDao
extends
BaseDao
<
PensionOrganizationEntity
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dao/PensionOrganizationServiceDao.java
0 → 100644
View file @
a862aded
package
io
.
hmit
.
modules
.
serviceOrder
.
dao
;
import
io.hmit.common.dao.BaseDao
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 机构服务关系
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-03-10
*/
@Mapper
public
interface
PensionOrganizationServiceDao
extends
BaseDao
<
PensionOrganizationServiceEntity
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dto/PensionOrganizationDTO.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
@ApiModel
(
value
=
"机构表"
)
public
class
PensionOrganizationDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"机构名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"机构图标"
)
private
String
icon
;
@ApiModelProperty
(
value
=
"服务ID"
)
private
Long
serviceId
;
@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/PensionOrganizationServiceDTO.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
@ApiModel
(
value
=
"机构服务关系"
)
public
class
PensionOrganizationServiceDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"角色ID"
)
private
Long
organizationId
;
@ApiModelProperty
(
value
=
"服务ID"
)
private
Long
serviceId
;
@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/entity/PensionOrganizationEntity.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"pension_organization"
)
public
class
PensionOrganizationEntity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 机构名称
*/
private
String
name
;
/**
* 机构图标
*/
private
String
icon
;
/**
* 服务ID
*/
private
Long
serviceId
;
/**
* 更新者
*/
private
Long
updater
;
/**
* 更新时间
*/
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/entity/PensionOrganizationServiceEntity.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"pension_organization_service"
)
public
class
PensionOrganizationServiceEntity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 角色ID
*/
private
Long
organizationId
;
/**
* 服务ID
*/
private
Long
serviceId
;
/**
* 更新者
*/
private
Long
updater
;
/**
* 更新时间
*/
private
Date
updateDate
;
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/excel/PensionOrganizationExcel.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
public
class
PensionOrganizationExcel
{
@Excel
(
name
=
"id"
)
private
Long
id
;
@Excel
(
name
=
"机构名称"
)
private
String
name
;
@Excel
(
name
=
"机构图标"
)
private
String
icon
;
@Excel
(
name
=
"服务ID"
)
private
Long
serviceId
;
@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/PensionOrganizationServiceExcel.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
public
class
PensionOrganizationServiceExcel
{
@Excel
(
name
=
"id"
)
private
Long
id
;
@Excel
(
name
=
"角色ID"
)
private
Long
organizationId
;
@Excel
(
name
=
"服务ID"
)
private
Long
serviceId
;
@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/service/PensionOrganizationService.java
0 → 100644
View file @
a862aded
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity
;
/**
* 机构表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-03-10
*/
public
interface
PensionOrganizationService
extends
CrudService
<
PensionOrganizationEntity
,
PensionOrganizationDTO
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/PensionOrganizationServiceService.java
0 → 100644
View file @
a862aded
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
/**
* 机构服务关系
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-03-10
*/
public
interface
PensionOrganizationServiceService
extends
CrudService
<
PensionOrganizationServiceEntity
,
PensionOrganizationServiceDTO
>
{
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrganizationServiceImpl.java
0 → 100644
View file @
a862aded
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.PensionOrganizationDao
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationService
;
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-03-10
*/
@Service
public
class
PensionOrganizationServiceImpl
extends
CrudServiceImpl
<
PensionOrganizationDao
,
PensionOrganizationEntity
,
PensionOrganizationDTO
>
implements
PensionOrganizationService
{
@Override
public
QueryWrapper
<
PensionOrganizationEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
QueryWrapper
<
PensionOrganizationEntity
>
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/PensionOrganizationServiceServiceImpl.java
0 → 100644
View file @
a862aded
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.PensionOrganizationServiceDao
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationServiceService
;
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-03-10
*/
@Service
public
class
PensionOrganizationServiceServiceImpl
extends
CrudServiceImpl
<
PensionOrganizationServiceDao
,
PensionOrganizationServiceEntity
,
PensionOrganizationServiceDTO
>
implements
PensionOrganizationServiceService
{
@Override
public
QueryWrapper
<
PensionOrganizationServiceEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
QueryWrapper
<
PensionOrganizationServiceEntity
>
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/PensionOrganizationDao.xml
0 → 100644
View file @
a862aded
<?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.PensionOrganizationDao"
>
<resultMap
type=
"io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity"
id=
"pensionOrganizationMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"icon"
column=
"icon"
/>
<result
property=
"serviceId"
column=
"service_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-admin/src/main/resources/mapper/serviceOrder/PensionOrganizationServiceDao.xml
0 → 100644
View file @
a862aded
<?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.PensionOrganizationServiceDao"
>
<resultMap
type=
"io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity"
id=
"pensionOrganizationServiceMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"organizationId"
column=
"organization_id"
/>
<result
property=
"serviceId"
column=
"service_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/config/SwaggerConfig.java
View file @
a862aded
...
...
@@ -27,7 +27,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-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrganizationController.java
0 → 100644
View file @
a862aded
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.PensionOrganizationDTO
;
import
io.hmit.modules.serviceOrder.excel.PensionOrganizationExcel
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationService
;
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-03-10
*/
@RestController
@RequestMapping
(
"serviceOrder/pensionorganization"
)
@Api
(
tags
=
"机构表"
)
public
class
PensionOrganizationController
{
@Autowired
private
PensionOrganizationService
pensionOrganizationService
;
@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
<
PensionOrganizationDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
PensionOrganizationDTO
>
page
=
pensionOrganizationService
.
page
(
params
);
return
new
Result
<
PageData
<
PensionOrganizationDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
public
Result
<
PensionOrganizationDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
PensionOrganizationDTO
data
=
pensionOrganizationService
.
get
(
id
);
return
new
Result
<
PensionOrganizationDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
public
Result
save
(
@RequestBody
PensionOrganizationDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
pensionOrganizationService
.
save
(
dto
);
return
new
Result
();
}
@PutMapping
@ApiOperation
(
"修改"
)
public
Result
update
(
@RequestBody
PensionOrganizationDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
pensionOrganizationService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//校验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
pensionOrganizationService
.
delete
(
ids
);
return
new
Result
();
}
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrganizationServiceController.java
0 → 100644
View file @
a862aded
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.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.excel.PensionOrganizationServiceExcel
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationServiceService
;
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-03-10
*/
@RestController
@RequestMapping
(
"serviceOrder/pensionorganizationservice"
)
@Api
(
tags
=
"机构服务关系"
)
public
class
PensionOrganizationServiceController
{
@Autowired
private
PensionOrganizationServiceService
pensionOrganizationServiceService
;
@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
<
PensionOrganizationServiceDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
PensionOrganizationServiceDTO
>
page
=
pensionOrganizationServiceService
.
page
(
params
);
return
new
Result
<
PageData
<
PensionOrganizationServiceDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
public
Result
<
PensionOrganizationServiceDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
PensionOrganizationServiceDTO
data
=
pensionOrganizationServiceService
.
get
(
id
);
return
new
Result
<
PensionOrganizationServiceDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
public
Result
save
(
@RequestBody
PensionOrganizationServiceDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
pensionOrganizationServiceService
.
save
(
dto
);
return
new
Result
();
}
@PutMapping
@ApiOperation
(
"修改"
)
public
Result
update
(
@RequestBody
PensionOrganizationServiceDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
pensionOrganizationServiceService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//校验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
pensionOrganizationServiceService
.
delete
(
ids
);
return
new
Result
();
}
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/dao/PensionOrganizationDao.java
0 → 100644
View file @
a862aded
package
io
.
hmit
.
modules
.
serviceOrder
.
dao
;
import
io.hmit.common.dao.BaseDao
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 机构表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-03-10
*/
@Mapper
public
interface
PensionOrganizationDao
extends
BaseDao
<
PensionOrganizationEntity
>
{
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/dao/PensionOrganizationServiceDao.java
0 → 100644
View file @
a862aded
package
io
.
hmit
.
modules
.
serviceOrder
.
dao
;
import
io.hmit.common.dao.BaseDao
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* 机构服务关系
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-03-10
*/
@Mapper
public
interface
PensionOrganizationServiceDao
extends
BaseDao
<
PensionOrganizationServiceEntity
>
{
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/dto/PensionOrganizationDTO.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
@ApiModel
(
value
=
"机构表"
)
public
class
PensionOrganizationDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"机构名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"机构图标"
)
private
String
icon
;
@ApiModelProperty
(
value
=
"服务ID"
)
private
Long
serviceId
;
@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/PensionOrganizationServiceDTO.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
@ApiModel
(
value
=
"机构服务关系"
)
public
class
PensionOrganizationServiceDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"角色ID"
)
private
Long
organizationId
;
@ApiModelProperty
(
value
=
"服务ID"
)
private
Long
serviceId
;
@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/entity/PensionOrganizationEntity.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"pension_organization"
)
public
class
PensionOrganizationEntity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 机构名称
*/
private
String
name
;
/**
* 机构图标
*/
private
String
icon
;
/**
* 服务ID
*/
private
Long
serviceId
;
/**
* 更新者
*/
private
Long
updater
;
/**
* 更新时间
*/
private
Date
updateDate
;
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/entity/PensionOrganizationServiceEntity.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"pension_organization_service"
)
public
class
PensionOrganizationServiceEntity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 角色ID
*/
private
Long
organizationId
;
/**
* 服务ID
*/
private
Long
serviceId
;
/**
* 更新者
*/
private
Long
updater
;
/**
* 更新时间
*/
private
Date
updateDate
;
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/excel/PensionOrganizationExcel.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
public
class
PensionOrganizationExcel
{
@Excel
(
name
=
"id"
)
private
Long
id
;
@Excel
(
name
=
"机构名称"
)
private
String
name
;
@Excel
(
name
=
"机构图标"
)
private
String
icon
;
@Excel
(
name
=
"服务ID"
)
private
Long
serviceId
;
@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-api/src/main/java/io/hmit/modules/serviceOrder/excel/PensionOrganizationServiceExcel.java
0 → 100644
View file @
a862aded
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-03-10
*/
@Data
public
class
PensionOrganizationServiceExcel
{
@Excel
(
name
=
"id"
)
private
Long
id
;
@Excel
(
name
=
"角色ID"
)
private
Long
organizationId
;
@Excel
(
name
=
"服务ID"
)
private
Long
serviceId
;
@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-api/src/main/java/io/hmit/modules/serviceOrder/service/PensionOrganizationService.java
0 → 100644
View file @
a862aded
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity
;
/**
* 机构表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-03-10
*/
public
interface
PensionOrganizationService
extends
CrudService
<
PensionOrganizationEntity
,
PensionOrganizationDTO
>
{
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/PensionOrganizationServiceService.java
0 → 100644
View file @
a862aded
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
/**
* 机构服务关系
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-03-10
*/
public
interface
PensionOrganizationServiceService
extends
CrudService
<
PensionOrganizationServiceEntity
,
PensionOrganizationServiceDTO
>
{
}
\ No newline at end of file
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrganizationServiceImpl.java
0 → 100644
View file @
a862aded
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.PensionOrganizationDao
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationService
;
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-03-10
*/
@Service
public
class
PensionOrganizationServiceImpl
extends
CrudServiceImpl
<
PensionOrganizationDao
,
PensionOrganizationEntity
,
PensionOrganizationDTO
>
implements
PensionOrganizationService
{
@Override
public
QueryWrapper
<
PensionOrganizationEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
QueryWrapper
<
PensionOrganizationEntity
>
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/PensionOrganizationServiceServiceImpl.java
0 → 100644
View file @
a862aded
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.PensionOrganizationServiceDao
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationServiceService
;
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-03-10
*/
@Service
public
class
PensionOrganizationServiceServiceImpl
extends
CrudServiceImpl
<
PensionOrganizationServiceDao
,
PensionOrganizationServiceEntity
,
PensionOrganizationServiceDTO
>
implements
PensionOrganizationServiceService
{
@Override
public
QueryWrapper
<
PensionOrganizationServiceEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
QueryWrapper
<
PensionOrganizationServiceEntity
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
);
return
wrapper
;
}
}
\ No newline at end of file
hmit-api/src/main/resources/mapper/serviceOrder/PensionOrganizationDao.xml
0 → 100644
View file @
a862aded
<?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.PensionOrganizationDao"
>
<resultMap
type=
"io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity"
id=
"pensionOrganizationMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"icon"
column=
"icon"
/>
<result
property=
"serviceId"
column=
"service_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/resources/mapper/serviceOrder/PensionOrganizationServiceDao.xml
0 → 100644
View file @
a862aded
<?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.PensionOrganizationServiceDao"
>
<resultMap
type=
"io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity"
id=
"pensionOrganizationServiceMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"organizationId"
column=
"organization_id"
/>
<result
property=
"serviceId"
column=
"service_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