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
b15b8e0c
Commit
b15b8e0c
authored
May 20, 2021
by
Shen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复查看修改服务详情时机构关联信息
parent
3897d658
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
2 deletions
+42
-2
PensionServiceController.java
...les/serviceOrder/controller/PensionServiceController.java
+12
-0
PensionOrganizationServiceDao.java
...dules/serviceOrder/dao/PensionOrganizationServiceDao.java
+5
-1
PensionOrganizationServiceService.java
...rviceOrder/service/PensionOrganizationServiceService.java
+3
-0
PensionOrganizationServiceServiceImpl.java
...r/service/impl/PensionOrganizationServiceServiceImpl.java
+11
-0
PensionOrganizationServiceDao.xml
...ces/mapper/serviceOrder/PensionOrganizationServiceDao.xml
+11
-1
No files found.
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/controller/PensionServiceController.java
View file @
b15b8e0c
...
@@ -100,6 +100,7 @@ public class PensionServiceController {
...
@@ -100,6 +100,7 @@ public class PensionServiceController {
param
.
put
(
"serviceId"
,
data
.
getId
());
param
.
put
(
"serviceId"
,
data
.
getId
());
List
<
PensionServiceDocumentDTO
>
pensionServiceDocumentDTOList
=
pensionServiceDocumentService
.
list
(
param
);
List
<
PensionServiceDocumentDTO
>
pensionServiceDocumentDTOList
=
pensionServiceDocumentService
.
list
(
param
);
data
.
setPensionServiceDocumentDTOList
(
pensionServiceDocumentDTOList
);
data
.
setPensionServiceDocumentDTOList
(
pensionServiceDocumentDTOList
);
data
.
setServiceOrgId
(
pensionOrganizationServiceService
.
getOrgIdByServiceId
(
data
.
getId
()));
return
new
Result
<
PensionServiceDTO
>().
ok
(
data
);
return
new
Result
<
PensionServiceDTO
>().
ok
(
data
);
}
}
...
@@ -150,6 +151,17 @@ public class PensionServiceController {
...
@@ -150,6 +151,17 @@ public class PensionServiceController {
pensionServiceDocumentService
.
save
(
pensionServiceDocumentDTO
);
pensionServiceDocumentService
.
save
(
pensionServiceDocumentDTO
);
}
}
}
}
//修改机构服务关系
PensionOrganizationServiceDTO
pensionOrganizationServiceDTO
=
pensionOrganizationServiceService
.
getByServiceId
(
dto
.
getId
());
if
(
null
==
pensionOrganizationServiceDTO
)
{
pensionOrganizationServiceDTO
=
new
PensionOrganizationServiceDTO
();
pensionOrganizationServiceDTO
.
setServiceId
(
dto
.
getId
());
pensionOrganizationServiceDTO
.
setOrganizationId
(
dto
.
getServiceOrgId
());
pensionOrganizationServiceService
.
save
(
pensionOrganizationServiceDTO
);
}
else
{
pensionOrganizationServiceDTO
.
setOrganizationId
(
dto
.
getServiceOrgId
());
pensionOrganizationServiceService
.
update
(
pensionOrganizationServiceDTO
);
}
return
new
Result
();
return
new
Result
();
}
}
...
...
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dao/PensionOrganizationServiceDao.java
View file @
b15b8e0c
...
@@ -23,6 +23,10 @@ public interface PensionOrganizationServiceDao extends BaseDao<PensionOrganizati
...
@@ -23,6 +23,10 @@ public interface PensionOrganizationServiceDao extends BaseDao<PensionOrganizati
Long
getUserOrgId
(
Long
userId
);
Long
getUserOrgId
(
Long
userId
);
Long
findOrgIdByServiceId
(
Long
orgId
);
Long
findOrgIdByServiceId
(
Long
serviceId
);
Long
findOrgIdByServiceIdForAdmin
(
Long
serviceId
);
PensionOrganizationServiceEntity
getByServiceId
(
Long
serviceId
);
}
}
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/PensionOrganizationServiceService.java
View file @
b15b8e0c
...
@@ -19,4 +19,7 @@ public interface PensionOrganizationServiceService extends CrudService<PensionOr
...
@@ -19,4 +19,7 @@ public interface PensionOrganizationServiceService extends CrudService<PensionOr
PageData
<
PensionServiceDTO
>
getOrganizationServiceByUserId
(
Long
userId
,
Map
<
String
,
Object
>
params
);
PageData
<
PensionServiceDTO
>
getOrganizationServiceByUserId
(
Long
userId
,
Map
<
String
,
Object
>
params
);
Long
getOrgIdByServiceId
(
Long
serviceId
);
PensionOrganizationServiceDTO
getByServiceId
(
Long
serviceId
);
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrganizationServiceServiceImpl.java
View file @
b15b8e0c
...
@@ -3,6 +3,7 @@ package io.hmit.modules.serviceOrder.service.impl;
...
@@ -3,6 +3,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.page.PageData
;
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.ConvertUtils
;
import
io.hmit.common.utils.SubListForPageUtil
;
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.PensionOrderDTO
;
...
@@ -59,4 +60,14 @@ public class PensionOrganizationServiceServiceImpl extends CrudServiceImpl<Pensi
...
@@ -59,4 +60,14 @@ public class PensionOrganizationServiceServiceImpl extends CrudServiceImpl<Pensi
}
}
return
getPageData
(
SubListForPageUtil
.
getSubList
(
params
,
dtos
),
dtos
.
size
(),
PensionServiceDTO
.
class
);
return
getPageData
(
SubListForPageUtil
.
getSubList
(
params
,
dtos
),
dtos
.
size
(),
PensionServiceDTO
.
class
);
}
}
@Override
public
Long
getOrgIdByServiceId
(
Long
serviceId
)
{
return
pensionOrganizationServiceDao
.
findOrgIdByServiceIdForAdmin
(
serviceId
);
}
@Override
public
PensionOrganizationServiceDTO
getByServiceId
(
Long
serviceId
)
{
return
ConvertUtils
.
sourceToTarget
(
pensionOrganizationServiceDao
.
getByServiceId
(
serviceId
),
PensionOrganizationServiceDTO
.
class
);
}
}
}
\ No newline at end of file
hmit-admin/src/main/resources/mapper/serviceOrder/PensionOrganizationServiceDao.xml
View file @
b15b8e0c
...
@@ -23,7 +23,17 @@
...
@@ -23,7 +23,17 @@
<select
id=
"findOrgIdByServiceId"
resultType=
"Long"
>
<select
id=
"findOrgIdByServiceId"
resultType=
"Long"
>
SELECT pos.organization_id FROM pension_order po, pension_organization_service pos
SELECT pos.organization_id FROM pension_order po, pension_organization_service pos
WHERE po.service_id = pos.service_id AND po.id = #{orderId}
WHERE po.service_id = pos.service_id AND po.id = #{serviceId}
</select>
<select
id=
"findOrgIdByServiceIdForAdmin"
resultType=
"Long"
>
SELECT pos.organization_id FROM pension_organization_service pos
WHERE pos.service_id = #{serviceId}
</select>
<select
id=
"getByServiceId"
resultType=
"io.hmit.modules.serviceOrder.entity.PensionOrganizationServiceEntity"
>
SELECT * FROM pension_organization_service pos
WHERE pos.service_id = #{serviceId}
</select>
</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