租赁协议

This commit is contained in:
liang.chao 2024-12-18 10:16:47 +08:00
parent df8a7f3245
commit 3def5e57ca
1 changed files with 3 additions and 2 deletions

View File

@ -244,8 +244,8 @@ public class OrderController extends BaseController {
}
@ApiOperation(value = "购物车协议(查看)-word方式")
@GetMapping("/bookCarAgreement")
public AjaxResult bookCarAgreement(OrderInfoDto orderInfoDto, Map<String, String> 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<String, String> replacements = new HashMap<>();
//装备所属公司
replacements.put("${czcompanyName}", orderInfoDto.getCzcompanyName());
//承租方所属公司