提交 23a443c8 authored 作者: 李炎's avatar 李炎

微调

上级 8b7c4558
......@@ -61,11 +61,19 @@ public class ImsNondefectiveFlittingApi implements web_api {
}
public Result addTwo(List<Map<String, Object>> lists, String docType) {
System.out.println("<=======stringStringMap1");
Map<String, Object> stringStringMap = ImsToKingdee(lists, docType);
System.out.println("<=======stringStringMap:" + stringStringMap);
if (stringStringMap.containsKey("FID") && StringUtils.isNotBlank((String) stringStringMap.get("FID"))) {
return categoryDao.addAndWithFid(KingdeeLogName, sFormId, JsonUtil.Mapjson(stringStringMap), (String) lists.get(0).get("FID"));
System.out.println("<=======addTwo1");
Result fid = categoryDao.addAndWithFid(KingdeeLogName, sFormId, JsonUtil.Mapjson(stringStringMap), (String) lists.get(0).get("FID"));
System.out.println("<=======addTwo1.1 " + fid);
return fid;
} else {
return KingdeeResultParseUtil.parseAddResult(categoryDao.addReturnResult(KingdeeLogName, sFormId, JsonUtil.Mapjson(stringStringMap)));
System.out.println("<=======addTwo2");
Result result = KingdeeResultParseUtil.parseAddResult(categoryDao.addReturnResult(KingdeeLogName, sFormId, JsonUtil.Mapjson(stringStringMap)));
System.out.println("<=======addTwo2.1" + result);
return result;
}
}
......@@ -292,27 +300,27 @@ public class ImsNondefectiveFlittingApi implements web_api {
public void selectAllPush(List<Map<String, Object>> needLists) {
//查找当前单据的FID
Map<String, String> key = new HashMap<>();
key.put("FID","FID");
key.put("FID", "FID");
List<String> fidLists = new ArrayList<>();
for (Map<String, Object> map : needLists) {
Map<String, String> where = new HashMap<>();
where.put("FBillNo",map.get("ALLOT_CODE").toString());
where.put("FBillNo", map.get("ALLOT_CODE").toString());
List<List<Object>> select = categoryDao.select(Father_sFormId, key, where);
fidLists.add(select.get(0).get(0).toString());
}
//查找当前单据的所有下推单据
Date date = new Date();
SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
List<Object> result = new ArrayList<>();
Map<String, String> pushKey = new HashMap<>();
pushKey.put("FID","FID");
pushKey.put("FBillNo","FBillNo");
pushKey.put("FID", "FID");
pushKey.put("FBillNo", "FBillNo");
for (String fidList : fidLists) {
Map<String, String> where = new HashMap<>();
where.put("FBillEntry_Link_FSBillId",fidList);
where.put("FBillEntry_Link_FSBillId", fidList);
List<List<Object>> select = categoryDao.select(sFormId, pushKey, where);
result.add(select);
System.out.println(dateFormat.format(date)+" FID为"+fidList+"的单据的下推单据为:"+select);
System.out.println(dateFormat.format(date) + " FID为" + fidList + "的单据的下推单据为:" + select);
}
}
}
......@@ -72,7 +72,9 @@ public class ImsPushConstants {
}
public void imsToKingDee(String docType, Map<String, Object> modelMap, Map<String, Object> fEntityMap, Map<String, Object> map) {
System.out.println("<========imsToKingDee1");
Map<String, String> tempMap = this.get(docType);
System.out.println("<========imsToKingDee1.1:" + tempMap);
if (!CollectionUtils.isEmpty(tempMap)) {
List<Object> tempList = JsonUtil.toList(tempMap.get("detail"), Object.class);
List<Map<String, String>> fieldList = tempList.stream().map(m -> JsonUtil.toMap(JsonUtil.toString(m), String.class, String.class)).collect(Collectors.toList());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论