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
ef39f8bd
Commit
ef39f8bd
authored
Mar 25, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
6620e1d5
a2e15c20
Pipeline
#143573
failed with stages
in 28 minutes and 40 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
9 deletions
+31
-9
HouseResource.java
...ain/java/com/ruoyi/system/domain/house/HouseResource.java
+4
-0
HouseResourceDetail.java
...com/ruoyi/system/domain/house/vo/HouseResourceDetail.java
+4
-0
HouseResourcePage.java
...a/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
+4
-0
HouseResourceProfileGraph.java
...oyi/system/domain/house/vo/HouseResourceProfileGraph.java
+5
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+1
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+13
-9
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/HouseResource.java
View file @
ef39f8bd
...
@@ -24,6 +24,8 @@ public class HouseResource implements Serializable {
...
@@ -24,6 +24,8 @@ public class HouseResource implements Serializable {
private
String
houseResourceUrl
;
private
String
houseResourceUrl
;
private
String
businessLicenseUrl
;
private
String
houseNumber
;
private
String
houseNumber
;
private
BigDecimal
houseArea
;
private
BigDecimal
houseArea
;
...
@@ -71,4 +73,6 @@ public class HouseResource implements Serializable {
...
@@ -71,4 +73,6 @@ public class HouseResource implements Serializable {
private
String
lon
;
private
String
lon
;
private
String
lat
;
private
String
lat
;
private
String
remark
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourceDetail.java
View file @
ef39f8bd
...
@@ -32,6 +32,8 @@ public class HouseResourceDetail {
...
@@ -32,6 +32,8 @@ public class HouseResourceDetail {
private
List
<
String
>
houseResourceUrlList
;
private
List
<
String
>
houseResourceUrlList
;
private
String
businessLicenseUrl
;
private
String
houseNumber
;
private
String
houseNumber
;
private
BigDecimal
houseArea
;
private
BigDecimal
houseArea
;
...
@@ -92,5 +94,7 @@ public class HouseResourceDetail {
...
@@ -92,5 +94,7 @@ public class HouseResourceDetail {
private
String
lat
;
private
String
lat
;
private
String
remark
;
private
List
<
BusinessEntityDto
>
businessEntityDtoList
;
private
List
<
BusinessEntityDto
>
businessEntityDtoList
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
View file @
ef39f8bd
...
@@ -32,6 +32,8 @@ public class HouseResourcePage {
...
@@ -32,6 +32,8 @@ public class HouseResourcePage {
private
List
<
String
>
houseResourceUrlList
;
private
List
<
String
>
houseResourceUrlList
;
private
String
businessLicenseUrl
;
private
String
houseNumber
;
private
String
houseNumber
;
private
BigDecimal
houseArea
;
private
BigDecimal
houseArea
;
...
@@ -92,5 +94,7 @@ public class HouseResourcePage {
...
@@ -92,5 +94,7 @@ public class HouseResourcePage {
private
String
lat
;
private
String
lat
;
private
String
remark
;
private
List
<
String
>
businessEntityInfoNames
;
private
List
<
String
>
businessEntityInfoNames
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourceProfileGraph.java
View file @
ef39f8bd
...
@@ -2,6 +2,7 @@ package com.ruoyi.system.domain.house.vo;
...
@@ -2,6 +2,7 @@ package com.ruoyi.system.domain.house.vo;
import
lombok.Data
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
@Data
@Data
...
@@ -11,5 +12,9 @@ public class HouseResourceProfileGraph {
...
@@ -11,5 +12,9 @@ public class HouseResourceProfileGraph {
private
String
wgName
;
private
String
wgName
;
private
BigDecimal
jzArea
;
private
BigDecimal
jyArea
;
private
List
<
HouseResourcePage
>
houseResources
;
private
List
<
HouseResourcePage
>
houseResources
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
ef39f8bd
...
@@ -168,6 +168,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -168,6 +168,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if
(
StringUtils
.
hasText
(
wgName
))
{
if
(
StringUtils
.
hasText
(
wgName
))
{
houseResourceProfileGraph
.
setWgName
(
wgName
);
houseResourceProfileGraph
.
setWgName
(
wgName
);
}
}
houseResourceProfileGraph
.
setJyArea
(
v
.
stream
().
map
(
HouseResourcePage:
:
getHouseArea
).
filter
(
Objects:
:
nonNull
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
));
List
<
HouseResourcePage
>
houseResourcePages
=
handleHouseList
(
v
);
List
<
HouseResourcePage
>
houseResourcePages
=
handleHouseList
(
v
);
houseResourceProfileGraph
.
setHouseResources
(
houseResourcePages
.
stream
().
sorted
(
Comparator
.
comparing
(
HouseResourcePage:
:
getHouseNumber
)).
collect
(
Collectors
.
toList
()));
houseResourceProfileGraph
.
setHouseResources
(
houseResourcePages
.
stream
().
sorted
(
Comparator
.
comparing
(
HouseResourcePage:
:
getHouseNumber
)).
collect
(
Collectors
.
toList
()));
resourceProfileGraphList
.
add
(
houseResourceProfileGraph
);
resourceProfileGraphList
.
add
(
houseResourceProfileGraph
);
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
ef39f8bd
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<result
property=
"type"
column=
"type"
jdbcType=
"INTEGER"
/>
<result
property=
"type"
column=
"type"
jdbcType=
"INTEGER"
/>
<result
property=
"projectId"
column=
"project_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"projectId"
column=
"project_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"houseResourceUrl"
column=
"house_resource_url"
jdbcType=
"VARCHAR"
/>
<result
property=
"houseResourceUrl"
column=
"house_resource_url"
jdbcType=
"VARCHAR"
/>
<result
property=
"businessLicenseUrl"
column=
"business_license_url"
jdbcType=
"VARCHAR"
/>
<result
property=
"houseNumber"
column=
"house_number"
jdbcType=
"VARCHAR"
/>
<result
property=
"houseNumber"
column=
"house_number"
jdbcType=
"VARCHAR"
/>
<result
property=
"houseArea"
column=
"house_area"
jdbcType=
"DECIMAL"
/>
<result
property=
"houseArea"
column=
"house_area"
jdbcType=
"DECIMAL"
/>
<result
property=
"houseResourceAttribute"
column=
"house_resource_attribute"
jdbcType=
"INTEGER"
/>
<result
property=
"houseResourceAttribute"
column=
"house_resource_attribute"
jdbcType=
"INTEGER"
/>
...
@@ -34,19 +35,20 @@
...
@@ -34,19 +35,20 @@
<result
property=
"address"
column=
"address"
jdbcType=
"VARCHAR"
/>
<result
property=
"address"
column=
"address"
jdbcType=
"VARCHAR"
/>
<result
property=
"lon"
column=
"lon"
jdbcType=
"VARCHAR"
/>
<result
property=
"lon"
column=
"lon"
jdbcType=
"VARCHAR"
/>
<result
property=
"lat"
column=
"lat"
jdbcType=
"VARCHAR"
/>
<result
property=
"lat"
column=
"lat"
jdbcType=
"VARCHAR"
/>
<result
property=
"remark"
column=
"remark"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<insert
id=
"insertHouseResource"
parameterType=
"com.ruoyi.system.domain.house.HouseResource"
>
<insert
id=
"insertHouseResource"
parameterType=
"com.ruoyi.system.domain.house.HouseResource"
>
INSERT INTO house_resource
INSERT INTO house_resource
(id, relation_id, two, three, four, type, project_id, house_resource_url, house_number, house_area,
(id, relation_id, two, three, four, type, project_id, house_resource_url,
business_license_url,
house_number, house_area,
house_resource_attribute, house_resource_type, house_resource_use, house_resource_equity, house_resource_equity_tel, ownership,
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,
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, lon, lat)
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lon, lat
, remark
)
VALUES
VALUES
(#{id}, #{relationId}, #{two}, #{three}, #{four}, #{type}, #{projectId}, #{houseResourceUrl}, #{houseNumber}, #{houseArea},
(#{id}, #{relationId}, #{two}, #{three}, #{four}, #{type}, #{projectId}, #{houseResourceUrl}, #{
businessLicenseUrl}, #{
houseNumber}, #{houseArea},
#{houseResourceAttribute}, #{houseResourceType}, #{houseResourceUse}, #{houseResourceEquity}, #{houseResourceEquityTel}, #{ownership},
#{houseResourceAttribute}, #{houseResourceType}, #{houseResourceUse}, #{houseResourceEquity}, #{houseResourceEquityTel}, #{ownership},
#{decorationCondition}, #{orientation}, #{landingHeadFlag}, #{commonAreaNumber}, #{officeNumber},
#{decorationCondition}, #{orientation}, #{landingHeadFlag}, #{commonAreaNumber}, #{officeNumber},
#{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl}, #{hireStatus}, #{address}, #{lon}, #{lat})
#{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl}, #{hireStatus}, #{address}, #{lon}, #{lat}
, #{remark}
)
</insert>
</insert>
<select
id=
"selectHouseResourceById"
resultType=
"com.ruoyi.system.domain.house.HouseResource"
parameterType=
"string"
>
<select
id=
"selectHouseResourceById"
resultType=
"com.ruoyi.system.domain.house.HouseResource"
parameterType=
"string"
>
...
@@ -62,6 +64,7 @@
...
@@ -62,6 +64,7 @@
type = #{type},
type = #{type},
project_id = #{projectId},
project_id = #{projectId},
house_resource_url = #{houseResourceUrl},
house_resource_url = #{houseResourceUrl},
business_license_url = #{businessLicenseUrl},
house_number = #{houseNumber},
house_number = #{houseNumber},
house_area = #{houseArea},
house_area = #{houseArea},
house_resource_attribute = #{houseResourceAttribute},
house_resource_attribute = #{houseResourceAttribute},
...
@@ -85,7 +88,8 @@
...
@@ -85,7 +88,8 @@
hire_status = #{hireStatus},
hire_status = #{hireStatus},
address = #{address},
address = #{address},
lon = #{lon},
lon = #{lon},
lat = #{lat}
lat = #{lat},
remark = #{remark}
WHERE id = #{id}
WHERE id = #{id}
</update>
</update>
...
@@ -95,18 +99,18 @@
...
@@ -95,18 +99,18 @@
<insert
id=
"batchInsertHouseResources"
parameterType=
"java.util.List"
>
<insert
id=
"batchInsertHouseResources"
parameterType=
"java.util.List"
>
INSERT INTO house_resource
INSERT INTO house_resource
(id, relation_id, two, three, four, type, project_id, house_resource_url, house_number, house_area,
(id, relation_id, two, three, four, type, project_id, house_resource_url,
business_license_url,
house_number, house_area,
house_resource_attribute, house_resource_type, house_resource_use, house_resource_equity, house_resource_equity_tel, ownership,
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,
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, lon, lat)
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lon, lat
, remark
)
VALUES
VALUES
<foreach
collection=
"list"
item=
"item"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id}, #{item.relationId}, #{two}, #{three}, #{four}, #{item.type}, #{item.projectId}, #{item.houseResourceUrl},
(#{item.id}, #{item.relationId}, #{two}, #{three}, #{four}, #{item.type}, #{item.projectId}, #{item.houseResourceUrl},
#{item.businessLicenseUrl},
#{item.houseNumber}, #{item.houseArea}, #{item.houseResourceAttribute}, #{item.houseResourceType},
#{item.houseNumber}, #{item.houseArea}, #{item.houseResourceAttribute}, #{item.houseResourceType},
#{item.houseResourceUse}, #{item.houseResourceEquity}, #{item.houseResourceEquityTel}, #{ownership}, #{item.decorationCondition},
#{item.houseResourceUse}, #{item.houseResourceEquity}, #{item.houseResourceEquityTel}, #{ownership}, #{item.decorationCondition},
#{item.orientation}, #{item.landingHeadFlag}, #{item.commonAreaNumber}, #{item.officeNumber},
#{item.orientation}, #{item.landingHeadFlag}, #{item.commonAreaNumber}, #{item.officeNumber},
#{item.meetingNumber}, #{item.stationNumber}, #{item.setUp}, #{item.labelId}, #{item.unitPrice}, #{item.rentalUnit},
#{item.meetingNumber}, #{item.stationNumber}, #{item.setUp}, #{item.labelId}, #{item.unitPrice}, #{item.rentalUnit},
#{item.planeGraphUrl}, #{item.hireStatus}, #{item.address}, #{item.lon}, #{item.lat})
#{item.planeGraphUrl}, #{item.hireStatus}, #{item.address}, #{item.lon}, #{item.lat}
, #{item.remark}
)
</foreach>
</foreach>
</insert>
</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