Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
3a35ea7d
Commit
3a35ea7d
authored
Mar 10, 2022
by
duanzhihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色權限
parent
8012a268
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
9 deletions
+10
-9
ChDisableInfoChangeMapper.java
.../java/com/hungraim/ltc/dao/ChDisableInfoChangeMapper.java
+1
-1
DisableService.java
...rc/main/java/com/hungraim/ltc/service/DisableService.java
+1
-1
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+2
-2
DisableInfoChangeMapper.xml
...ice/src/main/resources/mapper/DisableInfoChangeMapper.xml
+2
-2
SystemRole.java
.../java/com/hungraim/ltc/pojo/entity/system/SystemRole.java
+0
-1
SystemUser.java
.../java/com/hungraim/ltc/pojo/entity/system/SystemUser.java
+2
-1
UserController.java
...va/com/hungraim/ltc/system/controller/UserController.java
+2
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChDisableInfoChangeMapper.java
View file @
3a35ea7d
...
@@ -21,7 +21,7 @@ public interface ChDisableInfoChangeMapper extends BaseMapper<ChDisableInfoChang
...
@@ -21,7 +21,7 @@ public interface ChDisableInfoChangeMapper extends BaseMapper<ChDisableInfoChang
@Param
(
"districtArea"
)
String
districtArea
,
@Param
(
"districtArea"
)
String
districtArea
,
@Param
(
"realName"
)
String
realName
,
@Param
(
"realName"
)
String
realName
,
@Param
(
"certiCode"
)
String
certiCode
,
@Param
(
"certiCode"
)
String
certiCode
,
@Param
(
"aplOrganName"
)
String
apl
OrganName
,
@Param
(
"aplOrganName"
)
String
srv
OrganName
,
@Param
(
"applyStatus"
)
Short
applyStatus
);
@Param
(
"applyStatus"
)
Short
applyStatus
);
/**
/**
* 失能信息变更-查看修改
* 失能信息变更-查看修改
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/DisableService.java
View file @
3a35ea7d
...
@@ -127,7 +127,7 @@ public interface DisableService {
...
@@ -127,7 +127,7 @@ public interface DisableService {
*/
*/
Page
<
DisableInfoChangeVo
>
ListDisInfoChangeExamine
(
Page
<
DisableInfoChangeVo
>
page
,
Page
<
DisableInfoChangeVo
>
ListDisInfoChangeExamine
(
Page
<
DisableInfoChangeVo
>
page
,
Long
organId
,
Boolean
isChildGroup
,
String
districtProvincial
,
String
districtCity
,
String
districtArea
,
Long
organId
,
Boolean
isChildGroup
,
String
districtProvincial
,
String
districtCity
,
String
districtArea
,
String
realName
,
String
certiCode
,
String
apl
OrganName
,
Short
applyStatus
);
String
realName
,
String
certiCode
,
String
srv
OrganName
,
Short
applyStatus
);
/**
/**
* 失能人员信息变更-查看修改
* 失能人员信息变更-查看修改
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
3a35ea7d
...
@@ -464,7 +464,7 @@ public class DisableServiceImpl implements DisableService {
...
@@ -464,7 +464,7 @@ public class DisableServiceImpl implements DisableService {
@Override
@Override
public
Page
<
DisableInfoChangeVo
>
ListDisInfoChangeExamine
(
Page
<
DisableInfoChangeVo
>
page
,
public
Page
<
DisableInfoChangeVo
>
ListDisInfoChangeExamine
(
Page
<
DisableInfoChangeVo
>
page
,
Long
organId
,
Boolean
isChildGroup
,
String
districtProvincial
,
String
districtCity
,
String
districtArea
,
Long
organId
,
Boolean
isChildGroup
,
String
districtProvincial
,
String
districtCity
,
String
districtArea
,
String
realName
,
String
certiCode
,
String
apl
OrganName
,
Short
applyStatus
)
{
String
realName
,
String
certiCode
,
String
srv
OrganName
,
Short
applyStatus
)
{
List
<
Long
>
organIds
=
null
;
List
<
Long
>
organIds
=
null
;
if
(
organId
!=
null
)
{
if
(
organId
!=
null
)
{
if
(
isChildGroup
==
null
)
{
if
(
isChildGroup
==
null
)
{
...
@@ -474,7 +474,7 @@ public class DisableServiceImpl implements DisableService {
...
@@ -474,7 +474,7 @@ public class DisableServiceImpl implements DisableService {
organIds
=
organService
.
getOrganIds
(
organId
,
isChildGroup
);
organIds
=
organService
.
getOrganIds
(
organId
,
isChildGroup
);
}
}
return
chDisableInfoChangeMapper
.
getListDisableInfoChange
(
page
,
organIds
,
districtProvincial
return
chDisableInfoChangeMapper
.
getListDisableInfoChange
(
page
,
organIds
,
districtProvincial
,
districtCity
,
districtArea
,
realName
,
certiCode
,
apl
OrganName
,
applyStatus
);
,
districtCity
,
districtArea
,
realName
,
certiCode
,
srv
OrganName
,
applyStatus
);
}
}
@Override
@Override
...
...
apply/apply-service/src/main/resources/mapper/DisableInfoChangeMapper.xml
View file @
3a35ea7d
...
@@ -47,8 +47,8 @@
...
@@ -47,8 +47,8 @@
<if
test=
"certiCode != null and certiCode != ''"
>
<if
test=
"certiCode != null and certiCode != ''"
>
and change.CERTIF_NUM = #{certiCode}
and change.CERTIF_NUM = #{certiCode}
</if>
</if>
<if
test=
"
aplOrganName != null and apl
OrganName != ''"
>
<if
test=
"
srvOrganName != null and srv
OrganName != ''"
>
and srvOrgan.SRV_ORGAN_NAME like CONCAT(CONCAT('%',#{
apl
OrganName}) ,'%')
and srvOrgan.SRV_ORGAN_NAME like CONCAT(CONCAT('%',#{
srv
OrganName}) ,'%')
</if>
</if>
<if
test=
"applyStatus != null"
>
<if
test=
"applyStatus != null"
>
and change.APPLY_STATUS = #{applyStatus}
and change.APPLY_STATUS = #{applyStatus}
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/system/SystemRole.java
View file @
3a35ea7d
...
@@ -24,5 +24,4 @@ public class SystemRole {
...
@@ -24,5 +24,4 @@ public class SystemRole {
private
Date
createdTime
;
private
Date
createdTime
;
private
Date
updatedTime
;
private
Date
updatedTime
;
}
}
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/system/SystemUser.java
View file @
3a35ea7d
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
system
;
package
com
.
hungraim
.
ltc
.
pojo
.
entity
.
system
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
@@ -16,7 +17,7 @@ import java.util.Date;
...
@@ -16,7 +17,7 @@ import java.util.Date;
@TableName
(
"LTC_USER"
)
@TableName
(
"LTC_USER"
)
public
class
SystemUser
{
public
class
SystemUser
{
@TableId
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
userId
;
private
Long
userId
;
private
String
account
;
private
String
account
;
private
String
password
;
private
String
password
;
...
...
system/system-admin-service/src/main/java/com/hungraim/ltc/system/controller/UserController.java
View file @
3a35ea7d
...
@@ -109,12 +109,13 @@ public class UserController {
...
@@ -109,12 +109,13 @@ public class UserController {
user
.
setUserStatus
(
reqUserInfo
.
getEnable
());
user
.
setUserStatus
(
reqUserInfo
.
getEnable
());
user
.
setCreatedTime
(
new
Date
());
user
.
setCreatedTime
(
new
Date
());
userInfoService
.
save
(
user
);
userInfoService
.
save
(
user
);
Long
userId
=
user
.
getUserId
();
//初始化权限
//初始化权限
List
<
Long
>
roles
=
reqUserInfo
.
getRoleIds
();
List
<
Long
>
roles
=
reqUserInfo
.
getRoleIds
();
roles
.
add
(
1L
);
roles
.
add
(
1L
);
List
<
SystemUserRole
>
roleList
=
roles
.
stream
().
map
(
roleId
->
{
List
<
SystemUserRole
>
roleList
=
roles
.
stream
().
map
(
roleId
->
{
SystemUserRole
systemUserRole
=
new
SystemUserRole
();
SystemUserRole
systemUserRole
=
new
SystemUserRole
();
systemUserRole
.
setUserId
(
user
.
getUserId
()
);
systemUserRole
.
setUserId
(
user
Id
);
systemUserRole
.
setRoleId
(
roleId
);
systemUserRole
.
setRoleId
(
roleId
);
return
systemUserRole
;
return
systemUserRole
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
...
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