md
This commit is contained in:
parent
1b3e600141
commit
e32fa93b1d
@ -257,9 +257,6 @@ public class EmisSettleInvoiceChRecordServiceImpl implements IEmisSettleInvoiceC
|
|||||||
|
|
||||||
String token = HXSdk.getToken(emisBaseInvoiceChInfo.getAppKey(), emisBaseInvoiceChInfo.getAppSecret());
|
String token = HXSdk.getToken(emisBaseInvoiceChInfo.getAppKey(), emisBaseInvoiceChInfo.getAppSecret());
|
||||||
|
|
||||||
EmisSettleInvoiceChRecord updRecord = new EmisSettleInvoiceChRecord();
|
|
||||||
updRecord.setId(itemRecord.getId());
|
|
||||||
|
|
||||||
// 立即查询状态
|
// 立即查询状态
|
||||||
JSONObject jQRst = HXSdk.queryInvoiceResult(itemRecord.getReqNo(), token);
|
JSONObject jQRst = HXSdk.queryInvoiceResult(itemRecord.getReqNo(), token);
|
||||||
if ("00000".equals(jQRst.getString("code"))) {
|
if ("00000".equals(jQRst.getString("code"))) {
|
||||||
@ -267,6 +264,9 @@ public class EmisSettleInvoiceChRecordServiceImpl implements IEmisSettleInvoiceC
|
|||||||
JSONArray jInvoiceInfos = data.getJSONArray("invoiceInfos");
|
JSONArray jInvoiceInfos = data.getJSONArray("invoiceInfos");
|
||||||
if (!CollectionUtils.isEmpty(jInvoiceInfos)) {
|
if (!CollectionUtils.isEmpty(jInvoiceInfos)) {
|
||||||
|
|
||||||
|
EmisSettleInvoiceChRecord updRecord=new EmisSettleInvoiceChRecord();
|
||||||
|
updRecord.setId(itemRecord.getId());
|
||||||
|
|
||||||
JSONObject item0 = jInvoiceInfos.getJSONObject(0);
|
JSONObject item0 = jInvoiceInfos.getJSONObject(0);
|
||||||
if ("2".equals(item0.getString("status"))) {
|
if ("2".equals(item0.getString("status"))) {
|
||||||
updRecord.setFilePath(item0.getString("pdfUrl"));
|
updRecord.setFilePath(item0.getString("pdfUrl"));
|
||||||
@ -287,7 +287,7 @@ public class EmisSettleInvoiceChRecordServiceImpl implements IEmisSettleInvoiceC
|
|||||||
// 更新渠道开票状态,更新下载文件
|
// 更新渠道开票状态,更新下载文件
|
||||||
// 开票成功
|
// 开票成功
|
||||||
// 更新开票状态
|
// 更新开票状态
|
||||||
EmisSettleInvoiceRecord oldApply=emisSettleInvoiceRecordMapper.selectInvoiceRecordByApplySeqNo(updRecord.getApplySeqNo());
|
EmisSettleInvoiceRecord oldApply=emisSettleInvoiceRecordMapper.selectInvoiceRecordByApplySeqNo(itemRecord.getApplySeqNo());
|
||||||
EmisSettleInvoiceRecord newApply = new EmisSettleInvoiceRecord();
|
EmisSettleInvoiceRecord newApply = new EmisSettleInvoiceRecord();
|
||||||
newApply.setId(oldApply.getId());
|
newApply.setId(oldApply.getId());
|
||||||
newApply.setInvoiceStatus(updRecord.getOpenChStatus());
|
newApply.setInvoiceStatus(updRecord.getOpenChStatus());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user