|
|
|
@ -101,13 +101,18 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif
|
|
|
|
|
String pId = (String) classify.get("pid"); |
|
|
|
|
String name = (String) classify.get("name"); |
|
|
|
|
String isPid = (String) classify.get("isPid"); |
|
|
|
|
String createDeptName = (String) classify.get("createDeptName"); |
|
|
|
|
|
|
|
|
|
ClassifyDTO classifyDTO = new ClassifyDTO(); |
|
|
|
|
if (StringUtil.isNotBlank(pId)) { |
|
|
|
|
classifyDTO.setPId(Long.parseLong(pId)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Long createDept = deptClient.findIdByName(createDeptName); |
|
|
|
|
|
|
|
|
|
classifyDTO.setName(name); |
|
|
|
|
classifyDTO.setIsPid(Integer.parseInt(isPid)); |
|
|
|
|
classifyDTO.setCreateDept(createDept); |
|
|
|
|
|
|
|
|
|
IPage<ClassifyVO> pages = baseMapper.pageList(page, classifyDTO); |
|
|
|
|
List<ClassifyVO> records = pages.getRecords(); |
|
|
|
|