Commit 49236f94 by panaichi

新增人查车辆接口

parent fc23343f
......@@ -654,4 +654,42 @@ public class XxcxController {
}
return result;
}
//通过身份证号查询车辆信息
@RequestMapping("/getClxxBySfzh")
public Result getClxxBySfzh(HttpServletRequest requestIp, Params params){
Result result = new Result();
String xxscPdbz = "1";
try{
HttpServletRequest request = IpADdress.getRequest();
String header = request.getHeader("founder.authorization");
if(StringUtils.isEmpty(header) || !hmAuthor.equals(header)){
result.setData(new ArrayList<>());
result.setMsg("没有授权码或者授权码验证未通过,不能查询!");
result.setStatus("fail");
return result;
}
String sfzh = params.getSfzh();
if (StringUtils.isEmpty(sfzh)){
result.setStatus("error");
result.setMsg("请输入身份证号");
return result;
}
String data = xxcxService.getClxx(sfzh);
result.setData(data);
result.setMsg("人查车辆信息查询成功");
result.setStatus("success");
xxscPdbz = "0";
}catch (Exception e){
result.setData(params);
result.setMsg("人查车辆信息查询失败\n"+e.getMessage());
result.setStatus("error");
e.printStackTrace();
}finally {
sysGnsyrzOpenApiService.insertGNSYRZOPENAPI("01","信息查询-人查车辆信息查询",
LogsUtil.getNotEmptyFiled(params).toString(),"","","460000000000","海南刑专电诈骗","",
ipADressLock.getAddressIp(requestIp),"1", xxscPdbz);
}
return result;
}
}
......@@ -36,5 +36,7 @@ public interface XxcxService {
String getZhgcxx(String cph) throws Exception;
//卡口编号过车信息查询
String getKkxx(String kkbh, String dateStr) throws Exception;
//通过身份证号查询车辆信息
String getClxx(String sfzh) throws Exception;
}
......@@ -312,4 +312,16 @@ public class XxcxServiceImpl implements XxcxService {
return resultJson;
}
@Override
public String getClxx(String sfzh) throws Exception {
JSONObject ret=new JSONObject();
try {
ret.put("expr", "JDCSYR_JTGLYWDXSFZMHM='" + sfzh + "'");
} catch (JSONException e) {
e.printStackTrace();
}
String resultJson = KtInterfaceUtils.getDateByJsonParam(KtInterfaceUtils.RCCL,ret.toString());
return resultJson;
}
}
......@@ -26,6 +26,7 @@ public class KtInterfaceUtils {
public static final String HCDP = "00456";//火车订票查询
public static final String GKCX = "00457";//港口出行查询
public static final String KYCX = "00458";//客运出行查询
public static final String RCCL = "00460";//机动车-人查车辆
public static final String CLJGKKXX = "00463";//车辆经过卡口过车信息查询
public static final String CLJGKKZHGCXX = "00464";//车辆经卡口最后过车信息查询
public static final String KKXX = "00465";//卡口编号过车信息查询
......
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