修改注释说明

master
星期八 5 years ago
parent 2bc829f1e9
commit 5a14a8489f
  1. 2
      src/main/java/com/lq/code/util/TestUtil.java
  2. 3
      src/main/java/com/lq/code/util/sql/SqlUtil.java
  3. 18
      src/main/java/com/lq/dao/SysUserRoleDao.java

@ -1,7 +1,7 @@
package com.lq.code.util;
/**
* Created by qi_liang on 2018/5/27.
* @author qi
*/
public class TestUtil {

@ -9,7 +9,8 @@ import java.util.List;
import java.util.Map;
/**
* Created by qi_liang on 2018/6/2.
* sql 工具类
* @author qi
*/
public class SqlUtil {

@ -8,15 +8,29 @@ import java.util.List;
import java.util.Map;
/**
* Created by qi on 2017-11-29.
* 用户角色dao
* @author qi
*/
public interface SysUserRoleDao extends BaseDao<SysUserRole> {
/**
* 通过用户id和角色id查找关联
* @param params
* @return
*/
List<SysUserRole> findByUserIdAndRoleId(Map<String, Object> params);
/**
* 通过用户id查找用户关联角色
* @param userId
* @return
*/
List<SysUserRoleVo> findAllRoleVo(Long userId);
/**
* 通过用户id删除关联
* @param userId
*/
void deleteByUserId(Long userId);
void deleteByRoleId(Long roleId);

Loading…
Cancel
Save