Commit ac7bd29d by liuyongshuai

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

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