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
ef6f1ecc
Commit
ef6f1ecc
authored
Apr 16, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 房源
parent
d5bdd1c5
Pipeline
#144148
failed with stages
in 7 minutes and 34 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
+14
-6
HouseResource.java
...ain/java/com/ruoyi/system/domain/house/HouseResource.java
+2
-0
HouseEnums.java
.../java/com/ruoyi/system/domain/house/enums/HouseEnums.java
+2
-1
BusinessEntityStatisticsDetail.java
...ystem/domain/house/vo/BusinessEntityStatisticsDetail.java
+2
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+1
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+7
-5
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/HouseResource.java
View file @
ef6f1ecc
...
@@ -75,4 +75,6 @@ public class HouseResource implements Serializable {
...
@@ -75,4 +75,6 @@ public class HouseResource implements Serializable {
private
String
lat
;
private
String
lat
;
private
String
remark
;
private
String
remark
;
private
Boolean
gs
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/enums/HouseEnums.java
View file @
ef6f1ecc
...
@@ -39,7 +39,8 @@ public class HouseEnums {
...
@@ -39,7 +39,8 @@ public class HouseEnums {
ZY
(
0
,
"在营"
),
ZY
(
0
,
"在营"
),
KZ
(
1
,
"闲置"
),
KZ
(
1
,
"闲置"
),
GK
(
2
,
"挂靠"
),
GK
(
2
,
"挂靠"
),
SBC
(
3
,
"设备层"
);
SBC
(
3
,
"设备层"
),
ZYZY
(
4
,
"在营自用"
);
private
final
int
code
;
private
final
int
code
;
private
final
String
desc
;
private
final
String
desc
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/BusinessEntityStatisticsDetail.java
View file @
ef6f1ecc
...
@@ -39,6 +39,8 @@ public class BusinessEntityStatisticsDetail {
...
@@ -39,6 +39,8 @@ public class BusinessEntityStatisticsDetail {
private
long
gkCount
;
private
long
gkCount
;
private
long
zyzyCount
;
private
long
ztCount
;
private
long
ztCount
;
private
BigDecimal
gyCount
=
BigDecimal
.
ZERO
;
private
BigDecimal
gyCount
=
BigDecimal
.
ZERO
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
ef6f1ecc
...
@@ -263,6 +263,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -263,6 +263,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
businessEntityStatisticsDetail
.
setZaiyingCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
0
).
count
());
businessEntityStatisticsDetail
.
setZaiyingCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
0
).
count
());
businessEntityStatisticsDetail
.
setXzCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
1
).
count
());
businessEntityStatisticsDetail
.
setXzCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
1
).
count
());
businessEntityStatisticsDetail
.
setGkCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
2
).
count
());
businessEntityStatisticsDetail
.
setGkCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
2
).
count
());
businessEntityStatisticsDetail
.
setZyzyCount
(
list
.
stream
().
filter
(
x
->
x
.
getHouseResourceType
()
==
4
).
count
());
List
<
String
>
houseResourceIds
=
list
.
stream
().
map
(
HouseResource:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
String
>
houseResourceIds
=
list
.
stream
().
map
(
HouseResource:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectAllBusinessEntityInfosByHouseResourceIds
(
houseResourceIds
);
List
<
BusinessEntityInfo
>
businessEntityInfos
=
businessEntityInfoMapper
.
selectAllBusinessEntityInfosByHouseResourceIds
(
houseResourceIds
);
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
ef6f1ecc
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
<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"
/>
<result
property=
"remark"
column=
"remark"
jdbcType=
"VARCHAR"
/>
<result
property=
"gs"
column=
"gs"
jdbcType=
"BIT"
/>
</resultMap>
</resultMap>
<insert
id=
"insertHouseResource"
parameterType=
"com.ruoyi.system.domain.house.HouseResource"
>
<insert
id=
"insertHouseResource"
parameterType=
"com.ruoyi.system.domain.house.HouseResource"
>
...
@@ -43,12 +44,12 @@
...
@@ -43,12 +44,12 @@
(id, relation_id, two, three, four, type, project_id, house_resource_url, business_license_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, remark)
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lon, lat, remark
, gs
)
VALUES
VALUES
(#{id}, #{relationId}, #{two}, #{three}, #{four}, #{type}, #{projectId}, #{houseResourceUrl}, #{businessLicenseUrl}, #{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}, #{remark})
#{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl}, #{hireStatus}, #{address}, #{lon}, #{lat}, #{remark}
, #{gs}
)
</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"
>
...
@@ -89,7 +90,8 @@
...
@@ -89,7 +90,8 @@
address = #{address},
address = #{address},
lon = #{lon},
lon = #{lon},
lat = #{lat},
lat = #{lat},
remark = #{remark}
remark = #{remark},
gs = #{gs}
WHERE id = #{id}
WHERE id = #{id}
</update>
</update>
...
@@ -102,7 +104,7 @@
...
@@ -102,7 +104,7 @@
(id, relation_id, two, three, four, type, project_id, house_resource_url, business_license_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, remark)
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url, hire_status, address, lon, lat, remark
, gs
)
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.businessLicenseUrl},
(#{item.id}, #{item.relationId}, #{two}, #{three}, #{four}, #{item.type}, #{item.projectId}, #{item.houseResourceUrl}, #{item.businessLicenseUrl},
...
@@ -110,7 +112,7 @@
...
@@ -110,7 +112,7 @@
#{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.remark})
#{item.planeGraphUrl}, #{item.hireStatus}, #{item.address}, #{item.lon}, #{item.lat}, #{item.remark}
, #{item.gs}
)
</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