传承列表返回添加类型

This commit is contained in:
wuchunlei
2024-01-05 09:47:57 +08:00
parent e631a38674
commit ab74b8fa21

View File

@@ -117,6 +117,7 @@ public class MedicaldesController {
if (map.containsKey("name")&&StringUtils.isNotEmpty(map.get("name").toString())){
wrapper.like(MedicaldesInherit::getName,map.get("name"));
}
wrapper.selectAs(MedicaldesInheritRelation::getTypeId,"type");
Page<MedicaldesInherit> page = inheritService.page(new Page<>(
Long.parseLong(map.get("current").toString()), Long.parseLong(map.get("limit").toString())),wrapper);
return R.ok().put("result", page);