Commit 754d72b5 authored by lixuan's avatar lixuan

feat: 房源

parent 787e2444
Pipeline #145131 failed with stages
in 3 minutes and 7 seconds
......@@ -6,7 +6,7 @@ import com.ruoyi.system.domain.house.HouseResource;
import com.ruoyi.system.domain.house.vo.*;
import com.ruoyi.system.service.house.HouseResourceService;
import org.springframework.beans.BeanUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
......@@ -102,6 +102,9 @@ public class HouseResourceController {
pageList.forEach(x -> {
HouseResourceExport houseResourceExport = new HouseResourceExport();
BeanUtils.copyProperties(x, houseResourceExport);
if (!CollectionUtils.isEmpty(x.getBusinessEntityInfoNames())) {
houseResourceExport.setBusinessEntityInfoNamesStr(String.join(",", x.getBusinessEntityInfoNames()));
}
exportList.add(houseResourceExport);
});
ExcelUtil<HouseResourceExport> util = new ExcelUtil<>(HouseResourceExport.class);
......
......@@ -48,9 +48,11 @@ public class HouseResourceExport {
@Excel(name = "经营主体性质", readConverterExp = "1=个体经营户,2=法人单位(企业),3=分公司,4=非经营主体")
private String nature;
@Excel(name = "经营主体名称")
private List<String> businessEntityInfoNames;
@Excel(name = "经营主体名称")
private String businessEntityInfoNamesStr;
@Excel(name = "负责人联系方式")
private String principalTel;
......
......@@ -307,7 +307,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if (CollectionUtils.isEmpty(list)) {
return Collections.emptyList();
} else {
return handleHouseList(list, true);
return handleHouseList(list, false);
}
}
......
......@@ -273,6 +273,7 @@
</select>
<select id="exportList" resultType="com.ruoyi.system.domain.house.vo.HouseResourcePage">
SELECT
t1.id,
t1.two,
t1.three,
t2.wg_name AS wgName4,
......
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