|
|
|
@ -1724,10 +1724,10 @@ public class CoDelServiceImpl implements CoDelService { |
|
|
|
public void downloadContract(HttpServletResponse response, EcssDeclarationHeaderData data) { |
|
|
|
try { |
|
|
|
ExcelTemplate template = ExcelTemplate.load(new ClassPathResource("templates/declaration-contract-template.xlsx").getInputStream()); |
|
|
|
EcssDeclarationHeaderData ecHeader = coDelMapper.getDeclarationHeader(data); |
|
|
|
// 发货通知单 |
|
|
|
EcssCoDelNotifyHeaderData notifyHeader = coDelMapper.getEcssCoDelNotifyHeader(data.getSite(), data.getDelNo()); |
|
|
|
template.addVar("cmcInvoice", notifyHeader.getCmcInvoice()); |
|
|
|
template.addVar("readyDate", DateUtils.format(notifyHeader.getReadyDate(), "yyyy/MM/dd")); |
|
|
|
List<Map> notifyDetailGroup = coDelMapper.getNotifyDetailGroup(data); |
|
|
|
BigDecimal totalQty = BigDecimal.ZERO; |
|
|
|
BigDecimal totalAmount = BigDecimal.ZERO; |
|
|
|
|