提交 2d527ae6 authored 作者: inroi's avatar inroi

微调

上级 b39e03f6
......@@ -105,7 +105,7 @@ public class BillOfMaterialKingDeeApi {
//实际需求数量
fEntityMap.put("FNeedQty2", map.get("tn_qty"));
//是否主料(父级行主键)
if ("false".equals(String.valueOf(map.get("is_main")))) {
if ("N".equals(String.valueOf(map.get("is_main")))) {
List<List<Object>> tempList = getRowId(String.valueOf(modelMap.get("FID")), String.valueOf(map.get("main_code")));
if (tempList != null) {
if (!tempList.get(0).get(0).toString().contains("Errors") && !CollectionUtils.isEmpty(tempList.get(0))) {
......@@ -139,7 +139,7 @@ public class BillOfMaterialKingDeeApi {
.filter(m -> code.equals(String.valueOf(m.get("mtrl_code"))))
.collect(Collectors.toList());
for (Map<String, Object> temp : tempList) {
if ("true".equals(String.valueOf(temp.get("is_main")))) {
if ("Y".equals(String.valueOf(temp.get("is_main")))) {
return String.valueOf(temp.get("mtrl_code"));
}
return this.getTopLevel(dataList, String.valueOf(temp.get("main_code")));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论