xuhy
3 天以前 508f3e225df87e0da974424981e7782fc5ce875c
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
@@ -640,7 +640,9 @@
    public Long addAccount(TShopDTO dto) {
        SysUser sysUser = new SysUser();
        sysUser.setUserName(dto.getAccount());
        sysUser.setPhonenumber(dto.getAccount());
        sysUser.setNickName(dto.getShopHead());
        sysUser.setObjectId(dto.getId());
        if(dto.getShopType().equals(1)){
            sysUser.setRoleType(2);
            sysUser.setRoleId(9L);
@@ -649,6 +651,7 @@
            sysUser.setRoleId(2L);
        }
        sysUser.setPassword(SecurityUtils.encryptPassword(dto.getPassword()));
        sysUser.setRePassword(SecurityUtils.encryptPassword("123456"));
        this.insertUser(sysUser);
        return sysUser.getUserId();
    }