Commit d6aa01b6 by Suvalue

后台科室接口父子级关系判断修改

parent 2642576a
......@@ -28,7 +28,7 @@ public class DicOrgServiceImpl implements DicOrgService {
private List<DicOrgList> getLevelData(List<DicOrgList> list, Integer parentcode) {
List<DicOrgList> resultList = new ArrayList<>();
for (DicOrgList data : list) {
if (data.getParentId() == parentcode) {
if (data.getParentId().equals(parentcode)) {
List<DicOrgList> childList = getLevelData(list, data.getId());
data.setDicOrgList(childList);
resultList.add(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment