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
4d7092a0
You need to sign in or sign up before continuing.
Commit
4d7092a0
authored
Mar 11, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lx' into 'dev'
feat: 房源 See merge request
!107
parents
53f2ae7e
5ef0ac59
Pipeline
#143124
canceled with stages
in 1 minute and 27 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
8 deletions
+28
-8
HouseResource.java
...ain/java/com/ruoyi/system/domain/house/HouseResource.java
+1
-1
HouseResourceDetail.java
...com/ruoyi/system/domain/house/vo/HouseResourceDetail.java
+2
-0
BusinessEntitySellMapper.java
...m/ruoyi/system/mapper/house/BusinessEntitySellMapper.java
+2
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+12
-1
BusinessEntitySellMapper.xml
.../main/resources/mapper/house/BusinessEntitySellMapper.xml
+5
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+6
-6
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/HouseResource.java
View file @
4d7092a0
...
...
@@ -68,7 +68,7 @@ public class HouseResource implements Serializable {
private
String
address
;
private
String
lo
g
;
private
String
lo
n
;
private
String
lat
;
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourceDetail.java
View file @
4d7092a0
...
...
@@ -89,4 +89,6 @@ public class HouseResourceDetail {
private
String
log
;
private
String
lat
;
private
List
<
BusinessEntityDto
>
businessEntityDtoList
;
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/house/BusinessEntitySellMapper.java
View file @
4d7092a0
...
...
@@ -24,4 +24,6 @@ public interface BusinessEntitySellMapper {
void
deleteBusinessEntitySellByEntityId
(
@Param
(
"businessEntityId"
)
String
businessEntityId
);
List
<
BusinessEntitySell
>
selectBusinessEntitySellByEntityId
(
@Param
(
"entityId"
)
String
entityId
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
4d7092a0
...
...
@@ -12,7 +12,6 @@ import com.ruoyi.system.domain.house.vo.*;
import
com.ruoyi.system.mapper.grid.GridRegionMapper
;
import
com.ruoyi.system.mapper.house.BusinessEntityInfoMapper
;
import
com.ruoyi.system.mapper.house.BusinessEntitySellMapper
;
import
com.ruoyi.system.mapper.house.HouseResourceAssociationObjectMapper
;
import
com.ruoyi.system.mapper.house.HouseResourceMapper
;
import
com.ruoyi.system.service.house.HouseResourceService
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -58,6 +57,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
businessEntityInfoMapper
.
insertBusinessEntityInfo
(
businessEntityInfo
);
for
(
BusinessEntitySell
businessEntitySell
:
businessEntityDto
.
getBusinessEntitySells
())
{
businessEntitySell
.
setId
(
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
));
businessEntitySell
.
setBusinessEntityInfoId
(
businessEntityInfoId
);
businessEntitySellMapper
.
insertBusinessEntitySell
(
businessEntitySell
);
}
...
...
@@ -87,6 +87,17 @@ public class HouseResourceServiceImpl implements HouseResourceService {
houseResourceDetail
.
setDecorationConditionText
(
HouseEnums
.
DecorationConditionEnum
.
getDescByCode
(
houseResourceDetail
.
getDecorationCondition
()));
houseResourceDetail
.
setRentalUnitText
(
HouseEnums
.
RentalUnitEnum
.
getDescByCode
(
houseResourceDetail
.
getRentalUnit
()));
houseResourceDetail
.
setHireStatusText
(
HouseEnums
.
hireStatusTextEnum
.
getDescByCode
(
houseResourceDetail
.
getHireStatus
()));
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectAllBusinessEntityInfosByHouseResourceId
(
houseResourceDetail
.
getId
());
List
<
BusinessEntityDto
>
businessEntityDtoList
=
new
ArrayList
<>();
for
(
BusinessEntityInfo
businessEntityInfo
:
businessEntityInfos
)
{
BusinessEntityDto
businessEntityDto
=
new
BusinessEntityDto
();
BeanUtils
.
copyProperties
(
businessEntityInfo
,
businessEntityDto
);
List
<
BusinessEntitySell
>
businessEntitySells
=
businessEntitySellMapper
.
selectBusinessEntitySellByEntityId
(
businessEntityInfo
.
getId
());
businessEntityDto
.
setBusinessEntitySells
(
businessEntitySells
);
businessEntityDtoList
.
add
(
businessEntityDto
);
}
houseResourceDetail
.
setBusinessEntityDtoList
(
businessEntityDtoList
);
return
houseResourceDetail
;
}
...
...
ruoyi-system/src/main/resources/mapper/house/BusinessEntitySellMapper.xml
View file @
4d7092a0
...
...
@@ -50,4 +50,9 @@
<delete
id=
"deleteBusinessEntitySellByEntityId"
>
DELETE FROM business_entity_sell WHERE business_entity_info_id = #{businessEntityId}
</delete>
<select
id=
"selectBusinessEntitySellByEntityId"
resultType=
"com.ruoyi.system.domain.house.BusinessEntitySell"
>
SELECT * FROM business_entity_sell WHERE business_entity_info_id = #{entityId}
</select>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
4d7092a0
...
...
@@ -32,7 +32,7 @@
<result
property=
"planeGraphUrl"
column=
"plane_graph_url"
jdbcType=
"VARCHAR"
/>
<result
property=
"hireStatus"
column=
"hire_status"
jdbcType=
"INTEGER"
/>
<result
property=
"address"
column=
"address"
jdbcType=
"VARCHAR"
/>
<result
property=
"lo
g"
column=
"log
"
jdbcType=
"VARCHAR"
/>
<result
property=
"lo
n"
column=
"lon
"
jdbcType=
"VARCHAR"
/>
<result
property=
"lat"
column=
"lat"
jdbcType=
"VARCHAR"
/>
</resultMap>
...
...
@@ -41,12 +41,12 @@
(id, relation_id, two, three, four, type, project_id, house_resource_url, house_number, house_area,
house_resource_attribute, house_resource_type, house_resource_use, house_resource_equity, house_resource_equity_tel, ownership,
decoration_condition, orientation, landing_head_flag, common_area_number, office_number,
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lo
g
, lat)
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lo
n
, lat)
VALUES
(#{id}, #{relationId}, #{two}, #{three}, #{four}, #{type}, #{projectId}, #{houseResourceUrl}, #{houseNumber}, #{houseArea},
#{houseResourceAttribute}, #{houseResourceType}, #{houseResourceUse}, #{houseResourceEquity}, #{houseResourceEquityTel}, #{ownership},
#{decorationCondition}, #{orientation}, #{landingHeadFlag}, #{commonAreaNumber}, #{officeNumber},
#{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl}, #{hireStatus}, #{address}, #{lo
g
}, #{lat})
#{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl}, #{hireStatus}, #{address}, #{lo
n
}, #{lat})
</insert>
<select
id=
"selectHouseResourceById"
resultType=
"com.ruoyi.system.domain.house.HouseResource"
parameterType=
"string"
>
...
...
@@ -84,7 +84,7 @@
plane_graph_url = #{planeGraphUrl},
hire_status = #{hireStatus},
address = #{address},
lo
g = #{log
},
lo
n = #{lon
},
lat = #{lat}
WHERE id = #{id}
</update>
...
...
@@ -98,7 +98,7 @@
(id, relation_id, two, three, four, type, project_id, house_resource_url, house_number, house_area,
house_resource_attribute, house_resource_type, house_resource_use, house_resource_equity, house_resource_equity_tel, ownership,
decoration_condition, orientation, landing_head_flag, common_area_number, office_number,
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lo
g
, lat)
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lo
n
, lat)
VALUES
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id}, #{item.relationId}, #{two}, #{three}, #{four}, #{item.type}, #{item.projectId}, #{item.houseResourceUrl},
...
...
@@ -106,7 +106,7 @@
#{item.houseResourceUse}, #{item.houseResourceEquity}, #{item.houseResourceEquityTel}, #{ownership}, #{item.decorationCondition},
#{item.orientation}, #{item.landingHeadFlag}, #{item.commonAreaNumber}, #{item.officeNumber},
#{item.meetingNumber}, #{item.stationNumber}, #{item.setUp}, #{item.labelId}, #{item.unitPrice}, #{item.rentalUnit},
#{item.planeGraphUrl}, #{item.hireStatus}, #{item.address}, #{item.lo
g
}, #{item.lat})
#{item.planeGraphUrl}, #{item.hireStatus}, #{item.address}, #{item.lo
n
}, #{item.lat})
</foreach>
</insert>
...
...
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