Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
c47105ea
You need to sign in or sign up before continuing.
Commit
c47105ea
authored
Jul 25, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
fc6e2b6b
Pipeline
#145506
canceled with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
59 deletions
+19
-59
AssociationBusinessEntityHouseResourceDto.java
...n/house/vo/AssociationBusinessEntityHouseResourceDto.java
+0
-42
BusinessEntityDto.java
...a/com/ruoyi/system/domain/house/vo/BusinessEntityDto.java
+4
-2
HouseResourceDetail.java
...com/ruoyi/system/domain/house/vo/HouseResourceDetail.java
+1
-1
HouseResourceService.java
.../com/ruoyi/system/service/house/HouseResourceService.java
+1
-1
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+13
-13
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/AssociationBusinessEntityHouseResourceDto.java
deleted
100644 → 0
View file @
fc6e2b6b
package
com
.
ruoyi
.
system
.
domain
.
house
.
vo
;
import
com.ruoyi.system.domain.house.BusinessEntitySell
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
AssociationBusinessEntityHouseResourceDto
{
private
String
id
;
private
String
houseResourceId
;
private
String
name
;
private
String
nature
;
private
String
socialCreditCode
;
private
String
principal
;
private
String
principalTel
;
private
String
business
;
private
Integer
workerNumber
;
private
String
registeredAddress
;
private
String
industryClassification
;
private
Boolean
gs
;
private
Boolean
registrationPlaceFlag
;
private
boolean
associationBusinessEntityFlag
;
private
List
<
HouseResourcePage
>
houseResources
;
private
List
<
BusinessEntitySell
>
businessEntitySells
;
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/BusinessEntityDto.java
View file @
c47105ea
...
@@ -32,9 +32,11 @@ public class BusinessEntityDto {
...
@@ -32,9 +32,11 @@ public class BusinessEntityDto {
private
Boolean
gs
;
private
Boolean
gs
;
private
List
<
BusinessEntitySell
>
businessEntitySells
;
private
Boolean
registrationPlaceFlag
;
private
Boolean
registrationPlaceFlag
;
private
boolean
associationBusinessEntityFlag
;
private
boolean
associationBusinessEntityFlag
;
private
List
<
HouseResourcePage
>
houseResources
;
private
List
<
BusinessEntitySell
>
businessEntitySells
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourceDetail.java
View file @
c47105ea
...
@@ -100,7 +100,7 @@ public class HouseResourceDetail {
...
@@ -100,7 +100,7 @@ public class HouseResourceDetail {
private
String
remark
;
private
String
remark
;
private
List
<
AssociationBusinessEntityHouseResource
Dto
>
businessEntityDtoList
;
private
List
<
BusinessEntity
Dto
>
businessEntityDtoList
;
private
Integer
registrationPlaceFlag
;
private
Integer
registrationPlaceFlag
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/HouseResourceService.java
View file @
c47105ea
...
@@ -34,5 +34,5 @@ public interface HouseResourceService {
...
@@ -34,5 +34,5 @@ public interface HouseResourceService {
void
saveYearTax
(
YearTaxSaveUpdateDto
dto
);
void
saveYearTax
(
YearTaxSaveUpdateDto
dto
);
List
<
AssociationBusinessEntityHouseResource
Dto
>
listByBusinessEntityInfoName
(
String
name
);
List
<
BusinessEntity
Dto
>
listByBusinessEntityInfoName
(
String
name
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
c47105ea
...
@@ -133,24 +133,24 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -133,24 +133,24 @@ public class HouseResourceServiceImpl implements HouseResourceService {
List
<
HouseResourceBusinessEntityInfoMapping
>
houseResourceMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByHouseResourceId
(
id
);
List
<
HouseResourceBusinessEntityInfoMapping
>
houseResourceMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByHouseResourceId
(
id
);
if
(!
CollectionUtils
.
isEmpty
(
houseResourceMappings
))
{
if
(!
CollectionUtils
.
isEmpty
(
houseResourceMappings
))
{
List
<
AssociationBusinessEntityHouseResource
Dto
>
result
=
new
ArrayList
<>();
List
<
BusinessEntity
Dto
>
result
=
new
ArrayList
<>();
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectByIdList
(
houseResourceMappings
.
stream
().
map
(
HouseResourceBusinessEntityInfoMapping:
:
getBusinessEntityInfoId
).
collect
(
Collectors
.
toList
()));
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectByIdList
(
houseResourceMappings
.
stream
().
map
(
HouseResourceBusinessEntityInfoMapping:
:
getBusinessEntityInfoId
).
collect
(
Collectors
.
toList
()));
businessEntityInfos
.
forEach
(
x
->
{
businessEntityInfos
.
forEach
(
x
->
{
AssociationBusinessEntityHouseResourceDto
associationBusinessEntityHouseResourceDto
=
new
AssociationBusinessEntityHouseResource
Dto
();
BusinessEntityDto
businessEntityDto
=
new
BusinessEntity
Dto
();
BeanUtils
.
copyProperties
(
x
,
associationBusinessEntityHouseResource
Dto
);
BeanUtils
.
copyProperties
(
x
,
businessEntity
Dto
);
if
(
StringUtils
.
hasText
(
x
.
getHouseResourceId
()))
{
if
(
StringUtils
.
hasText
(
x
.
getHouseResourceId
()))
{
List
<
HouseResourceBusinessEntityInfoMapping
>
businessEntityInfoMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByBusinessEntityInfoId
(
x
.
getId
());
List
<
HouseResourceBusinessEntityInfoMapping
>
businessEntityInfoMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByBusinessEntityInfoId
(
x
.
getId
());
if
(!
CollectionUtils
.
isEmpty
(
businessEntityInfoMappings
))
{
if
(!
CollectionUtils
.
isEmpty
(
businessEntityInfoMappings
))
{
List
<
HouseResourcePage
>
list
=
houseResourceMapper
.
selectByIdList
(
businessEntityInfoMappings
.
stream
().
map
(
HouseResourceBusinessEntityInfoMapping:
:
getHouseResourceId
).
collect
(
Collectors
.
toList
()));
List
<
HouseResourcePage
>
list
=
houseResourceMapper
.
selectByIdList
(
businessEntityInfoMappings
.
stream
().
map
(
HouseResourceBusinessEntityInfoMapping:
:
getHouseResourceId
).
collect
(
Collectors
.
toList
()));
List
<
HouseResourcePage
>
handleList
=
handleHouseList
(
list
,
false
);
List
<
HouseResourcePage
>
handleList
=
handleHouseList
(
list
,
false
);
associationBusinessEntityHouseResource
Dto
.
setHouseResources
(
handleList
);
businessEntity
Dto
.
setHouseResources
(
handleList
);
}
}
}
}
List
<
BusinessEntitySell
>
businessEntitySells
=
businessEntitySellMapper
.
selectBusinessEntitySellByEntityId
(
x
.
getId
());
List
<
BusinessEntitySell
>
businessEntitySells
=
businessEntitySellMapper
.
selectBusinessEntitySellByEntityId
(
x
.
getId
());
if
(!
CollectionUtils
.
isEmpty
(
businessEntitySells
))
{
if
(!
CollectionUtils
.
isEmpty
(
businessEntitySells
))
{
associationBusinessEntityHouseResource
Dto
.
setBusinessEntitySells
(
businessEntitySells
);
businessEntity
Dto
.
setBusinessEntitySells
(
businessEntitySells
);
}
}
result
.
add
(
associationBusinessEntityHouseResource
Dto
);
result
.
add
(
businessEntity
Dto
);
});
});
houseResourceDetail
.
setBusinessEntityDtoList
(
result
);
houseResourceDetail
.
setBusinessEntityDtoList
(
result
);
}
}
...
@@ -508,28 +508,28 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -508,28 +508,28 @@ public class HouseResourceServiceImpl implements HouseResourceService {
}
}
@Override
@Override
public
List
<
AssociationBusinessEntityHouseResource
Dto
>
listByBusinessEntityInfoName
(
String
name
)
{
public
List
<
BusinessEntity
Dto
>
listByBusinessEntityInfoName
(
String
name
)
{
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectByName
(
name
);
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectByName
(
name
);
if
(
CollectionUtils
.
isEmpty
(
businessEntityInfos
))
{
if
(
CollectionUtils
.
isEmpty
(
businessEntityInfos
))
{
return
Collections
.
emptyList
();
return
Collections
.
emptyList
();
}
}
List
<
AssociationBusinessEntityHouseResource
Dto
>
result
=
new
ArrayList
<>();
List
<
BusinessEntity
Dto
>
result
=
new
ArrayList
<>();
businessEntityInfos
.
forEach
(
x
->
{
businessEntityInfos
.
forEach
(
x
->
{
AssociationBusinessEntityHouseResourceDto
associationBusinessEntityHouseResourceDto
=
new
AssociationBusinessEntityHouseResource
Dto
();
BusinessEntityDto
businessEntityDto
=
new
BusinessEntity
Dto
();
BeanUtils
.
copyProperties
(
x
,
associationBusinessEntityHouseResource
Dto
);
BeanUtils
.
copyProperties
(
x
,
businessEntity
Dto
);
if
(
StringUtils
.
hasText
(
x
.
getHouseResourceId
()))
{
if
(
StringUtils
.
hasText
(
x
.
getHouseResourceId
()))
{
List
<
HouseResourceBusinessEntityInfoMapping
>
houseResourceBusinessEntityInfoMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByBusinessEntityInfoId
(
x
.
getId
());
List
<
HouseResourceBusinessEntityInfoMapping
>
houseResourceBusinessEntityInfoMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByBusinessEntityInfoId
(
x
.
getId
());
if
(!
CollectionUtils
.
isEmpty
(
houseResourceBusinessEntityInfoMappings
))
{
if
(!
CollectionUtils
.
isEmpty
(
houseResourceBusinessEntityInfoMappings
))
{
List
<
HouseResourcePage
>
list
=
houseResourceMapper
.
selectByIdList
(
houseResourceBusinessEntityInfoMappings
.
stream
().
map
(
HouseResourceBusinessEntityInfoMapping:
:
getHouseResourceId
).
collect
(
Collectors
.
toList
()));
List
<
HouseResourcePage
>
list
=
houseResourceMapper
.
selectByIdList
(
houseResourceBusinessEntityInfoMappings
.
stream
().
map
(
HouseResourceBusinessEntityInfoMapping:
:
getHouseResourceId
).
collect
(
Collectors
.
toList
()));
List
<
HouseResourcePage
>
handleList
=
handleHouseList
(
list
,
false
);
List
<
HouseResourcePage
>
handleList
=
handleHouseList
(
list
,
false
);
associationBusinessEntityHouseResource
Dto
.
setHouseResources
(
handleList
);
businessEntity
Dto
.
setHouseResources
(
handleList
);
}
}
}
}
List
<
BusinessEntitySell
>
businessEntitySells
=
businessEntitySellMapper
.
selectBusinessEntitySellByEntityId
(
x
.
getId
());
List
<
BusinessEntitySell
>
businessEntitySells
=
businessEntitySellMapper
.
selectBusinessEntitySellByEntityId
(
x
.
getId
());
if
(!
CollectionUtils
.
isEmpty
(
businessEntitySells
))
{
if
(!
CollectionUtils
.
isEmpty
(
businessEntitySells
))
{
associationBusinessEntityHouseResource
Dto
.
setBusinessEntitySells
(
businessEntitySells
);
businessEntity
Dto
.
setBusinessEntitySells
(
businessEntitySells
);
}
}
result
.
add
(
associationBusinessEntityHouseResource
Dto
);
result
.
add
(
businessEntity
Dto
);
});
});
return
result
;
return
result
;
}
}
...
...
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