查验bug修复

beta-enc
kane 2 years ago
parent fb494bef88
commit b726c4467a
  1. 4
      jianshui-admin/src/main/java/com/jianshui/api/controller/webservice/income/v1/impl/InvoiceCheckWebServiceImpl.java

@ -359,16 +359,18 @@ public class InvoiceCheckWebServiceImpl {
JSONObject getInvoiceVOJson = JSONObject.parseObject(getInvoiceVOJsonStr); JSONObject getInvoiceVOJson = JSONObject.parseObject(getInvoiceVOJsonStr);
Element getInvoiceDoc = json2Element(result, "Fp", getInvoiceVOJson); Element getInvoiceDoc = json2Element(result, "Fp", getInvoiceVOJson);
int count = 1;
for (GetInvoiceSphVO getInvoiceSphVO : getInvoiceSphVOList) { for (GetInvoiceSphVO getInvoiceSphVO : getInvoiceSphVOList) {
// JSONObject getInvoiceSphVOJson = (JSONObject) JSONObject.toJSON(getInvoiceSphVO); // JSONObject getInvoiceSphVOJson = (JSONObject) JSONObject.toJSON(getInvoiceSphVO);
// 航信明细行从1开始 // 航信明细行从1开始
getInvoiceSphVO.setId(getInvoiceSphVO.getId() + 1); getInvoiceSphVO.setId(getInvoiceSphVO.getId() + count);
// 防止转义 // 防止转义
String getInvoiceSphVOJsonStr = JSON.toJSONString(getInvoiceSphVO, SerializerFeature.WriteSlashAsSpecial); String getInvoiceSphVOJsonStr = JSON.toJSONString(getInvoiceSphVO, SerializerFeature.WriteSlashAsSpecial);
getInvoiceSphVOJsonStr = getInvoiceSphVOJsonStr.replace("免税","0.0%").replace("***","0.00"); getInvoiceSphVOJsonStr = getInvoiceSphVOJsonStr.replace("免税","0.0%").replace("***","0.00");
JSONObject getInvoiceSphVOJson = JSONObject.parseObject(getInvoiceSphVOJsonStr); JSONObject getInvoiceSphVOJson = JSONObject.parseObject(getInvoiceSphVOJsonStr);
Element sphElement = json2Element(result, "Sph", getInvoiceSphVOJson); Element sphElement = json2Element(result, "Sph", getInvoiceSphVOJson);
getInvoiceDoc.appendChild(sphElement); getInvoiceDoc.appendChild(sphElement);
count ++;
} }
return buildResult(result, "1", "查验成功", getInvoiceDoc); return buildResult(result, "1", "查验成功", getInvoiceDoc);

Loading…
Cancel
Save