|
|
@ -743,10 +743,26 @@ public class AisinoConsoleInvoiceApiServiceImpl implements IInvoiceApiService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 作废结果查询 |
|
|
|
|
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public HXResponse deprecateQueryInvoice(DeprecateQueryInvoiceDTO invoice, Companyservice companyservice) { |
|
|
|
public HXResponse deprecateQueryInvoice(DeprecateQueryInvoiceDTO deprecateQueryInvoiceDTO, Companyservice companyservice) { |
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
|
|
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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|