Commit a41fab83 authored by lixuan's avatar lixuan

feat: 房源

parent 754d72b5
Pipeline #145222 canceled with stages
...@@ -102,9 +102,6 @@ public class HouseResourceController { ...@@ -102,9 +102,6 @@ public class HouseResourceController {
pageList.forEach(x -> { pageList.forEach(x -> {
HouseResourceExport houseResourceExport = new HouseResourceExport(); HouseResourceExport houseResourceExport = new HouseResourceExport();
BeanUtils.copyProperties(x, houseResourceExport); BeanUtils.copyProperties(x, houseResourceExport);
if (!CollectionUtils.isEmpty(x.getBusinessEntityInfoNames())) {
houseResourceExport.setBusinessEntityInfoNamesStr(String.join(",", x.getBusinessEntityInfoNames()));
}
exportList.add(houseResourceExport); exportList.add(houseResourceExport);
}); });
ExcelUtil<HouseResourceExport> util = new ExcelUtil<>(HouseResourceExport.class); ExcelUtil<HouseResourceExport> util = new ExcelUtil<>(HouseResourceExport.class);
......
...@@ -48,10 +48,11 @@ public class HouseResourceExport { ...@@ -48,10 +48,11 @@ public class HouseResourceExport {
@Excel(name = "经营主体性质", readConverterExp = "1=个体经营户,2=法人单位(企业),3=分公司,4=非经营主体") @Excel(name = "经营主体性质", readConverterExp = "1=个体经营户,2=法人单位(企业),3=分公司,4=非经营主体")
private String nature; private String nature;
private List<String> businessEntityInfoNames;
@Excel(name = "经营主体名称") @Excel(name = "经营主体名称")
private String businessEntityInfoNamesStr; private String businessEntityInfoName;
@Excel(name = "负责人")
private String principal;
@Excel(name = "负责人联系方式") @Excel(name = "负责人联系方式")
private String principalTel; private String principalTel;
......
...@@ -112,6 +112,10 @@ public class HouseResourcePage { ...@@ -112,6 +112,10 @@ public class HouseResourcePage {
private Boolean registrationPlaceFlag; private Boolean registrationPlaceFlag;
private String businessEntityInfoName;
private String principal;
private String principalTel; private String principalTel;
private String business; private String business;
......
...@@ -77,4 +77,6 @@ public class HouseResourcePageQuery extends PageDomain { ...@@ -77,4 +77,6 @@ public class HouseResourcePageQuery extends PageDomain {
private String incomeSort; private String incomeSort;
private Integer year; private Integer year;
private Integer registrationPlaceFlag;
} }
...@@ -178,6 +178,9 @@ ...@@ -178,6 +178,9 @@
<if test="query.year != null"> <if test="query.year != null">
and t4.`year` = #{query.year} and t4.`year` = #{query.year}
</if> </if>
<if test="query.registrationPlaceFlag != null">
and t3.registration_place_flag = #{query.registrationPlaceFlag}
</if>
<if test="query.wgCodes != null and query.wgCodes.size() > 0"> <if test="query.wgCodes != null and query.wgCodes.size() > 0">
and t1.two in and t1.two in
<foreach item="item" index="index" collection="query.wgCodes" open="(" separator="," close=")"> <foreach item="item" index="index" collection="query.wgCodes" open="(" separator="," close=")">
...@@ -295,11 +298,12 @@ ...@@ -295,11 +298,12 @@
t3.registered_address, t3.registered_address,
t3.industry_classification, t3.industry_classification,
t3.gs, t3.gs,
t1.remark t1.remark,
t3.name AS businessEntityInfoName
FROM FROM
house_resource t1 house_resource t1
LEFT JOIN grid_region t2 ON t2.wg_code = t1.four LEFT JOIN grid_region t2 ON t2.wg_code = t1.four
LEFT JOIN business_entity_info t3 ON t1.id = t3.house_resource_id LEFT JOIN business_entity_info t3 ON t1.id = t3.house_resource_id limit 0, 100
<where> <where>
<if test="query.wgType != null"> <if test="query.wgType != null">
and t1.type = #{query.wgType} and t1.type = #{query.wgType}
...@@ -328,16 +332,13 @@ ...@@ -328,16 +332,13 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
</where>
GROUP BY t1.id
<trim prefix="having" prefixOverrides="and">
<if test="query.houseAreaMin != null and query.houseAreaMin != '' and query.houseAreaMax != null and query.houseAreaMax != ''"> <if test="query.houseAreaMin != null and query.houseAreaMin != '' and query.houseAreaMax != null and query.houseAreaMax != ''">
and t1.house_area <![CDATA[ >= ]]> #{query.houseAreaMin} and t1.house_area <![CDATA[ <= ]]> #{query.houseAreaMax} and t1.house_area <![CDATA[ >= ]]> #{query.houseAreaMin} and t1.house_area <![CDATA[ <= ]]> #{query.houseAreaMax}
</if> </if>
<if test="query.yearSellMin != null and query.yearSellMin != '' and query.yearSellMax != null and query.yearSellMax != ''"> <if test="query.yearSellMin != null and query.yearSellMin != '' and query.yearSellMax != null and query.yearSellMax != ''">
and t4.year_sell <![CDATA[ >= ]]> #{query.yearSellMin} and t4.year_sell <![CDATA[ <= ]]> #{query.yearSellMax} and t4.year_sell <![CDATA[ >= ]]> #{query.yearSellMin} and t4.year_sell <![CDATA[ <= ]]> #{query.yearSellMax}
</if> </if>
</trim> </where>
</select> </select>
<select id="selectAll" resultType="com.ruoyi.system.domain.house.HouseResource"> <select id="selectAll" resultType="com.ruoyi.system.domain.house.HouseResource">
SELECT * FROM house_resource SELECT * FROM house_resource
......
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