mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	CRM-数据权限:完善 code review 提到的问题
This commit is contained in:
		@@ -1,10 +1,13 @@
 | 
			
		||||
package cn.iocoder.yudao.module.system.api.dept;
 | 
			
		||||
 | 
			
		||||
import cn.iocoder.yudao.module.system.api.dept.dto.PostRespDTO;
 | 
			
		||||
import cn.iocoder.yudao.module.system.convert.dept.PostConvert;
 | 
			
		||||
import cn.iocoder.yudao.module.system.service.dept.PostService;
 | 
			
		||||
import org.springframework.stereotype.Service;
 | 
			
		||||
 | 
			
		||||
import javax.annotation.Resource;
 | 
			
		||||
import java.util.Collection;
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 岗位 API 实现类
 | 
			
		||||
@@ -22,4 +25,9 @@ public class PostApiImpl implements PostApi {
 | 
			
		||||
        postService.validatePostList(ids);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public List<PostRespDTO> getPostList(Collection<Long> ids) {
 | 
			
		||||
        return PostConvert.INSTANCE.convert(postService.getPostList(ids));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
package cn.iocoder.yudao.module.system.convert.dept;
 | 
			
		||||
 | 
			
		||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
 | 
			
		||||
import cn.iocoder.yudao.module.system.api.dept.dto.PostRespDTO;
 | 
			
		||||
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.*;
 | 
			
		||||
import cn.iocoder.yudao.module.system.dal.dataobject.dept.PostDO;
 | 
			
		||||
import org.mapstruct.Mapper;
 | 
			
		||||
@@ -25,4 +26,6 @@ public interface PostConvert {
 | 
			
		||||
 | 
			
		||||
    List<PostExcelVO> convertList03(List<PostDO> list);
 | 
			
		||||
 | 
			
		||||
    List<PostRespDTO> convert(List<PostDO> postList);
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user