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
2e8f45ff
Commit
2e8f45ff
authored
May 12, 2021
by
Shen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 机构端订单查询绑定管理员
2. 添加”获取全部机构列表“接口
parent
c32a8d16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
112 additions
and
5 deletions
+112
-5
PensionOrderController.java
...dules/serviceOrder/controller/PensionOrderController.java
+6
-1
PensionOrganizationController.java
...erviceOrder/controller/PensionOrganizationController.java
+8
-0
PensionOrganizationServiceController.java
...rder/controller/PensionOrganizationServiceController.java
+14
-0
PensionOrganizationDao.java
...hmit/modules/serviceOrder/dao/PensionOrganizationDao.java
+5
-1
PensionServiceDao.java
...a/io/hmit/modules/serviceOrder/dao/PensionServiceDao.java
+5
-1
PensionOrganizationDTO.java
...hmit/modules/serviceOrder/dto/PensionOrganizationDTO.java
+3
-0
PensionOrganizationEntity.java
...odules/serviceOrder/entity/PensionOrganizationEntity.java
+4
-0
PensionOrganizationService.java
...ules/serviceOrder/service/PensionOrganizationService.java
+3
-0
PensionOrganizationServiceService.java
...rviceOrder/service/PensionOrganizationServiceService.java
+7
-0
PensionServiceService.java
...t/modules/serviceOrder/service/PensionServiceService.java
+3
-0
PensionOrganizationServiceImpl.java
...iceOrder/service/impl/PensionOrganizationServiceImpl.java
+9
-0
PensionOrganizationServiceServiceImpl.java
...r/service/impl/PensionOrganizationServiceServiceImpl.java
+28
-0
PensionServiceServiceImpl.java
.../serviceOrder/service/impl/PensionServiceServiceImpl.java
+9
-0
PensionOrganizationDao.xml
.../resources/mapper/serviceOrder/PensionOrganizationDao.xml
+3
-0
PensionOrganizationServiceDao.xml
...ces/mapper/serviceOrder/PensionOrganizationServiceDao.xml
+2
-2
PensionServiceDao.xml
.../main/resources/mapper/serviceOrder/PensionServiceDao.xml
+3
-0
No files found.
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrderController.java
View file @
2e8f45ff
...
@@ -85,7 +85,12 @@ public class PensionOrderController {
...
@@ -85,7 +85,12 @@ public class PensionOrderController {
})
})
public
Result
<
PageData
<
PensionOrderDTO
>>
organization
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
public
Result
<
PageData
<
PensionOrderDTO
>>
organization
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
//登录->查询登录人员所属机构ID->机构ID查询服务ID(List)->服务ID + 状态查询订单(List)
//登录->查询登录人员所属机构ID->机构ID查询服务ID(List)->服务ID + 状态查询订单(List)
PageData
<
PensionOrderDTO
>
page
=
pensionOrderService
.
getOrganizationOrder
(
params
,
SecurityUser
.
getUserId
());
PageData
<
PensionOrderDTO
>
page
=
null
;
if
(
SecurityUser
.
getUserId
()
==
1067246875800000001L
)
{
page
=
pensionOrderService
.
page
(
params
);
}
else
{
page
=
pensionOrderService
.
getOrganizationOrder
(
params
,
SecurityUser
.
getUserId
());
}
return
new
Result
<
PageData
<
PensionOrderDTO
>>().
ok
(
page
);
return
new
Result
<
PageData
<
PensionOrderDTO
>>().
ok
(
page
);
}
}
...
...
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrganizationController.java
View file @
2e8f45ff
...
@@ -113,4 +113,12 @@ public class PensionOrganizationController {
...
@@ -113,4 +113,12 @@ public class PensionOrganizationController {
ExcelUtils
.
exportExcelToTarget
(
response
,
null
,
list
,
PensionOrganizationExcel
.
class
);
ExcelUtils
.
exportExcelToTarget
(
response
,
null
,
list
,
PensionOrganizationExcel
.
class
);
}
}
@GetMapping
(
"getAllOrganization"
)
@ApiOperation
(
"获取全部机构列表"
)
public
Result
<
List
<
PensionOrganizationDTO
>>
getAllOrganization
(){
List
<
PensionOrganizationDTO
>
organizationDTOList
=
pensionOrganizationService
.
getAllOrganization
();
return
new
Result
<
List
<
PensionOrganizationDTO
>>().
ok
(
organizationDTOList
);
}
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrganizationServiceController.java
View file @
2e8f45ff
...
@@ -10,7 +10,9 @@ import io.hmit.common.validator.ValidatorUtils;
...
@@ -10,7 +10,9 @@ import io.hmit.common.validator.ValidatorUtils;
import
io.hmit.common.validator.group.AddGroup
;
import
io.hmit.common.validator.group.AddGroup
;
import
io.hmit.common.validator.group.DefaultGroup
;
import
io.hmit.common.validator.group.DefaultGroup
;
import
io.hmit.common.validator.group.UpdateGroup
;
import
io.hmit.common.validator.group.UpdateGroup
;
import
io.hmit.modules.security.user.SecurityUser
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.dto.PensionServiceDTO
;
import
io.hmit.modules.serviceOrder.excel.PensionOrganizationServiceExcel
;
import
io.hmit.modules.serviceOrder.excel.PensionOrganizationServiceExcel
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationServiceService
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationServiceService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -64,6 +66,18 @@ public class PensionOrganizationServiceController {
...
@@ -64,6 +66,18 @@ public class PensionOrganizationServiceController {
return
new
Result
<
PensionOrganizationServiceDTO
>().
ok
(
data
);
return
new
Result
<
PensionOrganizationServiceDTO
>().
ok
(
data
);
}
}
@GetMapping
(
"getOrganizationService"
)
@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"
)
})
// @RequiresPermissions("serviceOrder:pensionorganizationservice:info")
public
Result
<
PageData
<
PensionServiceDTO
>>
getOrganizationService
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
PensionServiceDTO
>
pensionServiceDTO
=
pensionOrganizationServiceService
.
getOrganizationServiceByUserId
(
SecurityUser
.
getUserId
(),
params
);
return
new
Result
<
PageData
<
PensionServiceDTO
>>().
ok
(
pensionServiceDTO
);
}
@PostMapping
@PostMapping
@ApiOperation
(
"保存"
)
@ApiOperation
(
"保存"
)
@LogOperation
(
"保存"
)
@LogOperation
(
"保存"
)
...
...
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dao/PensionOrganizationDao.java
View file @
2e8f45ff
...
@@ -4,6 +4,8 @@ import io.hmit.common.dao.BaseDao;
...
@@ -4,6 +4,8 @@ import io.hmit.common.dao.BaseDao;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
/**
/**
* 机构表
* 机构表
*
*
...
@@ -12,5 +14,7 @@ import org.apache.ibatis.annotations.Mapper;
...
@@ -12,5 +14,7 @@ import org.apache.ibatis.annotations.Mapper;
*/
*/
@Mapper
@Mapper
public
interface
PensionOrganizationDao
extends
BaseDao
<
PensionOrganizationEntity
>
{
public
interface
PensionOrganizationDao
extends
BaseDao
<
PensionOrganizationEntity
>
{
List
<
PensionOrganizationEntity
>
getAllOrganization
();
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dao/PensionServiceDao.java
View file @
2e8f45ff
...
@@ -4,6 +4,8 @@ import io.hmit.common.dao.BaseDao;
...
@@ -4,6 +4,8 @@ import io.hmit.common.dao.BaseDao;
import
io.hmit.modules.serviceOrder.entity.PensionServiceEntity
;
import
io.hmit.modules.serviceOrder.entity.PensionServiceEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
/**
/**
* 服务表
* 服务表
*
*
...
@@ -12,5 +14,7 @@ import org.apache.ibatis.annotations.Mapper;
...
@@ -12,5 +14,7 @@ import org.apache.ibatis.annotations.Mapper;
*/
*/
@Mapper
@Mapper
public
interface
PensionServiceDao
extends
BaseDao
<
PensionServiceEntity
>
{
public
interface
PensionServiceDao
extends
BaseDao
<
PensionServiceEntity
>
{
List
<
PensionServiceEntity
>
getAllService
();
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dto/PensionOrganizationDTO.java
View file @
2e8f45ff
...
@@ -31,6 +31,9 @@ public class PensionOrganizationDTO implements Serializable {
...
@@ -31,6 +31,9 @@ public class PensionOrganizationDTO implements Serializable {
@ApiModelProperty
(
value
=
"机构描述"
)
@ApiModelProperty
(
value
=
"机构描述"
)
private
String
description
;
private
String
description
;
@ApiModelProperty
(
value
=
"服务区域"
)
private
String
serviceArea
;
@ApiModelProperty
(
value
=
"创建者"
)
@ApiModelProperty
(
value
=
"创建者"
)
private
Long
creator
;
private
Long
creator
;
...
...
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/entity/PensionOrganizationEntity.java
View file @
2e8f45ff
...
@@ -31,4 +31,8 @@ public class PensionOrganizationEntity extends BaseEntity {
...
@@ -31,4 +31,8 @@ public class PensionOrganizationEntity extends BaseEntity {
* 机构描述
* 机构描述
*/
*/
private
String
description
;
private
String
description
;
/**
* 服务区域
*/
private
String
serviceArea
;
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/PensionOrganizationService.java
View file @
2e8f45ff
...
@@ -15,4 +15,7 @@ import java.util.List;
...
@@ -15,4 +15,7 @@ import java.util.List;
public
interface
PensionOrganizationService
extends
CrudService
<
PensionOrganizationEntity
,
PensionOrganizationDTO
>
{
public
interface
PensionOrganizationService
extends
CrudService
<
PensionOrganizationEntity
,
PensionOrganizationDTO
>
{
List
<
Long
>
findServiceIdListByServiceUserId
(
Long
userId
);
List
<
Long
>
findServiceIdListByServiceUserId
(
Long
userId
);
List
<
PensionOrganizationDTO
>
getAllOrganization
();
}
}
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/PensionOrganizationServiceService.java
View file @
2e8f45ff
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
package
io
.
hmit
.
modules
.
serviceOrder
.
service
;
import
io.hmit.common.page.PageData
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.dto.PensionServiceDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 机构服务关系
* 机构服务关系
*
*
...
@@ -12,4 +17,6 @@ import io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity;
...
@@ -12,4 +17,6 @@ import io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity;
*/
*/
public
interface
PensionOrganizationServiceService
extends
CrudService
<
PensionOrganizationServiceEntity
,
PensionOrganizationServiceDTO
>
{
public
interface
PensionOrganizationServiceService
extends
CrudService
<
PensionOrganizationServiceEntity
,
PensionOrganizationServiceDTO
>
{
PageData
<
PensionServiceDTO
>
getOrganizationServiceByUserId
(
Long
userId
,
Map
<
String
,
Object
>
params
);
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/PensionServiceService.java
View file @
2e8f45ff
...
@@ -16,4 +16,7 @@ import java.util.Map;
...
@@ -16,4 +16,7 @@ import java.util.Map;
public
interface
PensionServiceService
extends
CrudService
<
PensionServiceEntity
,
PensionServiceDTO
>
{
public
interface
PensionServiceService
extends
CrudService
<
PensionServiceEntity
,
PensionServiceDTO
>
{
List
<
PensionServiceDTO
>
getServiceTree
(
Map
<
String
,
Object
>
params
);
List
<
PensionServiceDTO
>
getServiceTree
(
Map
<
String
,
Object
>
params
);
List
<
PensionServiceDTO
>
getAllService
();
}
}
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrganizationServiceImpl.java
View file @
2e8f45ff
...
@@ -2,6 +2,7 @@ package io.hmit.modules.serviceOrder.service.impl;
...
@@ -2,6 +2,7 @@ package io.hmit.modules.serviceOrder.service.impl;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
io.hmit.common.service.impl.CrudServiceImpl
;
import
io.hmit.common.service.impl.CrudServiceImpl
;
import
io.hmit.common.utils.ConvertUtils
;
import
io.hmit.modules.serviceOrder.dao.PensionOrganizationDao
;
import
io.hmit.modules.serviceOrder.dao.PensionOrganizationDao
;
import
io.hmit.modules.serviceOrder.dao.PensionOrganizationServiceDao
;
import
io.hmit.modules.serviceOrder.dao.PensionOrganizationServiceDao
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationDTO
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationDTO
;
...
@@ -26,6 +27,9 @@ public class PensionOrganizationServiceImpl extends CrudServiceImpl<PensionOrgan
...
@@ -26,6 +27,9 @@ public class PensionOrganizationServiceImpl extends CrudServiceImpl<PensionOrgan
@Autowired
@Autowired
private
PensionOrganizationServiceDao
pensionOrganizationServiceDao
;
private
PensionOrganizationServiceDao
pensionOrganizationServiceDao
;
@Autowired
private
PensionOrganizationDao
pensionOrganizationDao
;
@Override
@Override
public
QueryWrapper
<
PensionOrganizationEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
public
QueryWrapper
<
PensionOrganizationEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
String
id
=
(
String
)
params
.
get
(
"id"
);
...
@@ -41,4 +45,9 @@ public class PensionOrganizationServiceImpl extends CrudServiceImpl<PensionOrgan
...
@@ -41,4 +45,9 @@ public class PensionOrganizationServiceImpl extends CrudServiceImpl<PensionOrgan
public
List
<
Long
>
findServiceIdListByServiceUserId
(
Long
userId
)
{
public
List
<
Long
>
findServiceIdListByServiceUserId
(
Long
userId
)
{
return
pensionOrganizationServiceDao
.
findServiceIdListByServiceUserId
(
userId
);
return
pensionOrganizationServiceDao
.
findServiceIdListByServiceUserId
(
userId
);
}
}
@Override
public
List
<
PensionOrganizationDTO
>
getAllOrganization
()
{
return
ConvertUtils
.
sourceToTarget
(
pensionOrganizationDao
.
getAllOrganization
(),
PensionOrganizationDTO
.
class
);
}
}
}
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrganizationServiceServiceImpl.java
View file @
2e8f45ff
package
io
.
hmit
.
modules
.
serviceOrder
.
service
.
impl
;
package
io
.
hmit
.
modules
.
serviceOrder
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
io.hmit.common.page.PageData
;
import
io.hmit.common.service.impl.CrudServiceImpl
;
import
io.hmit.common.service.impl.CrudServiceImpl
;
import
io.hmit.common.utils.SubListForPageUtil
;
import
io.hmit.modules.serviceOrder.dao.PensionOrganizationServiceDao
;
import
io.hmit.modules.serviceOrder.dao.PensionOrganizationServiceDao
;
import
io.hmit.modules.serviceOrder.dto.PensionOrderDTO
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.dto.PensionOrganizationServiceDTO
;
import
io.hmit.modules.serviceOrder.dto.PensionServiceDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
import
io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationServiceService
;
import
io.hmit.modules.serviceOrder.service.PensionOrganizationServiceService
;
import
io.hmit.modules.serviceOrder.service.PensionServiceService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -30,5 +38,25 @@ public class PensionOrganizationServiceServiceImpl extends CrudServiceImpl<Pensi
...
@@ -30,5 +38,25 @@ public class PensionOrganizationServiceServiceImpl extends CrudServiceImpl<Pensi
return
wrapper
;
return
wrapper
;
}
}
@Autowired
private
PensionOrganizationServiceDao
pensionOrganizationServiceDao
;
@Autowired
private
PensionServiceService
pensionServiceService
;
@Override
public
PageData
<
PensionServiceDTO
>
getOrganizationServiceByUserId
(
Long
userId
,
Map
<
String
,
Object
>
params
)
{
List
<
Long
>
serviceIdListByServiceUserId
=
new
ArrayList
<>();
List
<
PensionServiceDTO
>
dtos
=
new
ArrayList
<>();
if
(
userId
==
1067246875800000001L
)
{
dtos
=
pensionServiceService
.
getAllService
();
}
else
{
serviceIdListByServiceUserId
=
pensionOrganizationServiceDao
.
findServiceIdListByServiceUserId
(
userId
);
for
(
Long
id
:
serviceIdListByServiceUserId
)
{
PensionServiceDTO
pensionServiceDTO
=
pensionServiceService
.
get
(
id
);
dtos
.
add
(
pensionServiceDTO
);
}
}
return
getPageData
(
SubListForPageUtil
.
getSubList
(
params
,
dtos
),
dtos
.
size
(),
PensionServiceDTO
.
class
);
}
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionServiceServiceImpl.java
View file @
2e8f45ff
...
@@ -28,6 +28,10 @@ public class PensionServiceServiceImpl extends CrudServiceImpl<PensionServiceDao
...
@@ -28,6 +28,10 @@ public class PensionServiceServiceImpl extends CrudServiceImpl<PensionServiceDao
@Autowired
@Autowired
private
PensionServiceService
pensionServiceService
;
private
PensionServiceService
pensionServiceService
;
@Autowired
private
PensionServiceDao
pensionServiceDao
;
@Override
@Override
public
QueryWrapper
<
PensionServiceEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
public
QueryWrapper
<
PensionServiceEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
String
id
=
(
String
)
params
.
get
(
"id"
);
String
id
=
(
String
)
params
.
get
(
"id"
);
...
@@ -52,4 +56,9 @@ public class PensionServiceServiceImpl extends CrudServiceImpl<PensionServiceDao
...
@@ -52,4 +56,9 @@ public class PensionServiceServiceImpl extends CrudServiceImpl<PensionServiceDao
return
TreeUtils
.
build
(
dtos
);
return
TreeUtils
.
build
(
dtos
);
}
}
@Override
public
List
<
PensionServiceDTO
>
getAllService
()
{
return
ConvertUtils
.
sourceToTarget
(
pensionServiceDao
.
getAllService
(),
PensionServiceDTO
.
class
);
}
}
}
hmit-admin/src/main/resources/mapper/serviceOrder/PensionOrganizationDao.xml
View file @
2e8f45ff
...
@@ -12,5 +12,8 @@
...
@@ -12,5 +12,8 @@
<result
property=
"createDate"
column=
"create_date"
/>
<result
property=
"createDate"
column=
"create_date"
/>
</resultMap>
</resultMap>
<select
id=
"getAllOrganization"
resultType=
"io.hmit.modules.serviceOrder.entity.PensionOrganizationEntity"
>
SELECT po.id, po.name, po.icon FROM pension_organization po
</select>
</mapper>
</mapper>
\ No newline at end of file
hmit-admin/src/main/resources/mapper/serviceOrder/PensionOrganizationServiceDao.xml
View file @
2e8f45ff
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
</resultMap>
</resultMap>
<select
id=
"findServiceIdListByServiceUserId"
resultType=
"Long"
>
<select
id=
"findServiceIdListByServiceUserId"
resultType=
"Long"
>
SELECT pos.service_id FROM pension_organization_user pou, pension_organization_service pos
,tb_user tu
SELECT pos.service_id FROM pension_organization_user pou, pension_organization_service pos
WHERE pou.organization_id = pos.organization_id and
tu.id= pou.user_id and tu.user_id
= #{userId}
WHERE pou.organization_id = pos.organization_id and
pou.user_id
= #{userId}
</select>
</select>
...
...
hmit-admin/src/main/resources/mapper/serviceOrder/PensionServiceDao.xml
View file @
2e8f45ff
...
@@ -23,5 +23,8 @@
...
@@ -23,5 +23,8 @@
<result
property=
"updateDate"
column=
"update_date"
/>
<result
property=
"updateDate"
column=
"update_date"
/>
</resultMap>
</resultMap>
<select
id=
"getAllService"
resultType=
"io.hmit.modules.serviceOrder.entity.PensionServiceEntity"
>
SELECT * FROM pension_service
</select>
</mapper>
</mapper>
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