Commit 9ac69978 authored by lixuan's avatar lixuan

feat: 房源

parent cb9b8294
...@@ -18,6 +18,8 @@ public class HouseResourcePage { ...@@ -18,6 +18,8 @@ public class HouseResourcePage {
private String three; private String three;
private String wgName3;
private String four; private String four;
private String wgName4; private String wgName4;
......
...@@ -122,6 +122,7 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -122,6 +122,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
businessEntityInfoMapper.insertBusinessEntityInfo(businessEntityInfo); businessEntityInfoMapper.insertBusinessEntityInfo(businessEntityInfo);
for (BusinessEntitySell businessEntitySell : businessEntityDto.getBusinessEntitySells()) { for (BusinessEntitySell businessEntitySell : businessEntityDto.getBusinessEntitySells()) {
businessEntitySell.setId(UUID.randomUUID().toString().replaceAll("-", ""));
businessEntitySell.setBusinessEntityInfoId(businessEntityInfoId); businessEntitySell.setBusinessEntityInfoId(businessEntityInfoId);
businessEntitySellMapper.insertBusinessEntitySell(businessEntitySell); businessEntitySellMapper.insertBusinessEntitySell(businessEntitySell);
} }
...@@ -150,8 +151,12 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -150,8 +151,12 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if (!two.isEmpty()) { if (!two.isEmpty()) {
x.setWgName2(two.get(0).getWgName()); x.setWgName2(two.get(0).getWgName());
} }
if (StringUtils.hasText(x.getHouseResourceUrl())) {
x.setHouseResourceUrlList(Arrays.asList(x.getHouseResourceUrl().split(","))); GridRegionExample gridRegionExampleThree = new GridRegionExample();
gridRegionExampleThree.createCriteria().andWgCodeEqualTo(x.getThree()).andWgTypeEqualTo(String.valueOf(x.getType()));
List<GridRegion> three = gridRegionMapper.selectByExample(gridRegionExampleThree);
if (!three.isEmpty()) {
x.setWgName3(three.get(0).getWgName());
} }
x.setHouseResourceAttributeText(HouseEnums.HouseResourceAttributeEnum.getDescByCode(x.getHouseResourceAttribute())); x.setHouseResourceAttributeText(HouseEnums.HouseResourceAttributeEnum.getDescByCode(x.getHouseResourceAttribute()));
x.setHouseResourceTypeText(HouseEnums.HouseResourceTypeEnum.getDescByCode(x.getHouseResourceType())); x.setHouseResourceTypeText(HouseEnums.HouseResourceTypeEnum.getDescByCode(x.getHouseResourceType()));
......
...@@ -122,13 +122,13 @@ ...@@ -122,13 +122,13 @@
and t2.type = #{query.wgType} and t2.type = #{query.wgType}
</if> </if>
<if test="query.two != null and query.two != ''"> <if test="query.two != null and query.two != ''">
and t2.two like concat('%', #{query.two}, '%') and t2.two = #{query.two}
</if> </if>
<if test="query.three != null and query.three != ''"> <if test="query.three != null and query.three != ''">
and t2.three like concat('%', #{query.three}, '%') and t2.three = #{query.three}
</if> </if>
<if test="query.four != null and query.four != ''"> <if test="query.four != null and query.four != ''">
and t2.four like concat('%', #{query.four}, '%') and t2.four = #{query.four}
</if> </if>
<if test="query.houseResourceAttribute != null and query.houseResourceAttribute != ''"> <if test="query.houseResourceAttribute != null and query.houseResourceAttribute != ''">
and t2.house_resource_attribute = #{query.houseResourceAttribute} and t2.house_resource_attribute = #{query.houseResourceAttribute}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment