租赁协议

This commit is contained in:
liang.chao 2024-12-17 21:16:53 +08:00
parent 93b58cc96e
commit dc59a19176
3 changed files with 9 additions and 6 deletions

View File

@ -338,14 +338,14 @@ public class OrderController extends BaseController {
replacements.put("orderTable", orderDetail);
BmContract bmContract = new BmContract();
bmContract.setStatus(1);
List<BmContract> list = bmContractService.list(bmContract);
String content = list.get(0).getContent();
if (StringUtils.isBlank(content)) {
content = bmContractService.lisTemplate(bmContract).get(0).getContent();
bmContract = bmContractService.getContract(bmContract);
bmContract.setCompanyId(orderInfoDto.getCompanyId());
if (bmContract == null || StringUtils.isBlank(bmContract.getContent())) {
bmContract = new BmContract();
bmContract.setContent(bmContractService.lisTemplate(bmContract).get(0).getContent());
}
StrSubstitutor sub = new StrSubstitutor(replacements);
String result = sub.replace(content);
String result = sub.replace(bmContract.getContent());
return AjaxResult.success(result);
}

View File

@ -129,4 +129,6 @@ public class OrderInfoDto {
@ApiModelProperty(value = "是否部分退租")
private boolean isPartBacked;
private Integer companyId;
}

View File

@ -281,6 +281,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
moi.CODE AS CODE,
moi.order_time,
up.dept_name AS czcompanyName,
up.dept_id as companyId,
mdi.person_phone AS personPhone,
su.phonenumber AS phoneNumber,
moi.address,