Browse Source

导出合同

java8
han\hanst 10 months ago
parent
commit
b3baea7d2e
  1. 2
      src/main/java/com/xujie/sys/modules/ecss/service/impl/CoDelServiceImpl.java
  2. BIN
      src/main/resources/templates/declaration-contract-template.xlsx

2
src/main/java/com/xujie/sys/modules/ecss/service/impl/CoDelServiceImpl.java

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

BIN
src/main/resources/templates/declaration-contract-template.xlsx

Loading…
Cancel
Save