Commit 60ea2405 by 罗承锋

设置注册账户默认权限,和首页查询订单问题

parent ccf9a2ba
......@@ -726,6 +726,8 @@ public class LoginPwdController extends BaseController {
sysUser.setPhone(phone);
sysUser.setSalt(ShiroKit.getRandomSalt(5));
sysUser.setSubstName(substName);
sysUser.setRoleid("251"); // 成员
sysUser.setDeptid("1"); // 合伙人
sysUser.setCreatetime(new Date());
sysUser.setStatus("2");
sysUser.setPassword(ShiroKit.md5(password, sysUser.getSalt()));
......
......@@ -210,7 +210,7 @@ public class AnalysisController extends BaseController {
*/
public List<Integer> getSubNameUser(Integer userId) {
Wrapper<HhrSupervisorSchool> wrapper = new EntityWrapper<>();
wrapper.eq("userId", userId);
wrapper.eq("user_id", userId);
List<HhrSupervisorSchool> hhrSupervisorSchools = hhrSupervisorSchoolMapper.selectList(wrapper);
if (hhrSupervisorSchools == null || hhrSupervisorSchools.size() == 0) {
return new ArrayList<>();
......
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