wushunjie
杜函宇 11 months ago
parent f64b241e16
commit 36f0e2560a

@ -91,7 +91,7 @@ public class ChiefController {
JSONObject dataJson = JSONUtil.parseObj(getMain.body()); JSONObject dataJson = JSONUtil.parseObj(getMain.body());
ChiefResponse bean = JSONUtil.toBean(dataJson, ChiefResponse.class); ChiefResponse bean = JSONUtil.toBean(dataJson, ChiefResponse.class);
//判断几个政务端用户,等待商量结果 //判断几个政务端用户,等待商量结果
//lj 102 其他是100 //lj 102 其他是100 //要给dept部门id
bean.setToken(singleLoginService.singleLogin(bean.getId(),bean.getName(),null,"02",bean.getMobile())); bean.setToken(singleLoginService.singleLogin(bean.getId(),bean.getName(),null,"02",bean.getMobile()));
return AjaxResult.success(bean); return AjaxResult.success(bean);
} else { } else {

@ -52,8 +52,9 @@ public class SingleLoginServiceImpl implements SingleLoginService {
if("01".equals(userType)){ if("01".equals(userType)){
roles[0]=101L; roles[0]=101L;
}else if("02".equals(userType)){ }else if("02".equals(userType)){
//在这里可以判断具体要给什么权限 //在这里可以判断具体要给什么权限 要给dept部门id
roles[0]=102L; roles[0]=102L;
user.setDeptId(100L);
} }
user.setRoleIds(roles); user.setRoleIds(roles);
user.setStatus("0"); user.setStatus("0");

@ -52,7 +52,7 @@ spring:
# 国际化资源文件路径 # 国际化资源文件路径
basename: i18n/messages basename: i18n/messages
profiles: profiles:
active: internet active: druid
# 文件上传 # 文件上传
servlet: servlet:
multipart: multipart:

@ -27,7 +27,7 @@ public class MyMetaObjectHandler implements MetaObjectHandler {
Long userId = null; Long userId = null;
try { try {
LoginUser loginUser = SecurityUtils.getLoginUser(); LoginUser loginUser = SecurityUtils.getLoginUser();
userName = loginUser.getUsername(); userName = loginUser.getUser().getNickName();
userId = SecurityUtils.getUserId(); userId = SecurityUtils.getUserId();
} catch (Exception ignored) { } catch (Exception ignored) {
} }
@ -47,7 +47,7 @@ public class MyMetaObjectHandler implements MetaObjectHandler {
Long userId = null; Long userId = null;
try { try {
LoginUser loginUser = SecurityUtils.getLoginUser(); LoginUser loginUser = SecurityUtils.getLoginUser();
userName = loginUser.getUsername(); userName = loginUser.getUser().getNickName();
userId = SecurityUtils.getUserId(); userId = SecurityUtils.getUserId();
} catch (Exception ignored) { } catch (Exception ignored) {
} }

@ -199,12 +199,12 @@
<if test="deptId != null and deptId != 0">dept_id,</if> <if test="deptId != null and deptId != 0">dept_id,</if>
<if test="userName != null and userName != ''">user_name,</if> <if test="userName != null and userName != ''">user_name,</if>
<if test="nickName != null and nickName != ''">nick_name,</if> <if test="nickName != null and nickName != ''">nick_name,</if>
<if test="enterpriseId != null and enterpriseId != ''">enterprise_id,</if>
<if test="userType != null and userType != ''">user_type,</if>
<if test="email != null and email != ''">email,</if> <if test="email != null and email != ''">email,</if>
<if test="avatar != null and avatar != ''">avatar,</if> <if test="avatar != null and avatar != ''">avatar,</if>
<if test="phonenumber != null and phonenumber != ''">phonenumber,</if> <if test="phonenumber != null and phonenumber != ''">phonenumber,</if>
<if test="sex != null and sex != ''">sex,</if> <if test="sex != null and sex != ''">sex,</if>
<if test="enterpriseId != null and enterpriseId != ''">enterprise_id,</if>
<if test="userType != null and userType != ''">user_type,</if>
<if test="password != null and password != ''">password,</if> <if test="password != null and password != ''">password,</if>
<if test="status != null and status != ''">status,</if> <if test="status != null and status != ''">status,</if>
<if test="createBy != null and createBy != ''">create_by,</if> <if test="createBy != null and createBy != ''">create_by,</if>

Loading…
Cancel
Save