|
|
|
@ -83,12 +83,16 @@ public class BasicsskillController extends JeecgController<Basicsskill, IBasicss |
|
|
|
|
basicsskill.setPid(null); |
|
|
|
|
QueryWrapper<Basicsskill> queryWrapper = QueryGenerator.initQueryWrapper(basicsskill, req.getParameterMap()); |
|
|
|
|
// 使用 eq 防止模糊查询
|
|
|
|
|
queryWrapper.eq("pid", parentId); |
|
|
|
|
//queryWrapper.eq("pid", parentId);
|
|
|
|
|
Page<Basicsskill> page = new Page<Basicsskill>(pageNo, pageSize); |
|
|
|
|
IPage<Basicsskill> pageList = basicsskillService.page(page, queryWrapper); |
|
|
|
|
for(Basicsskill basicsskill1:pageList.getRecords()){ |
|
|
|
|
if(basicsskill1.getPid().equals("0")) |
|
|
|
|
basicsskill1.setPid("无上级"); |
|
|
|
|
if(basicsskill1.getPid().equals("0")){ |
|
|
|
|
basicsskill1.setPid("专业认证能力评价体系"); |
|
|
|
|
}else{ |
|
|
|
|
basicsskill1.setPid("创新能力评价体系"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|