企业列表出来了
parent
a0c77e722f
commit
e9e8018fbb
|
@ -136,6 +136,6 @@ public class SysApitypeController extends BaseController
|
||||||
if(res!=1||userRole!=null){
|
if(res!=1||userRole!=null){
|
||||||
return Result.error();
|
return Result.error();
|
||||||
}
|
}
|
||||||
return Result.success(sysApitypeService.updateCreateByUserId(userId));
|
return Result.success(sysApitypeService.insertUserRole(userId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public interface SysApitypeMapper extends BaseMapper<SysApitype> {
|
public interface SysApitypeMapper extends BaseMapper<SysApitype> {
|
||||||
Integer updateCreateByUserId(Long userId);
|
Integer insertUserRole(Long userId);
|
||||||
|
|
||||||
UserRole selectUserRoleByUserId(Long userId);
|
UserRole selectUserRoleByUserId(Long userId);
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -15,7 +15,9 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public interface ISysApitypeService extends IService<SysApitype> {
|
public interface ISysApitypeService extends IService<SysApitype> {
|
||||||
Integer updateCreateByUserId(Long userId);
|
Integer insertUserRole(Long userId);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
UserRole selectUserRoleByUserId(Long userId);
|
UserRole selectUserRoleByUserId(Long userId);
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,8 +24,8 @@ public class SysApitypeServiceImpl extends ServiceImpl<SysApitypeMapper, SysApit
|
||||||
private SysApitypeMapper sysApitypeMapper;
|
private SysApitypeMapper sysApitypeMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer updateCreateByUserId(Long userId) {
|
public Integer insertUserRole(Long userId) {
|
||||||
return sysApitypeMapper.updateCreateByUserId(userId);
|
return sysApitypeMapper.insertUserRole(userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -70,7 +70,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
where sys_id = #{sysId}
|
where sys_id = #{sysId}
|
||||||
</update>
|
</update>
|
||||||
<insert id="updateCreateByUserId">
|
|
||||||
|
<insert id="insertUserRole">
|
||||||
INSERT INTO `sys_user_role` (`user_id`, `role_id`) VALUES (#{userId}, 6);
|
INSERT INTO `sys_user_role` (`user_id`, `role_id`) VALUES (#{userId}, 6);
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue