From 3def5e57ca0bc12ff8525098e8f10d3ca3cb0dac Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Wed, 18 Dec 2024 10:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=9F=E8=B5=81=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bonus/material/order/controller/OrderController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/order/controller/OrderController.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/order/controller/OrderController.java index e29f938..ef19b8a 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/order/controller/OrderController.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/order/controller/OrderController.java @@ -244,8 +244,8 @@ public class OrderController extends BaseController { } @ApiOperation(value = "购物车协议(查看)-word方式") - @GetMapping("/bookCarAgreement") - public AjaxResult bookCarAgreement(OrderInfoDto orderInfoDto, Map replacements) throws ParseException, IOException { + @PostMapping("/bookCarAgreement") + public AjaxResult bookCarAgreement(@RequestBody OrderInfoDto orderInfoDto) throws ParseException, IOException { if (orderInfoDto != null) { BmContract bmContract = new BmContract(); bmContract.setStatus(1); @@ -255,6 +255,7 @@ public class OrderController extends BaseController { XWPFDocument document = new XWPFDocument(inputStream); SimpleDateFormat inputFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.ENGLISH); SimpleDateFormat outputFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Map replacements = new HashMap<>(); //装备所属公司 replacements.put("${czcompanyName}", orderInfoDto.getCzcompanyName()); //承租方所属公司