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
3897d658
Commit
3897d658
authored
May 19, 2021
by
Shen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 更新用户时更新机构
2. admin管理用户列表添加机构信息
parent
11d411c4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
1 deletion
+23
-1
PensionOrganizationUserDao.java
.../modules/serviceOrder/dao/PensionOrganizationUserDao.java
+2
-0
PensionOrganizationUserService.java
.../serviceOrder/service/PensionOrganizationUserService.java
+2
-0
PensionOrganizationUserServiceImpl.java
...rder/service/impl/PensionOrganizationUserServiceImpl.java
+5
-0
SysUserController.java
...ava/io/hmit/modules/sys/controller/SysUserController.java
+9
-0
SysUserServiceImpl.java
.../io/hmit/modules/sys/service/impl/SysUserServiceImpl.java
+1
-0
PensionOrganizationUserDao.xml
...ources/mapper/serviceOrder/PensionOrganizationUserDao.xml
+3
-0
PensionEventDao.xml
...rc/main/resources/mapper/serviceOrder/PensionEventDao.xml
+1
-1
No files found.
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dao/PensionOrganizationUserDao.java
View file @
3897d658
...
...
@@ -17,4 +17,6 @@ public interface PensionOrganizationUserDao extends BaseDao<PensionOrganizationU
void
deleteByUserIds
(
Long
[]
ids
);
void
updateByUserId
(
Long
orgId
,
Long
userId
);
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/PensionOrganizationUserService.java
View file @
3897d658
...
...
@@ -16,4 +16,6 @@ public interface PensionOrganizationUserService extends CrudService<PensionOrgan
void
deleteByUserIds
(
Long
[]
ids
);
void
updateByUserId
(
Long
orgId
,
Long
userId
);
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrganizationUserServiceImpl.java
View file @
3897d658
...
...
@@ -43,4 +43,9 @@ public class PensionOrganizationUserServiceImpl extends CrudServiceImpl<PensionO
public
void
deleteByUserIds
(
Long
[]
ids
)
{
pensionOrganizationUserDao
.
deleteByUserIds
(
ids
);
}
@Override
public
void
updateByUserId
(
Long
orgId
,
Long
userId
)
{
pensionOrganizationUserDao
.
updateByUserId
(
orgId
,
userId
);
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/sys/controller/SysUserController.java
View file @
3897d658
...
...
@@ -77,6 +77,15 @@ public class SysUserController {
PageData
<
SysUserDTO
>
page
=
sysUserService
.
page
(
params
);
for
(
int
i
=
0
;
i
<
page
.
getList
().
size
();
i
++)
{
Long
uId
=
page
.
getList
().
get
(
i
).
getId
();
Long
orgId
=
pensionOrganizationUserService
.
findUserOrgId
(
uId
);
page
.
getList
().
get
(
i
).
setOrgId
(
orgId
);
try
{
page
.
getList
().
get
(
i
).
setOrgName
(
pensionOrganizationService
.
get
(
orgId
).
getName
());
}
catch
(
Exception
ignore
){}
}
return
new
Result
<
PageData
<
SysUserDTO
>>().
ok
(
page
);
}
...
...
hmit-admin/src/main/java/io/hmit/modules/sys/service/impl/SysUserServiceImpl.java
View file @
3897d658
...
...
@@ -171,6 +171,7 @@ public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntit
sysUserEntity
.
setPassword
(
password
);
if
(
null
!=
dto
.
getId
())
{
updateById
(
sysUserEntity
);
pensionOrganizationUserService
.
updateByUserId
(
dto
.
getOrgId
(),
dto
.
getId
());
}
else
{
sysUserEntity
.
setSuperAdmin
(
0
);
insert
(
sysUserEntity
);
...
...
hmit-admin/src/main/resources/mapper/serviceOrder/PensionOrganizationUserDao.xml
View file @
3897d658
...
...
@@ -23,4 +23,7 @@
</foreach>
</delete>
<update
id=
"updateByUserId"
parameterType=
"Long"
>
UPDATE pension_organization_user SET organization_id = #{orgId} WHERE user_id = #{userId}
</update>
</mapper>
\ No newline at end of file
hmit-api/src/main/resources/mapper/serviceOrder/PensionEventDao.xml
View file @
3897d658
...
...
@@ -29,7 +29,7 @@
</resultMap>
<select
id=
"getEventForUser"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionEventDTO"
>
SELECT pe.id, pe.event_title, pe.event_image_url, pe.event_org_name, pe.event_date
SELECT pe.id, pe.event_title, pe.event_image_url, pe.event_org_name, pe.event_date
, pe.create_date
FROM pension_event pe WHERE pe.status != 0 AND pe.status != 4
</select>
...
...
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