Browse Source

无车优化,自有车接口返回

Administrator 1 year ago
parent
commit
f71fc78925

+ 1 - 1
src/main/java/com/jkcredit/invoice/credit/interserver/NoCarInterServiceImpl.java

@@ -371,7 +371,7 @@ public class NoCarInterServiceImpl implements NoCarInterService {
             noCarWayBill.setContractType(contractType);
            DataResult dataResult = getDataResult(appKey, data, costtimestart, result, customerRec, noCarWayBill);
             try {
-                if(dataResult.getCode() == 0 && StringUtils.isNotBlank(waybillFileName) && StringUtils.isNotBlank(base64Str)){
+                if(dataResult.getData() == 1 && dataResult.getCode()==200 && StringUtils.isNotBlank(waybillFileName) && StringUtils.isNotBlank(base64Str)){
                     NoCarWayBillFileInfo noCarWayBillFileInfo = new NoCarWayBillFileInfo();
                     noCarWayBillFileInfo.setBase64Str(base64Str);
                     noCarWayBillFileInfo.setFileName(waybillFileName);