|
|
|
@ -6,6 +6,8 @@ import cn.hutool.core.util.IdUtil; |
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import cn.hutool.http.HttpUtil; |
|
|
|
|
import cn.hutool.json.JSONUtil; |
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.dxhy.order.protocol.invoke.DxhyInterfaceResponse; |
|
|
|
@ -93,7 +95,7 @@ public class ElephantInvoiceServiceImpl implements ElephantInvoiceService { |
|
|
|
|
if (!"000000".equals(responJson.getString("ztdm"))) { |
|
|
|
|
return AjaxResult.error(responJson.getString("ztxx")); |
|
|
|
|
} |
|
|
|
|
return AjaxResult.success(responJson.getJSONArray("data")); |
|
|
|
|
return AjaxResult.success(JsonKeyCase.arrayKeyrCase(responJson.getJSONArray("data"),1)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//调用大象进行登录
|
|
|
|
@ -125,14 +127,14 @@ public class ElephantInvoiceServiceImpl implements ElephantInvoiceService { |
|
|
|
|
//判断后续方法是否为3
|
|
|
|
|
JSONObject dataJson = responJson.getJSONObject("data"); |
|
|
|
|
if ("2".equals(dataJson.getString("hxff"))) { |
|
|
|
|
JSONObject sj = dataJson.getJSONObject("sj"); |
|
|
|
|
List<String> personList = sj.getJSONArray("personList").toJavaList(String.class); |
|
|
|
|
JSONArray sj = dataJson.getJSONArray("sj"); |
|
|
|
|
List<String> personList = sj.toJavaList(String.class); |
|
|
|
|
Map<String, String> personTypes = new HashMap<>(); |
|
|
|
|
personList.forEach(e -> personTypes.put(e, PersonList.getName(e))); |
|
|
|
|
dataJson.put("personList", personTypes); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return AjaxResult.success(dataJson); |
|
|
|
|
return AjaxResult.success(JsonKeyCase.JsonKeyCase(dataJson,1)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//获取二维码
|
|
|
|
@ -159,7 +161,7 @@ public class ElephantInvoiceServiceImpl implements ElephantInvoiceService { |
|
|
|
|
if (!"000000".equals(responJson.getString("ztdm"))) { |
|
|
|
|
return AjaxResult.error(responJson.getString("ztxx")); |
|
|
|
|
} |
|
|
|
|
return AjaxResult.success(responJson.getJSONObject("data")); |
|
|
|
|
return AjaxResult.success(JsonKeyCase.JsonKeyCase(responJson.getJSONObject("data"),1)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//数电实名认证状态
|
|
|
|
@ -185,7 +187,7 @@ public class ElephantInvoiceServiceImpl implements ElephantInvoiceService { |
|
|
|
|
if (!"000000".equals(responJson.getString("ztdm"))) { |
|
|
|
|
return AjaxResult.error(responJson.getString("ztxx")); |
|
|
|
|
} |
|
|
|
|
return AjaxResult.success(responJson.getJSONObject("data")); |
|
|
|
|
return AjaxResult.success(JsonKeyCase.JsonKeyCase(responJson.getJSONObject("data"),1)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|