发票保存打log
This commit is contained in:
parent
e19ee81524
commit
f512416c3f
|
@ -71,6 +71,7 @@ import org.apache.poi.ss.usermodel.Row;
|
||||||
import org.apache.poi.ss.usermodel.Sheet;
|
import org.apache.poi.ss.usermodel.Sheet;
|
||||||
import org.apache.poi.ss.usermodel.Workbook;
|
import org.apache.poi.ss.usermodel.Workbook;
|
||||||
import org.apache.poi.ss.usermodel.WorkbookFactory;
|
import org.apache.poi.ss.usermodel.WorkbookFactory;
|
||||||
|
import shkd.utils.DobeDWUtils;
|
||||||
import shkd.utils.OAUtils;
|
import shkd.utils.OAUtils;
|
||||||
|
|
||||||
import javax.xml.bind.DatatypeConverter;
|
import javax.xml.bind.DatatypeConverter;
|
||||||
|
@ -212,11 +213,16 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF
|
||||||
JSONObject ocr_jsonObject = parseOCRData(companyTaxNo, type, fileBase64, oaToken);
|
JSONObject ocr_jsonObject = parseOCRData(companyTaxNo, type, fileBase64, oaToken);
|
||||||
String ocr_success = ocr_jsonObject.getString("success");
|
String ocr_success = ocr_jsonObject.getString("success");
|
||||||
if ("true".equals(ocr_success)) {
|
if ("true".equals(ocr_success)) {
|
||||||
//TODO: 发票识别成功调用OA发票识别接口
|
//TODO: 发票识别成功调用OA发票保存接口
|
||||||
JSONArray ocrDatas = ocr_jsonObject.getJSONArray("data");
|
JSONArray ocrDatas = ocr_jsonObject.getJSONArray("data");
|
||||||
String fileId = ocr_jsonObject.getString("fileId");
|
String fileId = ocr_jsonObject.getString("fileId");
|
||||||
JSONObject saveCheckJson = saveCheck(companyTaxNo, fileId, ocrDatas,oaToken);//返回数据
|
JSONObject saveCheckJson = saveCheck(companyTaxNo, fileId, ocrDatas,oaToken);//返回数据
|
||||||
|
DobeDWUtils.saveLog("FPLOG",
|
||||||
|
"OA发票","", saveCheckJson.toJSONString(),
|
||||||
|
true,"调用OA发票保存接口");
|
||||||
|
logger.info("发票传OA保存接口:"+saveCheckJson.toJSONString());
|
||||||
String save_success = saveCheckJson.getString("success");
|
String save_success = saveCheckJson.getString("success");
|
||||||
|
logger.info("发票传OA保存接口2:"+save_success);
|
||||||
if ("true".equals(save_success)){
|
if ("true".equals(save_success)){
|
||||||
//TODO: 生成发票登记
|
//TODO: 生成发票登记
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue