|
@@ -8,7 +8,7 @@ import com.aspose.words.DocumentBuilder;
|
|
import com.aspose.words.Font;
|
|
import com.aspose.words.Font;
|
|
import com.dayou.dto.Address;
|
|
import com.dayou.dto.Address;
|
|
import com.dayou.dto.HouseRightsDTO;
|
|
import com.dayou.dto.HouseRightsDTO;
|
|
-import com.dayou.dto.HouseGuarantyTargetDTO;
|
|
|
|
|
|
+import com.dayou.entity.HouseGuarantyAim;
|
|
import com.dayou.entity.*;
|
|
import com.dayou.entity.*;
|
|
import com.dayou.enums.HouseTargetTableColumn;
|
|
import com.dayou.enums.HouseTargetTableColumn;
|
|
import com.dayou.exception.ErrorCode;
|
|
import com.dayou.exception.ErrorCode;
|
|
@@ -89,19 +89,22 @@ public class HouseDocumentUtil {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- public static List<HouseGuarantyTargetDTO> houseTargetsFormatDTO(JSONArray jsonArray) throws IllegalAccessException {
|
|
|
|
- List<HouseGuarantyTargetDTO> dtoList = new ArrayList<>();
|
|
|
|
|
|
+ public static List<HouseGuarantyAim> houseTargetsFormatDTO(JSONArray jsonArray) throws IllegalAccessException {
|
|
|
|
+ List<HouseGuarantyAim> dtoList = new ArrayList<>();
|
|
for (int i = 0 ; i < jsonArray.size(); i++){
|
|
for (int i = 0 ; i < jsonArray.size(); i++){
|
|
JSONObject item = (JSONObject) jsonArray.get(i);
|
|
JSONObject item = (JSONObject) jsonArray.get(i);
|
|
if (!item.isNull(LOCATION.getZhName()) &&
|
|
if (!item.isNull(LOCATION.getZhName()) &&
|
|
item.get(LOCATION.getZhName())!=null &&
|
|
item.get(LOCATION.getZhName())!=null &&
|
|
!item.isNull(CERTIFICATE_NO.getZhName())
|
|
!item.isNull(CERTIFICATE_NO.getZhName())
|
|
&& item.get(CERTIFICATE_NO.getZhName())!=null){
|
|
&& item.get(CERTIFICATE_NO.getZhName())!=null){
|
|
- HouseGuarantyTargetDTO guarantyTargetDTO = new HouseGuarantyTargetDTO();
|
|
|
|
|
|
+ HouseGuarantyAim guarantyTargetDTO = new HouseGuarantyAim();
|
|
Field[] declaredFields = guarantyTargetDTO.getClass().getDeclaredFields();
|
|
Field[] declaredFields = guarantyTargetDTO.getClass().getDeclaredFields();
|
|
for (Field field : declaredFields) {
|
|
for (Field field : declaredFields) {
|
|
field.setAccessible(true);
|
|
field.setAccessible(true);
|
|
String zhNameByCode = HouseTargetTableColumn.getZhNameByCode(field.getName());
|
|
String zhNameByCode = HouseTargetTableColumn.getZhNameByCode(field.getName());
|
|
|
|
+ if (StrUtil.isBlank(zhNameByCode)){
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
String value = String.valueOf(item.get(zhNameByCode)==null?"":item.get(zhNameByCode));
|
|
String value = String.valueOf(item.get(zhNameByCode)==null?"":item.get(zhNameByCode));
|
|
field.set(guarantyTargetDTO, value);
|
|
field.set(guarantyTargetDTO, value);
|
|
|
|
|
|
@@ -116,11 +119,11 @@ public class HouseDocumentUtil {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 格式化项目名称
|
|
* 格式化项目名称
|
|
- * @param array
|
|
|
|
|
|
+ * @param aims
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static String getProjectName(JSONArray array){
|
|
|
|
- List<Object> addresses = JsonUtil.collectByKeyToList(array, LOCATION.getZhName());
|
|
|
|
|
|
+ public static String getProjectName(List<HouseGuarantyAim> aims){
|
|
|
|
+ List<String> addresses = aims.stream().map(HouseGuarantyAim::getLocation).collect(Collectors.toList());
|
|
List<Address> addressList = AddressUtil.parseAddress(addresses);
|
|
List<Address> addressList = AddressUtil.parseAddress(addresses);
|
|
|
|
|
|
Map<List<Object>, List<Address>> collect = addressList.stream().collect(Collectors.groupingBy(compositeKey, Collectors.toList()));
|
|
Map<List<Object>, List<Address>> collect = addressList.stream().collect(Collectors.groupingBy(compositeKey, Collectors.toList()));
|
|
@@ -135,7 +138,7 @@ public class HouseDocumentUtil {
|
|
}else {
|
|
}else {
|
|
result = CollectionUtil.formatSplitAndRemoveMiddle(mergeAddress(addressList)) + "共计"+ addressList.size();
|
|
result = CollectionUtil.formatSplitAndRemoveMiddle(mergeAddress(addressList)) + "共计"+ addressList.size();
|
|
}
|
|
}
|
|
- return result +"处估价对象" + getUseTo(array) +"用房地产抵押价值评估";
|
|
|
|
|
|
+ return result +"处估价对象" + getUseTo(aims) +"用房地产抵押价值评估";
|
|
}
|
|
}
|
|
|
|
|
|
static Function<Address, List<Object>> compositeKey = address ->
|
|
static Function<Address, List<Object>> compositeKey = address ->
|
|
@@ -144,65 +147,65 @@ public class HouseDocumentUtil {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 格式化地址
|
|
* 格式化地址
|
|
- * @param array
|
|
|
|
|
|
+ * @param aims
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static String getAddress(JSONArray array){
|
|
|
|
- List<Object> addresses = JsonUtil.collectByKeyToList(array, LOCATION.getZhName());
|
|
|
|
|
|
+ public static String getAddress(List<HouseGuarantyAim> aims){
|
|
|
|
+ List<String> addresses = aims.stream().map(HouseGuarantyAim::getLocation).collect(Collectors.toList());
|
|
List<Address> addressList = AddressUtil.parseAddress(addresses);
|
|
List<Address> addressList = AddressUtil.parseAddress(addresses);
|
|
return CollectionUtil.formatSplitAndRemoveMiddle(mergeAddress(addressList));
|
|
return CollectionUtil.formatSplitAndRemoveMiddle(mergeAddress(addressList));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 格式化权利人
|
|
* 格式化权利人
|
|
- * @param array
|
|
|
|
|
|
+ * @param list
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static String getOwnShipUser(JSONArray array){
|
|
|
|
- Set<Object> ownShipUsers = array.stream().map(obj -> ((JSONObject) obj).get(OWE_SHIP_USER.getZhName()))
|
|
|
|
|
|
+ public static String getOwnShipUser(List<HouseGuarantyAim> list){
|
|
|
|
+ Set<Object> ownShipUsers = list.stream().map(obj -> obj.getOwnShipUser())
|
|
.filter(x->x!=null).collect(Collectors.toSet());
|
|
.filter(x->x!=null).collect(Collectors.toSet());
|
|
return CollectionUtil.formatDotAndRemoveMiddle(ownShipUsers);
|
|
return CollectionUtil.formatDotAndRemoveMiddle(ownShipUsers);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 格式化用途
|
|
* 格式化用途
|
|
- * @param array
|
|
|
|
|
|
+ * @param aims
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static String getUseTo(JSONArray array){
|
|
|
|
- Set<Object> useTo = array.stream().map(obj -> ((JSONObject) obj).get(USE_TO.getZhName()))
|
|
|
|
|
|
+ public static String getUseTo(List<HouseGuarantyAim> aims){
|
|
|
|
+ Set<Object> useTo = aims.stream().map(obj -> obj.getUseTo())
|
|
.filter(x->x!=null).collect(Collectors.toSet());
|
|
.filter(x->x!=null).collect(Collectors.toSet());
|
|
return CollectionUtil.formatDotAndRemoveMiddle(useTo);
|
|
return CollectionUtil.formatDotAndRemoveMiddle(useTo);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 格式化实勘地址
|
|
* 格式化实勘地址
|
|
- * @param targets
|
|
|
|
|
|
+ * @param aims
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static String getActAddress(JSONArray targets){
|
|
|
|
|
|
+ public static String getActAddress(List<HouseGuarantyAim> aims){
|
|
StringBuilder sb = new StringBuilder("【");
|
|
StringBuilder sb = new StringBuilder("【");
|
|
- String actAddress = (String) ((JSONObject) targets.get(0)).get(ACT_ADDRESS.getZhName());
|
|
|
|
|
|
+ String actAddress = aims.get(0).getActAddress();
|
|
if (StrUtil.isNotBlank(actAddress)){
|
|
if (StrUtil.isNotBlank(actAddress)){
|
|
sb.append("实勘地址为").append(actAddress).append("(未见其余门牌号);");
|
|
sb.append("实勘地址为").append(actAddress).append("(未见其余门牌号);");
|
|
}
|
|
}
|
|
|
|
|
|
- List<Object> acreage = JsonUtil.collectByKeyToList(targets, ACREAGE.getZhName());
|
|
|
|
|
|
+ List<Object> acreage = aims.stream().map(HouseGuarantyAim::getAcreage).collect(Collectors.toList());
|
|
//建筑面积
|
|
//建筑面积
|
|
BigDecimal totalAcreage = sumList(acreage);
|
|
BigDecimal totalAcreage = sumList(acreage);
|
|
|
|
|
|
- Set<Object> landType = JsonUtil.collectByKeyToSet(targets, LAND_TYPE.getZhName());
|
|
|
|
|
|
+ Set<String> landType = aims.stream().map(HouseGuarantyAim::getLandType).collect(Collectors.toSet());
|
|
|
|
|
|
- List<Object> outerAcreage = JsonUtil.collectByKeyToList(targets, OUTER_ACREAGE.getZhName());
|
|
|
|
|
|
+ List<Object> outerAcreage = aims.stream().map(HouseGuarantyAim::getOuterAcreage).collect(Collectors.toList());
|
|
|
|
|
|
- Set<Object> useTo = JsonUtil.collectByKeyToSet(targets, USE_TO.getZhName());
|
|
|
|
|
|
+ Set<String> useTo = aims.stream().map(HouseGuarantyAim::getUseTo).collect(Collectors.toSet());
|
|
|
|
|
|
String outDesc = outAcreageTemplate(useTo, landType, outerAcreage);
|
|
String outDesc = outAcreageTemplate(useTo, landType, outerAcreage);
|
|
- sb.append("建筑面积"+(targets.size()>1?"合计:":":")).append(totalAcreage).append("㎡;");
|
|
|
|
|
|
+ sb.append("建筑面积"+(aims.size()>1?"合计:":":")).append(totalAcreage).append("㎡;");
|
|
|
|
|
|
|
|
|
|
sb.append("房屋所有权证号:");
|
|
sb.append("房屋所有权证号:");
|
|
- List<Object> certificateNos = JsonUtil.collectByKeyToList(targets, CERTIFICATE_NO.getZhName());
|
|
|
|
|
|
+ List<Object> certificateNos = aims.stream().map(HouseGuarantyAim::getCertificateNo).collect(Collectors.toList());
|
|
|
|
|
|
String certificates = CollectionUtil.formatDotAndRemoveMiddle(certificateNos);
|
|
String certificates = CollectionUtil.formatDotAndRemoveMiddle(certificateNos);
|
|
|
|
|
|
@@ -214,21 +217,21 @@ public class HouseDocumentUtil {
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 格式化估价对象描述
|
|
* 格式化估价对象描述
|
|
- * @param targets 估价对象
|
|
|
|
|
|
+ * @param aims 估价对象
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static String getTargetDescription(JSONArray targets){
|
|
|
|
|
|
+ public static String getTargetDescription(List<HouseGuarantyAim> aims){
|
|
//单个估价对象里面可能有多个子对象
|
|
//单个估价对象里面可能有多个子对象
|
|
- String address = getAddress(targets);
|
|
|
|
|
|
+ String address = getAddress(aims);
|
|
//实勘地址
|
|
//实勘地址
|
|
//权利人
|
|
//权利人
|
|
- String ownShipUser = getOwnShipUser(targets);
|
|
|
|
|
|
+ String ownShipUser = getOwnShipUser(aims);
|
|
//用途
|
|
//用途
|
|
- String useTo = getUseTo(targets);
|
|
|
|
|
|
+ String useTo = getUseTo(aims);
|
|
//编号
|
|
//编号
|
|
- String id = (String) ((JSONObject) targets.get(0)).get(ID.getZhName());
|
|
|
|
|
|
+ String id = aims.get(0).getTid();
|
|
//实勘描述
|
|
//实勘描述
|
|
- String actDesc = getActAddress(targets);
|
|
|
|
|
|
+ String actDesc = getActAddress(aims);
|
|
//格式化 todo 段落模版从DB中获取
|
|
//格式化 todo 段落模版从DB中获取
|
|
String template ;
|
|
String template ;
|
|
if (StrUtil.isNotBlank(ownShipUser)){
|
|
if (StrUtil.isNotBlank(ownShipUser)){
|
|
@@ -245,14 +248,13 @@ public class HouseDocumentUtil {
|
|
* @param collect
|
|
* @param collect
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static String combinationTargetDescription(Map<Object, List<Object>> collect){
|
|
|
|
|
|
+ public static String combinationTargetDescription(Map<String, List<HouseGuarantyAim>> collect){
|
|
String actDesc = "";
|
|
String actDesc = "";
|
|
int index = 1;
|
|
int index = 1;
|
|
int mapSize = collect.size();
|
|
int mapSize = collect.size();
|
|
- for (Map.Entry<Object, List<Object>> entry : collect.entrySet()) {
|
|
|
|
- List<Object> value = entry.getValue();
|
|
|
|
- JSONArray xArray = new JSONArray(value);
|
|
|
|
- String actAddress = HouseDocumentUtil.getTargetDescription(xArray);
|
|
|
|
|
|
+ for (Map.Entry<String, List<HouseGuarantyAim>> entry : collect.entrySet()) {
|
|
|
|
+ List<HouseGuarantyAim> value = entry.getValue();
|
|
|
|
+ String actAddress = HouseDocumentUtil.getTargetDescription(value);
|
|
//添加换行符
|
|
//添加换行符
|
|
if (index != mapSize){
|
|
if (index != mapSize){
|
|
actAddress += "\n";
|
|
actAddress += "\n";
|
|
@@ -289,16 +291,16 @@ public class HouseDocumentUtil {
|
|
* @param outerAcreage
|
|
* @param outerAcreage
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static String outAcreageTemplate(Set<Object> useTo,Set<Object> landType,List<Object> outerAcreage){
|
|
|
|
|
|
+ public static String outAcreageTemplate(Set<String> useTo,Set<String> landType,List<Object> outerAcreage){
|
|
//有地类用途和分摊面积
|
|
//有地类用途和分摊面积
|
|
if (cn.hutool.core.collection.CollectionUtil.isNotEmpty(outerAcreage)
|
|
if (cn.hutool.core.collection.CollectionUtil.isNotEmpty(outerAcreage)
|
|
&& cn.hutool.core.collection.CollectionUtil.isNotEmpty(landType)){
|
|
&& cn.hutool.core.collection.CollectionUtil.isNotEmpty(landType)){
|
|
- for (Object l : landType){
|
|
|
|
- if (((String)l).contains("商业")){
|
|
|
|
|
|
+ for (String l : landType){
|
|
|
|
+ if (l.contains("商业")){
|
|
BigDecimal sum = sumList(outerAcreage);
|
|
BigDecimal sum = sumList(outerAcreage);
|
|
return "估价对象分摊出让商业用地使用权面积合计为:"+sum.toString()+"㎡;详见估价结果一览表";
|
|
return "估价对象分摊出让商业用地使用权面积合计为:"+sum.toString()+"㎡;详见估价结果一览表";
|
|
}
|
|
}
|
|
- if (((String)l).contains("零售")){
|
|
|
|
|
|
+ if (l.contains("零售")){
|
|
BigDecimal sum = sumList(outerAcreage);
|
|
BigDecimal sum = sumList(outerAcreage);
|
|
return "估价对象分摊出让批发零售用地使用权面积合计为:"+sum.toString()+"㎡;详见估价结果一览表";
|
|
return "估价对象分摊出让批发零售用地使用权面积合计为:"+sum.toString()+"㎡;详见估价结果一览表";
|
|
}
|
|
}
|
|
@@ -510,7 +512,7 @@ public class HouseDocumentUtil {
|
|
public static String getIsBuildingPart(List<HouseGuarantyTarget> targets, TmplHouseParagraph tmplHouseParagraph) {
|
|
public static String getIsBuildingPart(List<HouseGuarantyTarget> targets, TmplHouseParagraph tmplHouseParagraph) {
|
|
String paragraph = tmplHouseParagraph.getParagraph();
|
|
String paragraph = tmplHouseParagraph.getParagraph();
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
- Set<String> tIds = targets.stream().filter(x -> (StrUtil.isNotBlank(x.getIsPart()) && x.getIsPart().equals(YES))).map(HouseGuarantyTarget::getTId).collect(Collectors.toSet());
|
|
|
|
|
|
+ Set<String> tIds = targets.stream().filter(x -> (StrUtil.isNotBlank(x.getIsPart()) && x.getIsPart().equals(YES))).map(HouseGuarantyTarget::getTid).collect(Collectors.toSet());
|
|
if (CollectionUtil.isNotEmpty(tIds)){
|
|
if (CollectionUtil.isNotEmpty(tIds)){
|
|
if (tIds.size() == targets.size()){
|
|
if (tIds.size() == targets.size()){
|
|
return paragraph.replace("{tIds}", "");
|
|
return paragraph.replace("{tIds}", "");
|
|
@@ -532,7 +534,7 @@ public class HouseDocumentUtil {
|
|
public static String getIsHotelPart(List<HouseGuarantyTarget> targets, TmplHouseParagraph tmplHouseParagraph) {
|
|
public static String getIsHotelPart(List<HouseGuarantyTarget> targets, TmplHouseParagraph tmplHouseParagraph) {
|
|
String paragraph = tmplHouseParagraph.getParagraph();
|
|
String paragraph = tmplHouseParagraph.getParagraph();
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
- Set<String> tIds = targets.stream().filter(x -> (StrUtil.isNotBlank(x.getIsPart()) && x.getIsPart().equals(HOTEL_PART))).map(HouseGuarantyTarget::getTId).collect(Collectors.toSet());
|
|
|
|
|
|
+ Set<String> tIds = targets.stream().filter(x -> (StrUtil.isNotBlank(x.getIsPart()) && x.getIsPart().equals(HOTEL_PART))).map(HouseGuarantyTarget::getTid).collect(Collectors.toSet());
|
|
if (CollectionUtil.isNotEmpty(tIds)){
|
|
if (CollectionUtil.isNotEmpty(tIds)){
|
|
if (tIds.size() == targets.size()){
|
|
if (tIds.size() == targets.size()){
|
|
return paragraph.replace("{tIds}", "");
|
|
return paragraph.replace("{tIds}", "");
|
|
@@ -555,7 +557,7 @@ public class HouseDocumentUtil {
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> (x.getHasBuildingYear()!=null && !x.getHasBuildingYear() && StrUtil.isNotBlank(x.getBuildingYear()))).collect(Collectors.toList());
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> (x.getHasBuildingYear()!=null && !x.getHasBuildingYear() && StrUtil.isNotBlank(x.getBuildingYear()))).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
- List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTid).collect(Collectors.toList());
|
|
List<String> buildingYears = collect.stream().map(HouseGuarantyTarget::getBuildingYear).collect(Collectors.toList());
|
|
List<String> buildingYears = collect.stream().map(HouseGuarantyTarget::getBuildingYear).collect(Collectors.toList());
|
|
result = paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds))
|
|
result = paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds))
|
|
.replace("{years}", CollectionUtil.formatDotAndRemoveMiddle(buildingYears));
|
|
.replace("{years}", CollectionUtil.formatDotAndRemoveMiddle(buildingYears));
|
|
@@ -574,14 +576,14 @@ public class HouseDocumentUtil {
|
|
StringBuilder result = new StringBuilder();
|
|
StringBuilder result = new StringBuilder();
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
for (HouseGuarantyTarget target : targets) {
|
|
for (HouseGuarantyTarget target : targets) {
|
|
- List<HouseGuarantyTargetDTO> targetDTOS = JSON.parseArray(target.getBaseInfo(), HouseGuarantyTargetDTO.class);
|
|
|
|
- for (HouseGuarantyTargetDTO targetDTO : targetDTOS) {
|
|
|
|
|
|
+ List<HouseGuarantyAim> targetDTOS = target.getAims();
|
|
|
|
+ for (HouseGuarantyAim targetDTO : targetDTOS) {
|
|
if (!targetDTO.getLandType().contains(targetDTO.getUseTo())){
|
|
if (!targetDTO.getLandType().contains(targetDTO.getUseTo())){
|
|
result.append(tmplHouseParagraph.getParagraph())
|
|
result.append(tmplHouseParagraph.getParagraph())
|
|
- .append("估价对象").append(targetDTO.getId()).append("序号").append(targetDTO.getNo())
|
|
|
|
|
|
+ .append("估价对象").append(targetDTO.getTid()).append("序号").append(targetDTO.getTno())
|
|
.append("所在宗地《国有土地使用证》记载土地用途为")
|
|
.append("所在宗地《国有土地使用证》记载土地用途为")
|
|
.append(targetDTO.getLandType()).append(",估价对象")
|
|
.append(targetDTO.getLandType()).append(",估价对象")
|
|
- .append(targetDTO.getId()).append("序号").append(targetDTO.getNo()).append("《房屋所有权证》记载规划用途为")
|
|
|
|
|
|
+ .append(targetDTO.getTid()).append("序号").append(targetDTO.getTno()).append("《房屋所有权证》记载规划用途为")
|
|
.append(targetDTO.getUseTo())
|
|
.append(targetDTO.getUseTo())
|
|
.append(",本次估价以估价对象合法保持房屋实际用途继续使用为假设前提。\n");
|
|
.append(",本次估价以估价对象合法保持房屋实际用途继续使用为假设前提。\n");
|
|
}
|
|
}
|
|
@@ -606,7 +608,7 @@ public class HouseDocumentUtil {
|
|
&& x.getLandCertificateType().equals("大证")&& !x.getIsCostingShareMethod()).collect(Collectors.toList());
|
|
&& x.getLandCertificateType().equals("大证")&& !x.getIsCostingShareMethod()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect) && certificateLandUse!=null){
|
|
if (CollectionUtil.isNotEmpty(collect) && certificateLandUse!=null){
|
|
for (HouseGuarantyTarget target : collect) {
|
|
for (HouseGuarantyTarget target : collect) {
|
|
- String tId = target.getTId();
|
|
|
|
|
|
+ String tId = target.getTid();
|
|
String landUseTo = target.getLandUseTo();
|
|
String landUseTo = target.getLandUseTo();
|
|
String content = paragraph.replace("{tId}", tId).replace("{landUseTo}", certificateLandUse.getUseType()).replace("{landExpireDate}", certificateLandUse.getExpireDate());
|
|
String content = paragraph.replace("{tId}", tId).replace("{landUseTo}", certificateLandUse.getUseType()).replace("{landExpireDate}", certificateLandUse.getExpireDate());
|
|
result.append(content).append("\n");
|
|
result.append(content).append("\n");
|
|
@@ -630,9 +632,9 @@ public class HouseDocumentUtil {
|
|
x.getLandCertificateType().equals("大证") )).collect(Collectors.toList());
|
|
x.getLandCertificateType().equals("大证") )).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect) && CollectionUtil.isNotEmpty(landCerts)){
|
|
if (CollectionUtil.isNotEmpty(collect) && CollectionUtil.isNotEmpty(landCerts)){
|
|
for (HouseGuarantyTarget target : collect) {
|
|
for (HouseGuarantyTarget target : collect) {
|
|
- List<CertificateLandUse> certs = landCerts.stream().filter(x -> x.getTid().equals(target.getTId())).collect(Collectors.toList());
|
|
|
|
|
|
+ List<CertificateLandUse> certs = landCerts.stream().filter(x -> x.getTid().equals(target.getTid())).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(certs)){
|
|
if (CollectionUtil.isNotEmpty(certs)){
|
|
- String tId = target.getTId();
|
|
|
|
|
|
+ String tId = target.getTid();
|
|
String content = paragraph.replace("{tId}", tId).replace("{landExpireDate}",certs.get(0).getExpireDate()).replace("{shareAcreage1}", certs.get(0).getOutterAcreage());
|
|
String content = paragraph.replace("{tId}", tId).replace("{landExpireDate}",certs.get(0).getExpireDate()).replace("{shareAcreage1}", certs.get(0).getOutterAcreage());
|
|
result.append(content).append("\n");
|
|
result.append(content).append("\n");
|
|
}
|
|
}
|
|
@@ -658,9 +660,9 @@ public class HouseDocumentUtil {
|
|
&& x.getHasLayerImage()!=null && x.getHasLayerImage())).collect(Collectors.toList());
|
|
&& x.getHasLayerImage()!=null && x.getHasLayerImage())).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (HouseGuarantyTarget target : collect) {
|
|
for (HouseGuarantyTarget target : collect) {
|
|
- String tId = target.getTId();
|
|
|
|
- List<HouseGuarantyTargetDTO> targetDTOS = JSON.parseArray(target.getBaseInfo(), HouseGuarantyTargetDTO.class);
|
|
|
|
- List<String> acreageStr = targetDTOS.stream().filter(x -> StrUtil.isNotBlank(x.getAcreage())).map(HouseGuarantyTargetDTO::getAcreage).collect(Collectors.toList());
|
|
|
|
|
|
+ String tId = target.getTid();
|
|
|
|
+ List<HouseGuarantyAim> targetDTOS = target.getAims();
|
|
|
|
+ List<String> acreageStr = targetDTOS.stream().filter(x -> StrUtil.isNotBlank(x.getAcreage())).map(HouseGuarantyAim::getAcreage).collect(Collectors.toList());
|
|
BigDecimal acreage = BigDecimal.ZERO;
|
|
BigDecimal acreage = BigDecimal.ZERO;
|
|
for (String acreageStr1 : acreageStr) {
|
|
for (String acreageStr1 : acreageStr) {
|
|
acreage = acreage.add(new BigDecimal(acreageStr1));
|
|
acreage = acreage.add(new BigDecimal(acreageStr1));
|
|
@@ -707,9 +709,9 @@ public class HouseDocumentUtil {
|
|
&& x.getHasLayerImage()!=null && !x.getHasLayerImage())).collect(Collectors.toList());
|
|
&& x.getHasLayerImage()!=null && !x.getHasLayerImage())).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (HouseGuarantyTarget target : collect) {
|
|
for (HouseGuarantyTarget target : collect) {
|
|
- String tId = target.getTId();
|
|
|
|
- List<HouseGuarantyTargetDTO> targetDTOS = JSON.parseArray(target.getBaseInfo(), HouseGuarantyTargetDTO.class);
|
|
|
|
- List<String> acreageStr = targetDTOS.stream().filter(x -> StrUtil.isNotBlank(x.getAcreage())).map(HouseGuarantyTargetDTO::getAcreage).collect(Collectors.toList());
|
|
|
|
|
|
+ String tId = target.getTid();
|
|
|
|
+ List<HouseGuarantyAim> targetDTOS = target.getAims();
|
|
|
|
+ List<String> acreageStr = targetDTOS.stream().filter(x -> StrUtil.isNotBlank(x.getAcreage())).map(HouseGuarantyAim::getAcreage).collect(Collectors.toList());
|
|
BigDecimal acreage = BigDecimal.ZERO;
|
|
BigDecimal acreage = BigDecimal.ZERO;
|
|
for (String acreageStr1 : acreageStr) {
|
|
for (String acreageStr1 : acreageStr) {
|
|
acreage = acreage.add(new BigDecimal(acreageStr1));
|
|
acreage = acreage.add(new BigDecimal(acreageStr1));
|
|
@@ -757,8 +759,8 @@ public class HouseDocumentUtil {
|
|
&& x.getIsAddressCertificate()!=null && x.getIsAddressCertificate()).collect(Collectors.toList());
|
|
&& x.getIsAddressCertificate()!=null && x.getIsAddressCertificate()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (HouseGuarantyTarget target : collect) {
|
|
for (HouseGuarantyTarget target : collect) {
|
|
- String tId = target.getTId();
|
|
|
|
- List<HouseGuarantyTargetDTO> targetDTOS = JSON.parseArray(target.getBaseInfo(), HouseGuarantyTargetDTO.class);
|
|
|
|
|
|
+ String tId = target.getTid();
|
|
|
|
+ List<HouseGuarantyAim> targetDTOS = target.getAims();
|
|
String location = targetDTOS.get(0).getLocation();
|
|
String location = targetDTOS.get(0).getLocation();
|
|
String actAddress = targetDTOS.get(0).getActAddress();
|
|
String actAddress = targetDTOS.get(0).getActAddress();
|
|
String replace = paragraph.replace("{tId}", tId).replace("{address}", location).replace("{actAddress}", actAddress).replace("{certificates}", CollectionUtil.formatDotAndRemoveMiddle(certificates));
|
|
String replace = paragraph.replace("{tId}", tId).replace("{address}", location).replace("{actAddress}", actAddress).replace("{certificates}", CollectionUtil.formatDotAndRemoveMiddle(certificates));
|
|
@@ -784,8 +786,8 @@ public class HouseDocumentUtil {
|
|
&& x.getIsAddressCertificate()!=null && !x.getIsAddressCertificate()).collect(Collectors.toList());
|
|
&& x.getIsAddressCertificate()!=null && !x.getIsAddressCertificate()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (HouseGuarantyTarget target : collect) {
|
|
for (HouseGuarantyTarget target : collect) {
|
|
- String tId = target.getTId();
|
|
|
|
- List<HouseGuarantyTargetDTO> targetDTOS = JSON.parseArray(target.getBaseInfo(), HouseGuarantyTargetDTO.class);
|
|
|
|
|
|
+ String tId = target.getTid();
|
|
|
|
+ List<HouseGuarantyAim> targetDTOS = target.getAims();
|
|
String actAddress = targetDTOS.get(0).getActAddress();
|
|
String actAddress = targetDTOS.get(0).getActAddress();
|
|
String replace = paragraph.replace("{tId}", tId)
|
|
String replace = paragraph.replace("{tId}", tId)
|
|
.replace("{actAddress}", actAddress).replace("{certificates}", CollectionUtil.formatDotAndRemoveMiddle(certificates));
|
|
.replace("{actAddress}", actAddress).replace("{certificates}", CollectionUtil.formatDotAndRemoveMiddle(certificates));
|
|
@@ -809,7 +811,7 @@ public class HouseDocumentUtil {
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getIsDateTimeSame()!=null && !x.getIsDateTimeSame()).collect(Collectors.toList());
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getIsDateTimeSame()!=null && !x.getIsDateTimeSame()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (HouseGuarantyTarget target : collect) {
|
|
for (HouseGuarantyTarget target : collect) {
|
|
- String tId = target.getTId();
|
|
|
|
|
|
+ String tId = target.getTid();
|
|
String exploreDate = target.getExploreDate();
|
|
String exploreDate = target.getExploreDate();
|
|
String replace = paragraph.replace("{tId}", tId).replace("{exploreDate}", exploreDate==null?"<缺失实勘日期>":exploreDate).replace("{valueTiming}", valueTiming);
|
|
String replace = paragraph.replace("{tId}", tId).replace("{exploreDate}", exploreDate==null?"<缺失实勘日期>":exploreDate).replace("{valueTiming}", valueTiming);
|
|
result.append(replace).append("\n");
|
|
result.append(replace).append("\n");
|
|
@@ -831,7 +833,7 @@ public class HouseDocumentUtil {
|
|
x.getLandCertificateType().equals("大证") && !x.getHouseGetLandInfo()).collect(Collectors.toList());
|
|
x.getLandCertificateType().equals("大证") && !x.getHouseGetLandInfo()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
- List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTid).collect(Collectors.toList());
|
|
return paragraph.replace("{tIds}",CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
return paragraph.replace("{tIds}",CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -847,7 +849,7 @@ public class HouseDocumentUtil {
|
|
public static String isNotOriginCertificateOnlyHouse(List<HouseGuarantyTarget> targets, TmplHouseParagraph tmplParagraph,String isCheckOriginCertificate,List<String> certificates) {
|
|
public static String isNotOriginCertificateOnlyHouse(List<HouseGuarantyTarget> targets, TmplHouseParagraph tmplParagraph,String isCheckOriginCertificate,List<String> certificates) {
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (!checkBoolean(isCheckOriginCertificate)){
|
|
if (!checkBoolean(isCheckOriginCertificate)){
|
|
- List<String> tIds = targets.stream().map(HouseGuarantyTarget::getTId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> tIds = targets.stream().map(HouseGuarantyTarget::getTid).collect(Collectors.toList());
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds)).replace("{certificates}", CollectionUtil.formatDotAndRemoveMiddle(certificates));
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds)).replace("{certificates}", CollectionUtil.formatDotAndRemoveMiddle(certificates));
|
|
}
|
|
}
|
|
@@ -865,12 +867,12 @@ public class HouseDocumentUtil {
|
|
if (CollectionUtil.isNotEmpty(targets) && !checkBoolean(isCheckOriginCertificate)){
|
|
if (CollectionUtil.isNotEmpty(targets) && !checkBoolean(isCheckOriginCertificate)){
|
|
List<String> tIds = new ArrayList<>();
|
|
List<String> tIds = new ArrayList<>();
|
|
for (HouseGuarantyTarget target : targets) {
|
|
for (HouseGuarantyTarget target : targets) {
|
|
- List<HouseGuarantyTargetDTO> targetDTOS = JSON.parseArray(target.getBaseInfo(), HouseGuarantyTargetDTO.class);
|
|
|
|
- List<String> addresses = targetDTOS.stream().map(HouseGuarantyTargetDTO::getLocation).collect(Collectors.toList());
|
|
|
|
|
|
+ List<HouseGuarantyAim> targetDTOS = target.getAims();
|
|
|
|
+ List<String> addresses = targetDTOS.stream().map(HouseGuarantyAim::getLocation).collect(Collectors.toList());
|
|
for (String address : addresses) {
|
|
for (String address : addresses) {
|
|
Boolean inBigChengdu = AddressUtil.isInBigChengdu(address);
|
|
Boolean inBigChengdu = AddressUtil.isInBigChengdu(address);
|
|
if (inBigChengdu){
|
|
if (inBigChengdu){
|
|
- tIds.add(target.getTId());
|
|
|
|
|
|
+ tIds.add(target.getTid());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -893,12 +895,12 @@ public class HouseDocumentUtil {
|
|
if (CollectionUtil.isNotEmpty(targets) && !checkBoolean(isCheckOriginCertificate)){
|
|
if (CollectionUtil.isNotEmpty(targets) && !checkBoolean(isCheckOriginCertificate)){
|
|
List<String> tIds = new ArrayList<>();
|
|
List<String> tIds = new ArrayList<>();
|
|
for (HouseGuarantyTarget target : targets) {
|
|
for (HouseGuarantyTarget target : targets) {
|
|
- List<HouseGuarantyTargetDTO> targetDTOS = JSON.parseArray(target.getBaseInfo(), HouseGuarantyTargetDTO.class);
|
|
|
|
- List<String> addresses = targetDTOS.stream().map(HouseGuarantyTargetDTO::getLocation).collect(Collectors.toList());
|
|
|
|
|
|
+ List<HouseGuarantyAim> targetDTOS = target.getAims();
|
|
|
|
+ List<String> addresses = targetDTOS.stream().map(HouseGuarantyAim::getLocation).collect(Collectors.toList());
|
|
for (String address : addresses) {
|
|
for (String address : addresses) {
|
|
Boolean inBigChengdu = AddressUtil.isInBigChengdu(address);
|
|
Boolean inBigChengdu = AddressUtil.isInBigChengdu(address);
|
|
if (!inBigChengdu){
|
|
if (!inBigChengdu){
|
|
- tIds.add(target.getTId());
|
|
|
|
|
|
+ tIds.add(target.getTid());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -923,7 +925,7 @@ public class HouseDocumentUtil {
|
|
&& x.getHasRentOutContract() !=null && !x.getHasRentOutContract() && x.getIsRentLimit()!=null && !x.getIsRentLimit()).collect(Collectors.toList());
|
|
&& x.getHasRentOutContract() !=null && !x.getHasRentOutContract() && x.getIsRentLimit()!=null && !x.getIsRentLimit()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
- List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTid).collect(Collectors.toList());
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -941,7 +943,7 @@ public class HouseDocumentUtil {
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getIsBuildingReduceValue()!=null && x.getIsBuildingReduceValue()).collect(Collectors.toList());
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getIsBuildingReduceValue()!=null && x.getIsBuildingReduceValue()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
- List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTid).collect(Collectors.toList());
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
}
|
|
}
|
|
@@ -961,7 +963,7 @@ public class HouseDocumentUtil {
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getIsBuildingReduceValue()!=null && x.getIsBuildingReduceValue()).collect(Collectors.toList());
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getIsBuildingReduceValue()!=null && x.getIsBuildingReduceValue()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
- List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTid).collect(Collectors.toList());
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
}
|
|
}
|
|
@@ -1015,7 +1017,7 @@ public class HouseDocumentUtil {
|
|
String pledgeUser = target.getPledgeUser();
|
|
String pledgeUser = target.getPledgeUser();
|
|
String pledgeValue = target.getPledgeValue();
|
|
String pledgeValue = target.getPledgeValue();
|
|
String newPledgeUser = target.getNewPledgeUser();
|
|
String newPledgeUser = target.getNewPledgeUser();
|
|
- String tId = target.getTId();
|
|
|
|
|
|
+ String tId = target.getTid();
|
|
return paragraph.replace("{tId}", tId)
|
|
return paragraph.replace("{tId}", tId)
|
|
.replace("{tId}", tId).replace("{pledgeType}", pledgeType).replace("{pledgeType}", pledgeType)
|
|
.replace("{tId}", tId).replace("{pledgeType}", pledgeType).replace("{pledgeType}", pledgeType)
|
|
.replace("{pledgeUser}", pledgeUser).replace("{pledgeValue}",
|
|
.replace("{pledgeUser}", pledgeUser).replace("{pledgeValue}",
|
|
@@ -1062,7 +1064,7 @@ public class HouseDocumentUtil {
|
|
&& x.getSamePledgeHigh()!=null &&x.getSamePledgeHigh()).collect(Collectors.toList());
|
|
&& x.getSamePledgeHigh()!=null &&x.getSamePledgeHigh()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
- String tId = collect.get(i).getTId();
|
|
|
|
|
|
+ String tId = collect.get(i).getTid();
|
|
String pledgeUser = collect.get(i).getPledgeUser();
|
|
String pledgeUser = collect.get(i).getPledgeUser();
|
|
result.append(paragraph.replace("{tId}", tId).replace("{tId}",tId).replace("{pledgeUser}",pledgeUser));
|
|
result.append(paragraph.replace("{tId}", tId).replace("{tId}",tId).replace("{pledgeUser}",pledgeUser));
|
|
if (i != collect.size()-1){
|
|
if (i != collect.size()-1){
|
|
@@ -1137,7 +1139,7 @@ public class HouseDocumentUtil {
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> StrUtil.isBlank(x.getFirstMoney())).collect(Collectors.toList());
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> StrUtil.isBlank(x.getFirstMoney())).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
- List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTid).collect(Collectors.toList());
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
}
|
|
}
|
|
@@ -1156,7 +1158,7 @@ public class HouseDocumentUtil {
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getSamePledgeContinue()!=null &&
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getSamePledgeContinue()!=null &&
|
|
x.getSamePledgeContinue() && StrUtil.isNotBlank(x.getPledgeType())).collect(Collectors.toList());
|
|
x.getSamePledgeContinue() && StrUtil.isNotBlank(x.getPledgeType())).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
- List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTid).collect(Collectors.toList());
|
|
Set<String> pledgeTypes = collect.stream().map(HouseGuarantyTarget::getPledgeType).collect(Collectors.toSet());
|
|
Set<String> pledgeTypes = collect.stream().map(HouseGuarantyTarget::getPledgeType).collect(Collectors.toSet());
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds))
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds))
|
|
@@ -1180,7 +1182,7 @@ public class HouseDocumentUtil {
|
|
&& StrUtil.isNotBlank(x.getNewPledgeUser())).collect(Collectors.toList());
|
|
&& StrUtil.isNotBlank(x.getNewPledgeUser())).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
- String tId = collect.get(i).getTId();
|
|
|
|
|
|
+ String tId = collect.get(i).getTid();
|
|
String pledgeType = collect.get(i).getPledgeType();
|
|
String pledgeType = collect.get(i).getPledgeType();
|
|
String newPledgeUser = collect.get(i).getNewPledgeUser();
|
|
String newPledgeUser = collect.get(i).getNewPledgeUser();
|
|
result.append(paragraph.replace("{tId}", tId)
|
|
result.append(paragraph.replace("{tId}", tId)
|
|
@@ -1210,7 +1212,7 @@ public class HouseDocumentUtil {
|
|
x.getSamePledgeHigh()).collect(Collectors.toList());
|
|
x.getSamePledgeHigh()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
- String tId = collect.get(i).getTId();
|
|
|
|
|
|
+ String tId = collect.get(i).getTid();
|
|
String pledgeUser = collect.get(i).getPledgeUser();
|
|
String pledgeUser = collect.get(i).getPledgeUser();
|
|
result.append(paragraph.replace("{tId}", tId).replace("{tId}",tId).replace("{pledgeUser}",pledgeUser));
|
|
result.append(paragraph.replace("{tId}", tId).replace("{tId}",tId).replace("{pledgeUser}",pledgeUser));
|
|
if (i != collect.size()-1){
|
|
if (i != collect.size()-1){
|
|
@@ -1237,7 +1239,7 @@ public class HouseDocumentUtil {
|
|
&& x.getHighPledgeNotExpire()!=null && x.getHighPledgeNotExpire()).collect(Collectors.toList());
|
|
&& x.getHighPledgeNotExpire()!=null && x.getHighPledgeNotExpire()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
- String tId = collect.get(i).getTId();
|
|
|
|
|
|
+ String tId = collect.get(i).getTid();
|
|
String pledgeUser = collect.get(i).getPledgeUser();
|
|
String pledgeUser = collect.get(i).getPledgeUser();
|
|
result.append(paragraph.replace("{tId}", tId).replace("{tId}",tId).replace("{pledgeUser}",pledgeUser));
|
|
result.append(paragraph.replace("{tId}", tId).replace("{tId}",tId).replace("{pledgeUser}",pledgeUser));
|
|
if (i != collect.size()-1){
|
|
if (i != collect.size()-1){
|
|
@@ -1260,7 +1262,7 @@ public class HouseDocumentUtil {
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
if (CollectionUtil.isNotEmpty(targets)){
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getIsRentOut()!=null && !x.getIsRentOut()).collect(Collectors.toList());
|
|
List<HouseGuarantyTarget> collect = targets.stream().filter(x -> x.getIsRentOut()!=null && !x.getIsRentOut()).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
- List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTId).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> tIds = collect.stream().map(HouseGuarantyTarget::getTid).collect(Collectors.toList());
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
String paragraph = tmplParagraph.getParagraph();
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
return paragraph.replace("{tIds}", CollectionUtil.formatDotAndRemoveMiddle(tIds));
|
|
}
|
|
}
|
|
@@ -1283,7 +1285,7 @@ public class HouseDocumentUtil {
|
|
&& StrUtil.isNotBlank(x.getNotRentLimitReason()) && StrUtil.equals(x.getRentLimitReason(), "高于市场租金")).collect(Collectors.toList());
|
|
&& StrUtil.isNotBlank(x.getNotRentLimitReason()) && StrUtil.equals(x.getRentLimitReason(), "高于市场租金")).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
- String tId = collect.get(i).getTId();
|
|
|
|
|
|
+ String tId = collect.get(i).getTid();
|
|
result.append(paragraph.replace("{tId}", tId));
|
|
result.append(paragraph.replace("{tId}", tId));
|
|
if (i != collect.size()-1){
|
|
if (i != collect.size()-1){
|
|
result.append("\n");
|
|
result.append("\n");
|
|
@@ -1310,7 +1312,7 @@ public class HouseDocumentUtil {
|
|
&& StrUtil.isNotBlank(x.getNotRentLimitReason()) && StrUtil.equals(x.getRentLimitReason(), "与市场租金相当")).collect(Collectors.toList());
|
|
&& StrUtil.isNotBlank(x.getNotRentLimitReason()) && StrUtil.equals(x.getRentLimitReason(), "与市场租金相当")).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
- String tId = collect.get(i).getTId();
|
|
|
|
|
|
+ String tId = collect.get(i).getTid();
|
|
result.append(paragraph.replace("{tId}", tId));
|
|
result.append(paragraph.replace("{tId}", tId));
|
|
if (i != collect.size()-1){
|
|
if (i != collect.size()-1){
|
|
result.append("\n");
|
|
result.append("\n");
|
|
@@ -1337,7 +1339,7 @@ public class HouseDocumentUtil {
|
|
&& StrUtil.isNotBlank(x.getNotRentLimitReason()) && StrUtil.equals(x.getRentLimitReason(), "低于市场租金")).collect(Collectors.toList());
|
|
&& StrUtil.isNotBlank(x.getNotRentLimitReason()) && StrUtil.equals(x.getRentLimitReason(), "低于市场租金")).collect(Collectors.toList());
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
if (CollectionUtil.isNotEmpty(collect)){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
for (int i = 0; i < collect.size(); i++){
|
|
- String tId = collect.get(i).getTId();
|
|
|
|
|
|
+ String tId = collect.get(i).getTid();
|
|
result.append(paragraph.replace("{tId}", tId));
|
|
result.append(paragraph.replace("{tId}", tId));
|
|
if (i != collect.size()-1){
|
|
if (i != collect.size()-1){
|
|
result.append("\n");
|
|
result.append("\n");
|