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
d774cc24
Commit
d774cc24
authored
Jul 28, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
41f80cf3
Pipeline
#145520
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
78 deletions
+92
-78
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+7
-0
BusinessEntityInfoMapper.xml
.../main/resources/mapper/house/BusinessEntityInfoMapper.xml
+7
-1
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+78
-77
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
d774cc24
...
@@ -560,6 +560,13 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -560,6 +560,13 @@ public class HouseResourceServiceImpl implements HouseResourceService {
x
.
setDecorationConditionText
(
HouseEnums
.
DecorationConditionEnum
.
getDescByCode
(
x
.
getDecorationCondition
()));
x
.
setDecorationConditionText
(
HouseEnums
.
DecorationConditionEnum
.
getDescByCode
(
x
.
getDecorationCondition
()));
x
.
setRentalUnitText
(
HouseEnums
.
RentalUnitEnum
.
getDescByCode
(
x
.
getRentalUnit
()));
x
.
setRentalUnitText
(
HouseEnums
.
RentalUnitEnum
.
getDescByCode
(
x
.
getRentalUnit
()));
x
.
setHireStatusText
(
HouseEnums
.
hireStatusTextEnum
.
getDescByCode
(
x
.
getHireStatus
()));
x
.
setHireStatusText
(
HouseEnums
.
hireStatusTextEnum
.
getDescByCode
(
x
.
getHireStatus
()));
List
<
HouseResourceBusinessEntityInfoMapping
>
houseResourceBusinessEntityInfoMappings
=
houseResourceBusinessEntityInfoMappingMapper
.
selectByHouseResourceId
(
x
.
getId
());
if
(!
CollectionUtils
.
isEmpty
(
houseResourceBusinessEntityInfoMappings
))
{
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectByIdList
(
houseResourceBusinessEntityInfoMappings
.
stream
().
map
(
HouseResourceBusinessEntityInfoMapping:
:
getBusinessEntityInfoId
).
collect
(
Collectors
.
toList
()));
if
(!
CollectionUtils
.
isEmpty
(
businessEntityInfos
))
{
x
.
setBusinessEntityInfoNames
(
businessEntityInfos
.
stream
().
map
(
BusinessEntityInfo:
:
getName
).
collect
(
Collectors
.
toList
()));
}
}
});
});
if
(
houseNumberSortFlag
)
{
if
(
houseNumberSortFlag
)
{
return
list
.
stream
().
sorted
(
Comparator
.
comparing
(
HouseResourcePage:
:
getHouseNumber
,
Comparator
.
nullsLast
(
String:
:
compareTo
))).
collect
(
Collectors
.
toList
());
return
list
.
stream
().
sorted
(
Comparator
.
comparing
(
HouseResourcePage:
:
getHouseNumber
,
Comparator
.
nullsLast
(
String:
:
compareTo
))).
collect
(
Collectors
.
toList
());
...
...
ruoyi-system/src/main/resources/mapper/house/BusinessEntityInfoMapper.xml
View file @
d774cc24
...
@@ -58,7 +58,13 @@
...
@@ -58,7 +58,13 @@
SELECT * FROM business_entity_info
SELECT * FROM business_entity_info
</select>
</select>
<select
id=
"selectByName"
resultType=
"com.ruoyi.system.domain.house.BusinessEntityInfo"
>
<select
id=
"selectByName"
resultType=
"com.ruoyi.system.domain.house.BusinessEntityInfo"
>
SELECT t2.* FROM house_resource t1 LEFT JOIN business_entity_info t2 ON t1.id = t2.house_resource_id WHERE t2.name like concat('%', #{name}, '%')
SELECT
t3.*
FROM
house_resource t1
LEFT JOIN house_resource_business_entity_info_mapping t2 ON t1.id = t2.house_resource_id
LEFT JOIN business_entity_info t3 ON t2.business_entity_info_id = t3.id
WHERE t3.name like concat('%', #{name}, '%')
</select>
</select>
<select
id=
"selectByIdList"
resultType=
"com.ruoyi.system.domain.house.BusinessEntityInfo"
>
<select
id=
"selectByIdList"
resultType=
"com.ruoyi.system.domain.house.BusinessEntityInfo"
>
SELECT * FROM business_entity_info WHERE id IN
SELECT * FROM business_entity_info WHERE id IN
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
d774cc24
...
@@ -175,37 +175,37 @@
...
@@ -175,37 +175,37 @@
and t1.house_resource_type = #{query.houseResourceType}
and t1.house_resource_type = #{query.houseResourceType}
</if>
</if>
<if
test=
"query.name != null and query.name != ''"
>
<if
test=
"query.name != null and query.name != ''"
>
and t
3
.name like concat('%', #{query.name}, '%')
and t
4
.name like concat('%', #{query.name}, '%')
</if>
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t
4
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
and t
5
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
</if>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
and t
4
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
and t
5
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</if>
<if
test=
"query.yearTaxMin != null and query.yearTaxMin != ''"
>
<if
test=
"query.yearTaxMin != null and query.yearTaxMin != ''"
>
and t
4
.year_tax
<![CDATA[ >= ]]>
#{query.yearTaxMin}
and t
5
.year_tax
<![CDATA[ >= ]]>
#{query.yearTaxMin}
</if>
</if>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
and t
4
.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
and t
5
.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
</if>
</if>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
</if>
</if>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
and t
4
.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
and t
1
.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
</if>
</if>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
and t
3
.gs = ${query.gsFlag}
and t
4
.gs = ${query.gsFlag}
</if>
</if>
<if
test=
"query.industryClassification != null and query.industryClassification != ''"
>
<if
test=
"query.industryClassification != null and query.industryClassification != ''"
>
and t
3
.industry_classification like concat('%', #{query.industryClassification}, '%')
and t
4
.industry_classification like concat('%', #{query.industryClassification}, '%')
</if>
</if>
<if
test=
"query.year != null"
>
<if
test=
"query.year != null"
>
and t
4
.`year` = #{query.year}
and t
5
.`year` = #{query.year}
</if>
</if>
<if
test=
"query.registrationPlaceFlag != null"
>
<if
test=
"query.registrationPlaceFlag != null"
>
and t
3
.registration_place_flag = #{query.registrationPlaceFlag}
and t
4
.registration_place_flag = #{query.registrationPlaceFlag}
</if>
</if>
<if
test=
"query.address != null and query.address != ''"
>
<if
test=
"query.address != null and query.address != ''"
>
and t1.address like concat('%', #{query.address}, '%')
and t1.address like concat('%', #{query.address}, '%')
...
@@ -217,25 +217,25 @@
...
@@ -217,25 +217,25 @@
and t1.house_resource_equity_tel like concat('%', #{query.houseResourceEquityTel}, '%')
and t1.house_resource_equity_tel like concat('%', #{query.houseResourceEquityTel}, '%')
</if>
</if>
<if
test=
"query.principal != null and query.principal != ''"
>
<if
test=
"query.principal != null and query.principal != ''"
>
and t
3
.principal like concat('%', #{query.principal}, '%')
and t
4
.principal like concat('%', #{query.principal}, '%')
</if>
</if>
<if
test=
"query.principalTel != null and query.principalTel != ''"
>
<if
test=
"query.principalTel != null and query.principalTel != ''"
>
and t
3
.principalTel like concat('%', #{query.principalTel}, '%')
and t
4
.principalTel like concat('%', #{query.principalTel}, '%')
</if>
</if>
<if
test=
"query.business != null and query.business != ''"
>
<if
test=
"query.business != null and query.business != ''"
>
and t
3
.business like concat('%', #{query.business}, '%')
and t
4
.business like concat('%', #{query.business}, '%')
</if>
</if>
<if
test=
"query.workerNumberMin != null"
>
<if
test=
"query.workerNumberMin != null"
>
and t
3
.worker_number
<![CDATA[ >= ]]>
#{query.workerNumberMin}
and t
4
.worker_number
<![CDATA[ >= ]]>
#{query.workerNumberMin}
</if>
</if>
<if
test=
"query.workerNumberMax != null"
>
<if
test=
"query.workerNumberMax != null"
>
and t
3
.worker_number
<![CDATA[ <= ]]>
#{query.workerNumberMax}
and t
4
.worker_number
<![CDATA[ <= ]]>
#{query.workerNumberMax}
</if>
</if>
<if
test=
"query.registeredAddress != null and query.registeredAddress != ''"
>
<if
test=
"query.registeredAddress != null and query.registeredAddress != ''"
>
and t
3
.registered_address like concat('%', #{query.registeredAddress}, '%')
and t
4
.registered_address like concat('%', #{query.registeredAddress}, '%')
</if>
</if>
<if
test=
"query.nature != null and query.nature != ''"
>
<if
test=
"query.nature != null and query.nature != ''"
>
and t
3
.nature = #{query.nature}
and t
4
.nature = #{query.nature}
</if>
</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
...
@@ -282,10 +282,10 @@
...
@@ -282,10 +282,10 @@
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
</if>
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t
4
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
and t
5
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
</if>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
and t
4
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
and t
5
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</if>
</trim>
</trim>
<if
test=
"query.incomeSort != null and query.incomeSort != ''"
>
<if
test=
"query.incomeSort != null and query.incomeSort != ''"
>
...
@@ -346,37 +346,37 @@
...
@@ -346,37 +346,37 @@
and t1.house_resource_type = #{query.houseResourceType}
and t1.house_resource_type = #{query.houseResourceType}
</if>
</if>
<if
test=
"query.name != null and query.name != ''"
>
<if
test=
"query.name != null and query.name != ''"
>
and t
3
.name like concat('%', #{query.name}, '%')
and t
4
.name like concat('%', #{query.name}, '%')
</if>
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t
4
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
and t
5
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
</if>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
and t
4
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
and t
5
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</if>
<if
test=
"query.yearTaxMin != null and query.yearTaxMin != ''"
>
<if
test=
"query.yearTaxMin != null and query.yearTaxMin != ''"
>
and t
4
.year_tax
<![CDATA[ >= ]]>
#{query.yearTaxMin}
and t
5
.year_tax
<![CDATA[ >= ]]>
#{query.yearTaxMin}
</if>
</if>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
and t
4
.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
and t
5
.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
</if>
</if>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
</if>
</if>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
and t
4
.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
and t
1
.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
</if>
</if>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
and t
3
.gs = ${query.gsFlag}
and t
4
.gs = ${query.gsFlag}
</if>
</if>
<if
test=
"query.industryClassification != null and query.industryClassification != ''"
>
<if
test=
"query.industryClassification != null and query.industryClassification != ''"
>
and t
3
.industry_classification like concat('%', #{query.industryClassification}, '%')
and t
4
.industry_classification like concat('%', #{query.industryClassification}, '%')
</if>
</if>
<if
test=
"query.year != null"
>
<if
test=
"query.year != null"
>
and t
4
.`year` = #{query.year}
and t
5
.`year` = #{query.year}
</if>
</if>
<if
test=
"query.registrationPlaceFlag != null"
>
<if
test=
"query.registrationPlaceFlag != null"
>
and t
3
.registration_place_flag = #{query.registrationPlaceFlag}
and t
4
.registration_place_flag = #{query.registrationPlaceFlag}
</if>
</if>
<if
test=
"query.address != null and query.address != ''"
>
<if
test=
"query.address != null and query.address != ''"
>
and t1.address like concat('%', #{query.address}, '%')
and t1.address like concat('%', #{query.address}, '%')
...
@@ -388,25 +388,25 @@
...
@@ -388,25 +388,25 @@
and t1.house_resource_equity_tel like concat('%', #{query.houseResourceEquityTel}, '%')
and t1.house_resource_equity_tel like concat('%', #{query.houseResourceEquityTel}, '%')
</if>
</if>
<if
test=
"query.principal != null and query.principal != ''"
>
<if
test=
"query.principal != null and query.principal != ''"
>
and t
3
.principal like concat('%', #{query.principal}, '%')
and t
4
.principal like concat('%', #{query.principal}, '%')
</if>
</if>
<if
test=
"query.principalTel != null and query.principalTel != ''"
>
<if
test=
"query.principalTel != null and query.principalTel != ''"
>
and t
3
.principalTel like concat('%', #{query.principalTel}, '%')
and t
4
.principalTel like concat('%', #{query.principalTel}, '%')
</if>
</if>
<if
test=
"query.business != null and query.business != ''"
>
<if
test=
"query.business != null and query.business != ''"
>
and t
3
.business like concat('%', #{query.business}, '%')
and t
4
.business like concat('%', #{query.business}, '%')
</if>
</if>
<if
test=
"query.workerNumberMin != null"
>
<if
test=
"query.workerNumberMin != null"
>
and t
3
.worker_number
<![CDATA[ >= ]]>
#{query.workerNumberMin}
and t
4
.worker_number
<![CDATA[ >= ]]>
#{query.workerNumberMin}
</if>
</if>
<if
test=
"query.workerNumberMax != null"
>
<if
test=
"query.workerNumberMax != null"
>
and t
3
.worker_number
<![CDATA[ <= ]]>
#{query.workerNumberMax}
and t
4
.worker_number
<![CDATA[ <= ]]>
#{query.workerNumberMax}
</if>
</if>
<if
test=
"query.registeredAddress != null and query.registeredAddress != ''"
>
<if
test=
"query.registeredAddress != null and query.registeredAddress != ''"
>
and t
3
.registered_address like concat('%', #{query.registeredAddress}, '%')
and t
4
.registered_address like concat('%', #{query.registeredAddress}, '%')
</if>
</if>
<if
test=
"query.nature != null and query.nature != ''"
>
<if
test=
"query.nature != null and query.nature != ''"
>
and t
3
.nature = #{query.nature}
and t
4
.nature = #{query.nature}
</if>
</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
...
@@ -453,10 +453,10 @@
...
@@ -453,10 +453,10 @@
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
</if>
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t
4
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
and t
5
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
</if>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
and t
4
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
and t
5
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</if>
</trim>
</trim>
</select>
</select>
...
@@ -514,37 +514,37 @@
...
@@ -514,37 +514,37 @@
and t1.house_resource_type = #{query.houseResourceType}
and t1.house_resource_type = #{query.houseResourceType}
</if>
</if>
<if
test=
"query.name != null and query.name != ''"
>
<if
test=
"query.name != null and query.name != ''"
>
and t
3
.name like concat('%', #{query.name}, '%')
and t
4
.name like concat('%', #{query.name}, '%')
</if>
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t
4
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
and t
5
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
</if>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
and t
4
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
and t
5
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</if>
<if
test=
"query.yearTaxMin != null and query.yearTaxMin != ''"
>
<if
test=
"query.yearTaxMin != null and query.yearTaxMin != ''"
>
and t
4
.year_tax
<![CDATA[ >= ]]>
#{query.yearTaxMin}
and t
5
.year_tax
<![CDATA[ >= ]]>
#{query.yearTaxMin}
</if>
</if>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
and t
4
.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
and t
5
.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
</if>
</if>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
</if>
</if>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
and t
4
.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
and t
1
.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
</if>
</if>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
and t
3
.gs = ${query.gsFlag}
and t
4
.gs = ${query.gsFlag}
</if>
</if>
<if
test=
"query.industryClassification != null and query.industryClassification != ''"
>
<if
test=
"query.industryClassification != null and query.industryClassification != ''"
>
and t
3
.industry_classification like concat('%', #{query.industryClassification}, '%')
and t
4
.industry_classification like concat('%', #{query.industryClassification}, '%')
</if>
</if>
<if
test=
"query.year != null"
>
<if
test=
"query.year != null"
>
and t
4
.`year` = #{query.year}
and t
5
.`year` = #{query.year}
</if>
</if>
<if
test=
"query.registrationPlaceFlag != null"
>
<if
test=
"query.registrationPlaceFlag != null"
>
and t
3
.registration_place_flag = #{query.registrationPlaceFlag}
and t
4
.registration_place_flag = #{query.registrationPlaceFlag}
</if>
</if>
<if
test=
"query.address != null and query.address != ''"
>
<if
test=
"query.address != null and query.address != ''"
>
and t1.address like concat('%', #{query.address}, '%')
and t1.address like concat('%', #{query.address}, '%')
...
@@ -556,25 +556,25 @@
...
@@ -556,25 +556,25 @@
and t1.house_resource_equity_tel like concat('%', #{query.houseResourceEquityTel}, '%')
and t1.house_resource_equity_tel like concat('%', #{query.houseResourceEquityTel}, '%')
</if>
</if>
<if
test=
"query.principal != null and query.principal != ''"
>
<if
test=
"query.principal != null and query.principal != ''"
>
and t
3
.principal like concat('%', #{query.principal}, '%')
and t
4
.principal like concat('%', #{query.principal}, '%')
</if>
</if>
<if
test=
"query.principalTel != null and query.principalTel != ''"
>
<if
test=
"query.principalTel != null and query.principalTel != ''"
>
and t
3
.principalTel like concat('%', #{query.principalTel}, '%')
and t
4
.principalTel like concat('%', #{query.principalTel}, '%')
</if>
</if>
<if
test=
"query.business != null and query.business != ''"
>
<if
test=
"query.business != null and query.business != ''"
>
and t
3
.business like concat('%', #{query.business}, '%')
and t
4
.business like concat('%', #{query.business}, '%')
</if>
</if>
<if
test=
"query.workerNumberMin != null"
>
<if
test=
"query.workerNumberMin != null"
>
and t
3
.worker_number
<![CDATA[ >= ]]>
#{query.workerNumberMin}
and t
4
.worker_number
<![CDATA[ >= ]]>
#{query.workerNumberMin}
</if>
</if>
<if
test=
"query.workerNumberMax != null"
>
<if
test=
"query.workerNumberMax != null"
>
and t
3
.worker_number
<![CDATA[ <= ]]>
#{query.workerNumberMax}
and t
4
.worker_number
<![CDATA[ <= ]]>
#{query.workerNumberMax}
</if>
</if>
<if
test=
"query.registeredAddress != null and query.registeredAddress != ''"
>
<if
test=
"query.registeredAddress != null and query.registeredAddress != ''"
>
and t
3
.registered_address like concat('%', #{query.registeredAddress}, '%')
and t
4
.registered_address like concat('%', #{query.registeredAddress}, '%')
</if>
</if>
<if
test=
"query.nature != null and query.nature != ''"
>
<if
test=
"query.nature != null and query.nature != ''"
>
and t
3
.nature = #{query.nature}
and t
4
.nature = #{query.nature}
</if>
</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
...
@@ -621,10 +621,10 @@
...
@@ -621,10 +621,10 @@
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
</if>
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t
4
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
and t
5
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
</if>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
and t
4
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
and t
5
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</if>
</trim>
</trim>
</select>
</select>
...
@@ -634,6 +634,7 @@
...
@@ -634,6 +634,7 @@
t3.id AS businessEntityInfoId,
t3.id AS businessEntityInfoId,
t1.two,
t1.two,
t1.three,
t1.three,
t1.four,
t2.wg_name AS wgName4,
t2.wg_name AS wgName4,
t1.type,
t1.type,
t1.house_number,
t1.house_number,
...
@@ -703,37 +704,37 @@
...
@@ -703,37 +704,37 @@
and t1.house_resource_type = #{query.houseResourceType}
and t1.house_resource_type = #{query.houseResourceType}
</if>
</if>
<if
test=
"query.name != null and query.name != ''"
>
<if
test=
"query.name != null and query.name != ''"
>
and t
3
.name like concat('%', #{query.name}, '%')
and t
4
.name like concat('%', #{query.name}, '%')
</if>
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t
4
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
and t
5
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
</if>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
and t
4
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
and t
5
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</if>
<if
test=
"query.yearTaxMin != null and query.yearTaxMin != ''"
>
<if
test=
"query.yearTaxMin != null and query.yearTaxMin != ''"
>
and t
4
.year_tax
<![CDATA[ >= ]]>
#{query.yearTaxMin}
and t
5
.year_tax
<![CDATA[ >= ]]>
#{query.yearTaxMin}
</if>
</if>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
<if
test=
"query.yearTaxMax != null and query.yearTaxMax != ''"
>
and t
4
.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
and t
5
.year_tax
<![CDATA[ <= ]]>
#{query.yearTaxMax}
</if>
</if>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
<if
test=
"query.unitPriceMin != null and query.unitPriceMin != ''"
>
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
and t1.unit_price
<![CDATA[ >= ]]>
#{query.unitPriceMin}
</if>
</if>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
<if
test=
"query.unitPriceMax != null and query.unitPriceMax != ''"
>
and t
4
.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
and t
1
.unit_price
<![CDATA[ <= ]]>
#{query.unitPriceMax}
</if>
</if>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
<if
test=
"query.gsFlag != null and query.gsFlag != ''"
>
and t
3
.gs = ${query.gsFlag}
and t
4
.gs = ${query.gsFlag}
</if>
</if>
<if
test=
"query.industryClassification != null and query.industryClassification != ''"
>
<if
test=
"query.industryClassification != null and query.industryClassification != ''"
>
and t
3
.industry_classification like concat('%', #{query.industryClassification}, '%')
and t
4
.industry_classification like concat('%', #{query.industryClassification}, '%')
</if>
</if>
<if
test=
"query.year != null"
>
<if
test=
"query.year != null"
>
and t
4
.`year` = #{query.year}
and t
5
.`year` = #{query.year}
</if>
</if>
<if
test=
"query.registrationPlaceFlag != null"
>
<if
test=
"query.registrationPlaceFlag != null"
>
and t
3
.registration_place_flag = #{query.registrationPlaceFlag}
and t
4
.registration_place_flag = #{query.registrationPlaceFlag}
</if>
</if>
<if
test=
"query.address != null and query.address != ''"
>
<if
test=
"query.address != null and query.address != ''"
>
and t1.address like concat('%', #{query.address}, '%')
and t1.address like concat('%', #{query.address}, '%')
...
@@ -745,25 +746,25 @@
...
@@ -745,25 +746,25 @@
and t1.house_resource_equity_tel like concat('%', #{query.houseResourceEquityTel}, '%')
and t1.house_resource_equity_tel like concat('%', #{query.houseResourceEquityTel}, '%')
</if>
</if>
<if
test=
"query.principal != null and query.principal != ''"
>
<if
test=
"query.principal != null and query.principal != ''"
>
and t
3
.principal like concat('%', #{query.principal}, '%')
and t
4
.principal like concat('%', #{query.principal}, '%')
</if>
</if>
<if
test=
"query.principalTel != null and query.principalTel != ''"
>
<if
test=
"query.principalTel != null and query.principalTel != ''"
>
and t
3
.principalTel like concat('%', #{query.principalTel}, '%')
and t
4
.principalTel like concat('%', #{query.principalTel}, '%')
</if>
</if>
<if
test=
"query.business != null and query.business != ''"
>
<if
test=
"query.business != null and query.business != ''"
>
and t
3
.business like concat('%', #{query.business}, '%')
and t
4
.business like concat('%', #{query.business}, '%')
</if>
</if>
<if
test=
"query.workerNumberMin != null"
>
<if
test=
"query.workerNumberMin != null"
>
and t
3
.worker_number
<![CDATA[ >= ]]>
#{query.workerNumberMin}
and t
4
.worker_number
<![CDATA[ >= ]]>
#{query.workerNumberMin}
</if>
</if>
<if
test=
"query.workerNumberMax != null"
>
<if
test=
"query.workerNumberMax != null"
>
and t
3
.worker_number
<![CDATA[ <= ]]>
#{query.workerNumberMax}
and t
4
.worker_number
<![CDATA[ <= ]]>
#{query.workerNumberMax}
</if>
</if>
<if
test=
"query.registeredAddress != null and query.registeredAddress != ''"
>
<if
test=
"query.registeredAddress != null and query.registeredAddress != ''"
>
and t
3
.registered_address like concat('%', #{query.registeredAddress}, '%')
and t
4
.registered_address like concat('%', #{query.registeredAddress}, '%')
</if>
</if>
<if
test=
"query.nature != null and query.nature != ''"
>
<if
test=
"query.nature != null and query.nature != ''"
>
and t
3
.nature = #{query.nature}
and t
4
.nature = #{query.nature}
</if>
</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
...
@@ -781,10 +782,10 @@
...
@@ -781,10 +782,10 @@
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
and dayPrice
<![CDATA[ <= ]]>
#{query.dayPriceMax}
</if>
</if>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
<if
test=
"query.yearSellMin != null and query.yearSellMin != ''"
>
and t
4
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
and t
5
.year_sell
<![CDATA[ >= ]]>
#{query.yearSellMin}
</if>
</if>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
<if
test=
"query.yearSellMax != null and query.yearSellMax != ''"
>
and t
4
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
and t
5
.year_sell
<![CDATA[ <= ]]>
#{query.yearSellMax}
</if>
</if>
</trim>
</trim>
</select>
</select>
...
@@ -835,7 +836,7 @@
...
@@ -835,7 +836,7 @@
LEFT JOIN house_resource_business_entity_info_mapping t3 ON t3.house_resource_id = t1.id
LEFT JOIN house_resource_business_entity_info_mapping t3 ON t3.house_resource_id = t1.id
LEFT JOIN business_entity_info t4 ON t3.business_entity_info_id = t4.id
LEFT JOIN business_entity_info t4 ON t3.business_entity_info_id = t4.id
LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id
LEFT JOIN business_entity_sell t5 ON t5.business_entity_info_id = t4.id
WHERE t1.two = #{two} AND t
3
.NAME = #{name}
WHERE t1.two = #{two} AND t
4
.NAME = #{name}
</select>
</select>
<select
id=
"selectByIdList"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
<select
id=
"selectByIdList"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
SELECT * FROM house_resource WHERE id IN
SELECT * FROM house_resource WHERE id IN
...
...
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