Commit e166dbc0 authored by neo's avatar neo

[dev] output invoice get item list impl

parent 24f65265
...@@ -139,6 +139,12 @@ public class OutputInvoiceController { ...@@ -139,6 +139,12 @@ public class OutputInvoiceController {
return ResponseEntity.ok(outputInvoiceService.getOutputInvoiceList(period)); return ResponseEntity.ok(outputInvoiceService.getOutputInvoiceList(period));
} }
@RequestMapping(value = "queryOutputInvoiceItemList/{invoiceID}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseEntity QueryOutputInvoiceItemList(@PathVariable String invoiceID)
{
return ResponseEntity.ok(outputInvoiceService.QueryOutputInvoiceItemList(invoiceID));
}
private String GetExtension(String file) { private String GetExtension(String file) {
return file.substring(file.lastIndexOf(".") + 1, file.length() return file.substring(file.lastIndexOf(".") + 1, file.length()
- file.lastIndexOf(".")); - file.lastIndexOf("."));
......
...@@ -17,6 +17,7 @@ import pwc.taxtech.atms.dto.vatdto.OutputVATInvoiceInfoDto; ...@@ -17,6 +17,7 @@ import pwc.taxtech.atms.dto.vatdto.OutputVATInvoiceInfoDto;
import pwc.taxtech.atms.dto.vatdto.QueryEvidenceDto; import pwc.taxtech.atms.dto.vatdto.QueryEvidenceDto;
import pwc.taxtech.atms.dto.vatdto.QueryOutputDto; import pwc.taxtech.atms.dto.vatdto.QueryOutputDto;
import pwc.taxtech.atms.vat.dao.ImportFileMapper; import pwc.taxtech.atms.vat.dao.ImportFileMapper;
import pwc.taxtech.atms.vat.dao.OutputVATInvoiceItemMapper;
import pwc.taxtech.atms.vat.entity.ImportFile; import pwc.taxtech.atms.vat.entity.ImportFile;
import pwc.taxtech.atms.vat.entity.ImportFileExample; import pwc.taxtech.atms.vat.entity.ImportFileExample;
import pwc.taxtech.atms.vat.entity.OutputVATInvoiceExample; import pwc.taxtech.atms.vat.entity.OutputVATInvoiceExample;
...@@ -265,4 +266,11 @@ public class OutputInvoiceServiceImpl extends VatAbstractService { ...@@ -265,4 +266,11 @@ public class OutputInvoiceServiceImpl extends VatAbstractService {
} }
} }
public List<OutputVATInvoiceItem> QueryOutputInvoiceItemList(String invoiceID) {
OutputVATInvoiceItemExample example = new OutputVATInvoiceItemExample();
example.createCriteria().andInvoiceIDEqualTo(invoiceID);
List<OutputVATInvoiceItem> result=outputVATInvoiceItemMapper.selectByExample(example);
result.stream().sorted(Comparator.comparing(OutputVATInvoiceItem::getSeqNo));
return result;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment