|
@@ -51,9 +51,7 @@ public class WbsTreeContractClientImpl implements WbsTreeContractClient {
|
|
|
List<WbsTreeContractTreeVO> vo = this.contractInfoService.queryContractWbsTreeByContractIdAndType(contractId, wbsType, parentId);
|
|
|
//不知道为什么通过远程调用时实体字段不是想要的,所以中间用字段相同且不继承其它实体的类转换一次
|
|
|
List<WbsTreeContractTreeVOS> vos = JSONArray.parseArray(JSONObject.toJSONString(vo), WbsTreeContractTreeVOS.class);
|
|
|
- vos.forEach(voData -> {
|
|
|
- voData.setLeaf(new Integer("6").equals(voData.getDeptCategory()));
|
|
|
- });
|
|
|
+ vos.forEach(voData -> voData.setLeaf(new Integer("6").equals(voData.getDeptCategory())));
|
|
|
return vos;
|
|
|
}
|
|
|
}
|