upd: 编码规范
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ import java.util.Set;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface DeptMapper extends BaseMapper<Dept> {
|
public interface DeptMapper extends BaseMapper<Dept> {
|
||||||
|
|
||||||
List<Dept> findAll(@Param("criteria") DeptQueryCriteria criteria);
|
List<Dept> selectAll(@Param("criteria") DeptQueryCriteria criteria);
|
||||||
|
|
||||||
List<Dept> selectByPid(@Param("pid") Long pid);
|
List<Dept> selectByPid(@Param("pid") Long pid);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements De
|
|||||||
}
|
}
|
||||||
// 数据权限
|
// 数据权限
|
||||||
criteria.setIds(SecurityUtil.getCurrentUserDataScope());
|
criteria.setIds(SecurityUtil.getCurrentUserDataScope());
|
||||||
List<Dept> list = deptMapper.findAll(criteria);
|
List<Dept> list = deptMapper.selectAll(criteria);
|
||||||
// 如果为空,就代表为自定义权限或者本级权限,就需要去重,不理解可以注释掉,看查询结果
|
// 如果为空,就代表为自定义权限或者本级权限,就需要去重,不理解可以注释掉,看查询结果
|
||||||
if (StringUtil.isBlank(dataScopeType)) {
|
if (StringUtil.isBlank(dataScopeType)) {
|
||||||
return deduplication(list);
|
return deduplication(list);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<result column="update_time" property="updateTime"/>
|
<result column="update_time" property="updateTime"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="findAll" resultMap="BaseResultMap">
|
<select id="selectAll" resultMap="BaseResultMap">
|
||||||
SELECT
|
SELECT
|
||||||
dept_id,
|
dept_id,
|
||||||
`name`,
|
`name`,
|
||||||
|
|||||||
Reference in New Issue
Block a user