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