Commit ac7bd29d by liuyongshuai

修正查询审批结果的工具类出现的bug

parent bde34fdf
...@@ -551,7 +551,7 @@ public class AbutmentController { ...@@ -551,7 +551,7 @@ public class AbutmentController {
@RequestMapping(value = "/getSpResult2",method = {RequestMethod.GET,RequestMethod.POST}) @RequestMapping(value = "/getSpResult2",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody @ResponseBody
public JSONObject getSpResult2(String asjbh,String sfzh,String bsh,String sqly){ public JSONObject getSpResult2(String asjbh,String sfzh,String bsh,String sqly){
return xdhSpUtil.getSpResultUtil(asjbh, sfzh, bsh, sqly); return xdhSpUtil.getSpResultUtil(asjbh, sfzh, bsh, sqly,bizCode,cjServiceId);
} }
...@@ -566,7 +566,7 @@ public class AbutmentController { ...@@ -566,7 +566,7 @@ public class AbutmentController {
@RequestMapping(value = "/getSpResult",method = {RequestMethod.GET,RequestMethod.POST}) @RequestMapping(value = "/getSpResult",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody @ResponseBody
public JSONObject getSpResult(String asjbh,String sfzh,String bsh){ public JSONObject getSpResult(String asjbh,String sfzh,String bsh){
return xdhSpUtil.getSpResultUtil(asjbh, sfzh, bsh, "智慧侦查脑图"); return xdhSpUtil.getSpResultUtil(asjbh, sfzh, bsh, "智慧侦查脑图",bizCode,cjServiceId);
} }
/** /**
......
...@@ -12,6 +12,7 @@ import com.founder.interservice.util.KeyUtil; ...@@ -12,6 +12,7 @@ import com.founder.interservice.util.KeyUtil;
import com.founder.interservice.util.XdhSpUtil; import com.founder.interservice.util.XdhSpUtil;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.jpa.domain.Specification; import org.springframework.data.jpa.domain.Specification;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
...@@ -43,6 +44,11 @@ public class BkScheduleService { ...@@ -43,6 +44,11 @@ public class BkScheduleService {
@Autowired @Autowired
BkTaskResultRepository bkTaskResultRepository; BkTaskResultRepository bkTaskResultRepository;
@Value(value = "${xdhbigdata.xdhserviceParam.bizCode}")
private String bizCode;
@Value(value = "${xdhbigdata.xdhserviceParam.cjServiceId}")
private String cjServiceId;
/** /**
* 根据手机号码进行布控 * 根据手机号码进行布控
...@@ -136,12 +142,9 @@ public class BkScheduleService { ...@@ -136,12 +142,9 @@ public class BkScheduleService {
List<Bkxx> retuList = new ArrayList<>(); List<Bkxx> retuList = new ArrayList<>();
for (Bkxx bkxx:bkxxList){ for (Bkxx bkxx:bkxxList){
XdhSpUtil xdhSpUtil = new XdhSpUtil(); XdhSpUtil xdhSpUtil = new XdhSpUtil();
JSONObject obj = xdhSpUtil.getSpResultUtil(bkxx.getAsjbh(),bkxx.getSqr_sfzh(),bkxx.getBkdxhm(),"智慧侦查脑图"); JSONObject obj = xdhSpUtil.getSpResultUtil(bkxx.getAsjbh(),bkxx.getSqr_sfzh(),bkxx.getBkdxhm(),"智慧侦查脑图",bizCode,cjServiceId);
System.out.println("spJson==========================================================="+obj);
String spzt = (String) obj.get("data"); String spzt = (String) obj.get("data");
System.out.println("spzt==========================================================="+spzt);
if("1".equals(spzt)){ if("1".equals(spzt)){
System.out.println("进入判断===========================================================");
//审批通过 //审批通过
retuList.add(bkxx); retuList.add(bkxx);
} }
......
...@@ -10,11 +10,7 @@ import java.util.LinkedHashMap; ...@@ -10,11 +10,7 @@ import java.util.LinkedHashMap;
* 新德汇审批工具类 * 新德汇审批工具类
*/ */
public class XdhSpUtil { public class XdhSpUtil {
@Value(value = "${xdhbigdata.xdhserviceParam.bizCode}") public JSONObject getSpResultUtil(String asjbh, String sfzh, String bsh, String sqly,String bizCode,String cjServiceId) {
private String bizCode;
@Value(value = "${xdhbigdata.xdhserviceParam.cjServiceId}")
private String cjServiceId;
public JSONObject getSpResultUtil(String asjbh, String sfzh, String bsh, String sqly) {
JSONObject resultObject = null; JSONObject resultObject = null;
try{ try{
LinkedHashMap<String, Object> params = new LinkedHashMap<>(); LinkedHashMap<String, Object> params = new LinkedHashMap<>();
......
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