控制台作废结果查询接口

beta-prop-all^2
dongxiaoke 2 years ago
parent 6a73551f71
commit 0af1f553ba
  1. 22
      jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/api/AisinoConsoleInvoiceApiServiceImpl.java
  2. 3
      jianshui-invoice/src/main/java/com/jianshui/invoice/utils/InvoiceTest.java

@ -743,10 +743,26 @@ public class AisinoConsoleInvoiceApiServiceImpl implements IInvoiceApiService {
}
/**
* 作废结果查询
*/
@Override
public HXResponse deprecateQueryInvoice(DeprecateQueryInvoiceDTO invoice, Companyservice companyservice) {
return null;
public HXResponse deprecateQueryInvoice(DeprecateQueryInvoiceDTO deprecateQueryInvoiceDTO, Companyservice companyservice) {
Invoice invoice = new Invoice();
invoice.setSellerTaxnum(companyservice.getSellertax());
invoice.setFpdm(deprecateQueryInvoiceDTO.getFpdm());
invoice.setFphm(deprecateQueryInvoiceDTO.getFphm());
QueryWrapper<Invoice> queryWrapper = new QueryWrapper<>(invoice);
queryWrapper.last(" limit 1 ");
Invoice result = invoiceMapper.selectOne(queryWrapper);
if (result == null) {
return new HXResponse("9999", "发票不存在");
}
JSONObject status = new JSONObject();
status.put("status", result.getState());
return new HXResponse("0000", "操作完成", status);
}

@ -39,7 +39,8 @@ public class InvoiceTest {
// String key = "ZWaJUo9tKNKKQTQCryW9dw=="; // 1242
// String key = "LTEO+oOgWMsuQAOUglqXuQ=="; // 1200
// String key = "n9tFehADzqvXWeX4pqHf0g=="; // 1260
String key = "BUgDX62Wh1NChV+h1XCXdw=="; // 1255
// String key = "BUgDX62Wh1NChV+h1XCXdw=="; // 1255
String key = "BUgDX62Wh1NChV+h1XCXdw=="; // 1203
// String key = "TG1NR1N0R3RPcEY0eE55dg=="; // 1132
// String key = "2KF3rawkN1B1gGjwrtBMlQ=="; // 500