Commit 3a35ea7d authored by duanzhihong's avatar duanzhihong

角色權限

parent 8012a268
...@@ -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 aplOrganName, @Param("aplOrganName") String srvOrganName,
@Param("applyStatus") Short applyStatus); @Param("applyStatus") Short applyStatus);
/** /**
* 失能信息变更-查看修改 * 失能信息变更-查看修改
......
...@@ -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 aplOrganName, Short applyStatus); String realName, String certiCode, String srvOrganName, Short applyStatus);
/** /**
* 失能人员信息变更-查看修改 * 失能人员信息变更-查看修改
......
...@@ -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 aplOrganName, Short applyStatus) { String realName, String certiCode, String srvOrganName, 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, aplOrganName, applyStatus); , districtCity, districtArea, realName, certiCode, srvOrganName, applyStatus);
} }
@Override @Override
......
...@@ -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 aplOrganName != ''"> <if test="srvOrganName != null and srvOrganName != ''">
and srvOrgan.SRV_ORGAN_NAME like CONCAT(CONCAT('%',#{aplOrganName}) ,'%') and srvOrgan.SRV_ORGAN_NAME like CONCAT(CONCAT('%',#{srvOrganName}) ,'%')
</if> </if>
<if test="applyStatus != null"> <if test="applyStatus != null">
and change.APPLY_STATUS = #{applyStatus} and change.APPLY_STATUS = #{applyStatus}
......
...@@ -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;
} }
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;
......
...@@ -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(userId);
systemUserRole.setRoleId(roleId); systemUserRole.setRoleId(roleId);
return systemUserRole; return systemUserRole;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment