基础能力设置

dev
Gitea 11 months ago
parent 1697dd2f68
commit e0cf46de68
  1. 10
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/basicsskill/controller/BasicsskillController.java

@ -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);

Loading…
Cancel
Save