Commit 904fcddc by wang_jiaxing

背景核查修改

parent 61dc54e6
package org.springblade.founder.ydjwhc.thread; package org.springblade.founder.ydjwhc.thread;
import org.springblade.founder.utils.Entity.QgEsAsj;
import org.springblade.founder.utils.Entity.QgEsEntity;
import org.springblade.founder.utils.Entity.QgEsEnum;
import org.springblade.founder.utils.QgEsUtil;
import org.springblade.founder.ydjwhc.controller.CallDygabxxfwController; import org.springblade.founder.ydjwhc.controller.CallDygabxxfwController;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import java.util.stream.Collectors;
/** /**
* Created by zl on 2019/5/8. * Created by zl on 2019/5/8.
...@@ -47,11 +52,11 @@ public class TimeControl2 implements Callable<Map<String, String>> { ...@@ -47,11 +52,11 @@ public class TimeControl2 implements Callable<Map<String, String>> {
// break; // break;
// } // }
case "fzxyr": { case "fzxyr": {
Map map = callDygabxxfwController.getGabZyInfo("fzxyr", zjhm); List<QgEsAsj> asjList = QgEsUtil.getQgEsListByTypeAndParam(QgEsEnum.GET_ASJ_BY_ZJHM, zjhm);
System.out.println("map====>" + map); if (asjList != null) {
if (map != null) { List<QgEsAsj> list = asjList.stream().filter(asj -> asj != null && asj.getAsjbh() != null &&
List<Map> resultList = (List) map.get("dataResult"); !asj.getAsjbh().startsWith("A46")).collect(Collectors.toList());
if (resultList.size() > 0) { if (list != null && list.size() > 0) {
HashMap<String, String> resultMap = new HashMap<>(); HashMap<String, String> resultMap = new HashMap<>();
resultMap.put("zylx", "2"); resultMap.put("zylx", "2");
resultMap.put("resourceName", resourceName); resultMap.put("resourceName", resourceName);
...@@ -62,7 +67,8 @@ public class TimeControl2 implements Callable<Map<String, String>> { ...@@ -62,7 +67,8 @@ public class TimeControl2 implements Callable<Map<String, String>> {
break; break;
} }
case "xzgzry": { case "xzgzry": {
Map map = callDygabxxfwController.getGabZyInfo("xzgzry", zjhm); Map map = null;
// Map map = callDygabxxfwController.getGabZyInfo("xzgzry", zjhm);
System.out.println("map====>" + map); System.out.println("map====>" + map);
if (map != null) { if (map != null) {
List<Map> resultList = (List<Map>) map.get("dataResult"); List<Map> resultList = (List<Map>) map.get("dataResult");
......
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