单据打印修改打印地址

master
郑明梁 2 years ago
parent c074b53599
commit 2c20566d39

@ -36,6 +36,7 @@ import com.glxp.api.service.system.SystemPDFTemplateRelevanceService;
import com.glxp.api.service.system.SystemPDFTemplateService;
import com.glxp.api.util.JasperUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@ -72,6 +73,8 @@ public class BasicOrderPrintController {
IoCodeService ioCodeService;
@Resource
SystemPDFTemplateRelevanceCodeService systemPDFTemplateRelevanceCodeService;
@Value("${file_path}")
private String filePath;
//校验模板是否正确
@AuthRuleAnnotation("")
@ -202,7 +205,7 @@ public class BasicOrderPrintController {
data.put("data", list);
String param = JSON.toJSONString(data);
JasperUtils.jasperReport(request, response, param, systemPDFTemplateEntity.getPath(), "pdf");
JasperUtils.jasperReport(request, response, param, filePath+"pdf/template/"+systemPDFTemplateEntity.getPath(), "pdf");
}

Loading…
Cancel
Save