Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yichengstreet-be
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yichengstreet
yichengstreet-be
Commits
754d72b5
Commit
754d72b5
authored
Jun 25, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
787e2444
Pipeline
#145131
failed with stages
in 3 minutes and 7 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
HouseResourceController.java
...m/ruoyi/web/controller/house/HouseResourceController.java
+4
-1
HouseResourceExport.java
...com/ruoyi/system/domain/house/vo/HouseResourceExport.java
+3
-1
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+1
-1
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+1
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/house/HouseResourceController.java
View file @
754d72b5
...
@@ -6,7 +6,7 @@ import com.ruoyi.system.domain.house.HouseResource;
...
@@ -6,7 +6,7 @@ import com.ruoyi.system.domain.house.HouseResource;
import
com.ruoyi.system.domain.house.vo.*
;
import
com.ruoyi.system.domain.house.vo.*
;
import
com.ruoyi.system.service.house.HouseResourceService
;
import
com.ruoyi.system.service.house.HouseResourceService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.
security.access.prepost.PreAuthorize
;
import
org.springframework.
util.CollectionUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -102,6 +102,9 @@ public class HouseResourceController {
...
@@ -102,6 +102,9 @@ 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
);
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourceExport.java
View file @
754d72b5
...
@@ -48,9 +48,11 @@ public class HouseResourceExport {
...
@@ -48,9 +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
;
@Excel
(
name
=
"经营主体名称"
)
private
List
<
String
>
businessEntityInfoNames
;
private
List
<
String
>
businessEntityInfoNames
;
@Excel
(
name
=
"经营主体名称"
)
private
String
businessEntityInfoNamesStr
;
@Excel
(
name
=
"负责人联系方式"
)
@Excel
(
name
=
"负责人联系方式"
)
private
String
principalTel
;
private
String
principalTel
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
754d72b5
...
@@ -307,7 +307,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -307,7 +307,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if
(
CollectionUtils
.
isEmpty
(
list
))
{
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
Collections
.
emptyList
();
return
Collections
.
emptyList
();
}
else
{
}
else
{
return
handleHouseList
(
list
,
tru
e
);
return
handleHouseList
(
list
,
fals
e
);
}
}
}
}
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
754d72b5
...
@@ -273,6 +273,7 @@
...
@@ -273,6 +273,7 @@
</select>
</select>
<select
id=
"exportList"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
<select
id=
"exportList"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
SELECT
SELECT
t1.id,
t1.two,
t1.two,
t1.three,
t1.three,
t2.wg_name AS wgName4,
t2.wg_name AS wgName4,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment