租赁协议
This commit is contained in:
parent
93b58cc96e
commit
dc59a19176
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -129,4 +129,6 @@ public class OrderInfoDto {
|
|||
@ApiModelProperty(value = "是否部分退租")
|
||||
private boolean isPartBacked;
|
||||
|
||||
private Integer companyId;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue