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
aa23b382
Commit
aa23b382
authored
Mar 11, 2022
by
liuxun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
9798994a
5da35f14
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
34 additions
and
28 deletions
+34
-28
ChDisableInfoChangeMapper.java
.../java/com/hungraim/ltc/dao/ChDisableInfoChangeMapper.java
+1
-1
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+2
-2
TaskMapper.java
...ervice/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
+1
-1
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+1
-1
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+2
-2
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+8
-10
SystemRole.java
.../java/com/hungraim/ltc/pojo/entity/system/SystemRole.java
+2
-2
SystemUser.java
.../java/com/hungraim/ltc/pojo/entity/system/SystemUser.java
+2
-1
DisableInfoVo.java
...va/com/hungraim/ltc/pojo/vo/governance/DisableInfoVo.java
+1
-0
DisableInfoMapper.java
...va/com/hungraim/ltc/governance/dao/DisableInfoMapper.java
+2
-1
BuildBedMapper.xml
...ces/com/hungraim/ltc/governance/mapper/BuildBedMapper.xml
+1
-1
SrvSend.xml
.../resources/com/hungraim/ltc/governance/mapper/SrvSend.xml
+3
-3
SrvTaskMapper.xml
...rces/com/hungraim/ltc/governance/mapper/SrvTaskMapper.xml
+1
-1
SuperviseOrganEmpMapper.xml
...ungraim/ltc/governance/mapper/SuperviseOrganEmpMapper.xml
+3
-0
RoleController.java
...va/com/hungraim/ltc/system/controller/RoleController.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 @
aa23b382
...
@@ -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
);
/**
/**
* 失能信息变更-查看修改
* 失能信息变更-查看修改
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
aa23b382
...
@@ -59,9 +59,9 @@ public class TaskController {
...
@@ -59,9 +59,9 @@ public class TaskController {
public
Result
<
Page
<
TaskDistributionVO
>>
taskDistributionList
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
public
Result
<
Page
<
TaskDistributionVO
>>
taskDistributionList
(
@RequestParam
(
defaultValue
=
"1"
)
Integer
pageNum
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
pageSize
,
String
organId
,
String
provincial
,
String
city
,
String
organId
,
String
provincial
,
String
city
,
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
daysRemaining
,
String
s
tatus
,
String
isReturn
,
String
area
)
{
String
daysRemaining
,
String
taskS
tatus
,
String
isReturn
,
String
area
)
{
Page
<
TaskDistributionVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
Page
<
TaskDistributionVO
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
taskService
.
taskDistributionList
(
page
,
organId
,
provincial
,
city
,
street
,
realName
,
certiCode
,
taskName
,
taskTel
,
daysRemaining
,
s
tatus
,
isReturn
,
area
);
page
=
taskService
.
taskDistributionList
(
page
,
organId
,
provincial
,
city
,
street
,
realName
,
certiCode
,
taskName
,
taskTel
,
daysRemaining
,
taskS
tatus
,
isReturn
,
area
);
return
Result
.
success
(
page
);
return
Result
.
success
(
page
);
}
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
View file @
aa23b382
...
@@ -37,7 +37,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
...
@@ -37,7 +37,7 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
*/
*/
Page
<
TaskDistributionVO
>
taskDistributionList
(
Page
<
TaskDistributionVO
>
page
,
List
<
String
>
organIds
,
String
provincial
,
String
city
,
Page
<
TaskDistributionVO
>
taskDistributionList
(
Page
<
TaskDistributionVO
>
page
,
List
<
String
>
organIds
,
String
provincial
,
String
city
,
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
daysRemaining
,
String
s
tatus
,
String
isReturn
,
String
area
);
String
daysRemaining
,
String
taskS
tatus
,
String
isReturn
,
String
area
);
/**
/**
* 评定报告录入列表
* 评定报告录入列表
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
aa23b382
...
@@ -25,7 +25,7 @@ public interface TaskService {
...
@@ -25,7 +25,7 @@ public interface TaskService {
Page
<
TaskDistributionVO
>
taskDistributionList
(
Page
<
TaskDistributionVO
>
page
,
String
organId
,
String
provincial
,
String
city
,
Page
<
TaskDistributionVO
>
taskDistributionList
(
Page
<
TaskDistributionVO
>
page
,
String
organId
,
String
provincial
,
String
city
,
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
daysRemaining
,
String
s
tatus
,
String
isReturn
,
String
area
);
String
daysRemaining
,
String
taskS
tatus
,
String
isReturn
,
String
area
);
List
<
TaskReportVO
>
taskReportList
(
String
name
,
String
certiCode
,
String
tel
);
List
<
TaskReportVO
>
taskReportList
(
String
name
,
String
certiCode
,
String
tel
);
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
aa23b382
...
@@ -67,13 +67,13 @@ public class TaskServiceImpl implements TaskService {
...
@@ -67,13 +67,13 @@ public class TaskServiceImpl implements TaskService {
@Override
@Override
public
Page
<
TaskDistributionVO
>
taskDistributionList
(
Page
<
TaskDistributionVO
>
page
,
String
organId
,
String
provincial
,
String
city
,
public
Page
<
TaskDistributionVO
>
taskDistributionList
(
Page
<
TaskDistributionVO
>
page
,
String
organId
,
String
provincial
,
String
city
,
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
street
,
String
realName
,
String
certiCode
,
String
taskName
,
String
taskTel
,
String
daysRemaining
,
String
s
tatus
,
String
isReturn
,
String
area
)
{
String
daysRemaining
,
String
taskS
tatus
,
String
isReturn
,
String
area
)
{
List
<
String
>
organIds
=
null
;
List
<
String
>
organIds
=
null
;
if
(
StrUtil
.
isNotBlank
(
organId
))
{
if
(
StrUtil
.
isNotBlank
(
organId
))
{
organIds
=
Arrays
.
asList
(
organId
.
split
(
","
));
organIds
=
Arrays
.
asList
(
organId
.
split
(
","
));
}
}
return
taskMapper
.
taskDistributionList
(
page
,
organIds
,
provincial
,
city
,
return
taskMapper
.
taskDistributionList
(
page
,
organIds
,
provincial
,
city
,
street
,
realName
,
certiCode
,
taskName
,
taskTel
,
daysRemaining
,
s
tatus
,
isReturn
,
area
);
street
,
realName
,
certiCode
,
taskName
,
taskTel
,
daysRemaining
,
taskS
tatus
,
isReturn
,
area
);
}
}
/**
/**
...
...
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
aa23b382
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<select
id=
"taskDistributionList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO"
>
<select
id=
"taskDistributionList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO"
>
select
select
task.task_id taskId,
DISTINCT
task.task_id taskId,
task.apply_id applyId,
task.apply_id applyId,
fndOrgan.ORGAN_NAME organName,
fndOrgan.ORGAN_NAME organName,
task.ORGAN_ID aprOrganId,
task.ORGAN_ID aprOrganId,
...
@@ -44,9 +44,7 @@
...
@@ -44,9 +44,7 @@
task.assign_time assignTime,
task.assign_time assignTime,
task.accept_time acceptTime,
task.accept_time acceptTime,
task.finish_time finishTime,
task.finish_time finishTime,
task.task_status taskStatus,
task.task_status taskStatus
reason.refuse_reason refuseReason,
push.refuse_remark refuseRemark
from CH_APR_TASK task
from CH_APR_TASK task
left join ch_apr_organ aprOrgan on task.apr_organ_id = aprOrgan.apr_organ_id
left join ch_apr_organ aprOrgan on task.apr_organ_id = aprOrgan.apr_organ_id
-- left join ch_srv_organ organ on aprOrgan.organ_id = organ.organ_id
-- left join ch_srv_organ organ on aprOrgan.organ_id = organ.organ_id
...
@@ -60,7 +58,7 @@
...
@@ -60,7 +58,7 @@
<where>
<where>
and task.APR_TYPE = 0
and task.APR_TYPE = 0
<if
test=
"organIds != null"
>
<if
test=
"organIds != null"
>
and task.
apr_organ_id
in
and task.
ORGAN_ID
in
<foreach
collection=
"organIds"
item=
"organId"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"organIds"
item=
"organId"
open=
"("
close=
")"
separator=
","
>
#{organId}
#{organId}
</foreach>
</foreach>
...
@@ -92,14 +90,14 @@
...
@@ -92,14 +90,14 @@
<if
test=
"daysRemaining != null and daysRemaining != ''"
>
<if
test=
"daysRemaining != null and daysRemaining != ''"
>
and (to_date(to_char(task.last_apr_date,'yyyy-MM-dd'),'yyyy-MM-dd') - to_date(to_char(sysdate,'yyyy-MM-dd'),'yyyy-MM-dd')) + 1
<
= #{daysRemaining}
and (to_date(to_char(task.last_apr_date,'yyyy-MM-dd'),'yyyy-MM-dd') - to_date(to_char(sysdate,'yyyy-MM-dd'),'yyyy-MM-dd')) + 1
<
= #{daysRemaining}
</if>
</if>
<if
test=
"
status != null and s
tatus != ''"
>
<if
test=
"
taskStatus != null and taskS
tatus != ''"
>
and task.TASK_STATUS = #{
s
tatus}
and task.TASK_STATUS = #{
taskS
tatus}
</if>
</if>
<if
test=
"isReturn != null and isReturn
== '0'
"
>
<if
test=
"isReturn != null and isReturn
!='' and isReturn == 0
"
>
and cate.is_valid = 1 and task.task_status in (0,4,5)
and cate.is_valid = 1 and task.task_status in (0,4,5)
</if>
</if>
<if
test=
"isReturn != null
and isReturn == '1'
"
>
<if
test=
"isReturn != null
and isReturn !='' and isReturn == 1
"
>
(and cate.is_valid = 0 or cate.is_valid is null)
and cate.is_valid = 0 or cate.is_valid is null
</if>
</if>
</where>
</where>
</select>
</select>
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/system/SystemRole.java
View file @
aa23b382
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,12 +17,11 @@ import java.util.Date;
...
@@ -16,12 +17,11 @@ import java.util.Date;
@TableName
(
"LTC_ROLE"
)
@TableName
(
"LTC_ROLE"
)
public
class
SystemRole
{
public
class
SystemRole
{
@TableId
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
roleId
;
private
Long
roleId
;
private
String
roleName
;
private
String
roleName
;
private
String
status
;
private
String
status
;
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 @
aa23b382
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
;
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/DisableInfoVo.java
View file @
aa23b382
...
@@ -45,6 +45,7 @@ public class DisableInfoVo extends PageInfo {
...
@@ -45,6 +45,7 @@ public class DisableInfoVo extends PageInfo {
private
Integer
starts
;
private
Integer
starts
;
private
String
acptAddress
;
private
String
acptAddress
;
private
Integer
srvSendId
;
}
}
governance/src/main/java/com/hungraim/ltc/governance/dao/DisableInfoMapper.java
View file @
aa23b382
...
@@ -13,6 +13,7 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> {
...
@@ -13,6 +13,7 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> {
@Select
(
"select s.real_name,"
+
@Select
(
"select s.real_name,"
+
"i.SRV_SEND_ID,"
+
" s.acpt_provincial,"
+
" s.acpt_provincial,"
+
" s.acpt_city,"
+
" s.acpt_city,"
+
" s.acpt_area,"
+
" s.acpt_area,"
+
...
@@ -35,5 +36,5 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> {
...
@@ -35,5 +36,5 @@ public interface DisableInfoMapper extends BaseMapper<ChDisableInfo> {
" left join ch_srv_organ j"
+
" left join ch_srv_organ j"
+
" on i.SRV_ORGAN_ID = j.SRV_ORGAN_ID"
+
" on i.SRV_ORGAN_ID = j.SRV_ORGAN_ID"
+
" where i.disab_info_id=#{disableInfoId}"
)
" where i.disab_info_id=#{disableInfoId}"
)
Page
<
DisableInfoVo
>
querySrvYet
(
Page
page
,
Integer
disableInfoId
);
Page
<
DisableInfoVo
>
querySrvYet
(
Page
page
,
Integer
disableInfoId
);
}
}
governance/src/main/resources/com/hungraim/ltc/governance/mapper/BuildBedMapper.xml
View file @
aa23b382
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
FROM CH_SRV_BUILD_BED a, CH_DISABLE_INFO b where a.DISAB_INFO_ID = b.DISAB_INFO_ID
FROM CH_SRV_BUILD_BED a, CH_DISABLE_INFO b where a.DISAB_INFO_ID = b.DISAB_INFO_ID
AND a.SRV_ORGAN_ID =#{req.srvOrganId}
AND a.SRV_ORGAN_ID =#{req.srvOrganId}
<if
test=
"req.realName != null and req.realName != ''"
>
<if
test=
"req.realName != null and req.realName != ''"
>
AND upper(a.REAL_NAME) LIKE '%' || upper#{req.realName}) || '%'
AND upper(a.REAL_NAME) LIKE '%' || upper
(
#{req.realName}) || '%'
</if>
</if>
<if
test=
"req.certiCode != null and req.certiCode != ''"
>
<if
test=
"req.certiCode != null and req.certiCode != ''"
>
AND upper(a.CERTI_CODE) = upper(#{req.certiCode})
AND upper(a.CERTI_CODE) = upper(#{req.certiCode})
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/SrvSend.xml
View file @
aa23b382
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
LEFT JOIN CH_APR_TASK t ON i.disab_info_id = t.DISABLE_INFO_ID
LEFT JOIN CH_APR_TASK t ON i.disab_info_id = t.DISABLE_INFO_ID
<where>
<where>
t.TASK_STATUS = 3
t.TASK_STATUS = 3
<if
test=
"chSrvOrgan.
srvOrganId != null and chSrvOrgan.srvO
rganId != ''"
>
<if
test=
"chSrvOrgan.
organId != null and chSrvOrgan.o
rganId != ''"
>
AND o.organ_id = #{chSrvOrgan.
srvO
rganId}
AND o.organ_id = #{chSrvOrgan.
o
rganId}
</if>
</if>
<if
test=
"disableInfo.realName != null and disableInfo.realName != ''"
>
<if
test=
"disableInfo.realName != null and disableInfo.realName != ''"
>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
AND s.srv_mode_id = #{chSrvSend.srvModeId}
AND s.srv_mode_id = #{chSrvSend.srvModeId}
</if>
</if>
<if
test=
"chSrvSend.status != null
and chSrvSend.status != ''
"
>
<if
test=
"chSrvSend.status != null "
>
AND (s.status is not null and s.status = #{chSrvSend.status})
AND (s.status is not null and s.status = #{chSrvSend.status})
</if>
</if>
</where>
</where>
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/SrvTaskMapper.xml
View file @
aa23b382
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
and detail.SRV_DATE
<
= #{endTime}
and detail.SRV_DATE
<
= #{endTime}
</if>
</if>
<if
test=
"status != null and status != ''"
>
<if
test=
"status != null and status != ''"
>
and
task
.status = #{status}
and
detail
.status = #{status}
</if>
</if>
<if
test=
"modeId != null and modeId != ''"
>
<if
test=
"modeId != null and modeId != ''"
>
and mode1.srv_mode_name = #{modeId}
and mode1.srv_mode_name = #{modeId}
...
...
governance/src/main/resources/com/hungraim/ltc/governance/mapper/SuperviseOrganEmpMapper.xml
View file @
aa23b382
...
@@ -56,5 +56,7 @@
...
@@ -56,5 +56,7 @@
and emp.IS_LOCK = #{status}
and emp.IS_LOCK = #{status}
</if>
</if>
</where>
</where>
ORDER BY emp.EFF_TIME desc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
system/system-admin-service/src/main/java/com/hungraim/ltc/system/controller/RoleController.java
View file @
aa23b382
...
@@ -66,12 +66,13 @@ public class RoleController {
...
@@ -66,12 +66,13 @@ public class RoleController {
systemRole
.
setStatus
(
reqRoleInfo
.
getStatus
());
systemRole
.
setStatus
(
reqRoleInfo
.
getStatus
());
systemRole
.
setCreatedTime
(
new
Date
());
systemRole
.
setCreatedTime
(
new
Date
());
roleService
.
save
(
systemRole
);
roleService
.
save
(
systemRole
);
Long
roleId
=
systemRole
.
getRoleId
();
if
(
reqRoleInfo
.
getResource
()
==
null
){
if
(
reqRoleInfo
.
getResource
()
==
null
){
reqRoleInfo
.
setResource
(
new
ArrayList
<>());
reqRoleInfo
.
setResource
(
new
ArrayList
<>());
}
}
List
<
SystemRoleResource
>
roleResources
=
reqRoleInfo
.
getResource
().
stream
().
map
(
resourceId
->
{
List
<
SystemRoleResource
>
roleResources
=
reqRoleInfo
.
getResource
().
stream
().
map
(
resourceId
->
{
SystemRoleResource
systemRoleResource
=
new
SystemRoleResource
();
SystemRoleResource
systemRoleResource
=
new
SystemRoleResource
();
systemRoleResource
.
setRoleId
(
systemRole
.
getRoleId
()
);
systemRoleResource
.
setRoleId
(
roleId
);
systemRoleResource
.
setResourceId
(
resourceId
);
systemRoleResource
.
setResourceId
(
resourceId
);
return
systemRoleResource
;
return
systemRoleResource
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
...
system/system-admin-service/src/main/java/com/hungraim/ltc/system/controller/UserController.java
View file @
aa23b382
...
@@ -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