|
@@ -615,6 +615,15 @@ public class SaleDeliveryController {
|
|
|
exportByDeliver("随货发票", saleDelivery.getId(), response);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 导出唛头
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/exportShippingBillXls")
|
|
|
+ public void exportShippingBillXls(HttpServletResponse response, SaleDelivery saleDelivery) throws Exception {
|
|
|
+ exportByDeliver("唛头", saleDelivery.getId(), response);
|
|
|
+ }
|
|
|
+
|
|
|
private void exportByDeliver(String templateName, String id, HttpServletResponse response){
|
|
|
BaseTemplates templates = baseTemplatesService.getByTemplateType(templateName);
|
|
|
SaleDelivery saleDelivery = saleDeliveryService.getById(id);
|