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
33c95ee7
Commit
33c95ee7
authored
Mar 05, 2025
by
lixuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!27
parents
7d90d38e
2a1494fa
Pipeline
#142906
passed with stages
in 3 minutes and 41 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
6 deletions
+50
-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
+35
-0
HouseResourcePage.java
...a/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
+4
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+1
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+8
-6
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/HouseResource.java
View file @
33c95ee7
...
...
@@ -61,4 +61,6 @@ public class HouseResource implements Serializable {
private
int
rentalUnit
;
private
String
planeGraphUrl
;
private
int
hireStatus
;
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/enums/HouseEnums.java
View file @
33c95ee7
...
...
@@ -169,4 +169,39 @@ public class HouseEnums {
return
null
;
}
}
public
enum
hireStatusTextEnum
{
// 租金单位
KZ
(
0
,
"空置中"
),
CZ
(
1
,
"出租中"
),
SD
(
2
,
"已锁定"
),
XS
(
3
,
"销售"
),
ZY
(
4
,
"自用"
),
GB
(
5
,
"已关闭"
);
private
final
int
code
;
private
final
String
desc
;
hireStatusTextEnum
(
int
code
,
String
desc
)
{
this
.
code
=
code
;
this
.
desc
=
desc
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getDesc
()
{
return
desc
;
}
public
static
String
getDescByCode
(
int
code
)
{
for
(
HouseResourceAttributeEnum
value
:
HouseResourceAttributeEnum
.
values
())
{
if
(
value
.
getCode
()
==
code
)
{
return
value
.
getDesc
();
}
}
return
null
;
}
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourcePage.java
View file @
33c95ee7
...
...
@@ -73,4 +73,8 @@ public class HouseResourcePage {
private
String
rentalUnitText
;
private
String
planeGraphUrl
;
private
int
hireStatus
;
private
String
hireStatusText
;
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
33c95ee7
...
...
@@ -76,6 +76,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
x
.
setOrientationText
(
HouseEnums
.
OrientationEnum
.
getDescByCode
(
x
.
getOrientation
()));
x
.
setDecorationConditionText
(
HouseEnums
.
DecorationConditionEnum
.
getDescByCode
(
x
.
getDecorationCondition
()));
x
.
setRentalUnitText
(
HouseEnums
.
RentalUnitEnum
.
getDescByCode
(
x
.
getRentalUnit
()));
x
.
setHireStatusText
(
HouseEnums
.
hireStatusTextEnum
.
getDescByCode
(
x
.
getHireStatus
()));
});
return
page
;
}
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
33c95ee7
...
...
@@ -29,6 +29,7 @@
<result
property=
"unitPrice"
column=
"unit_price"
jdbcType=
"DECIMAL"
/>
<result
property=
"rentalUnit"
column=
"rental_unit"
jdbcType=
"INTEGER"
/>
<result
property=
"planeGraphUrl"
column=
"plane_graph_url"
jdbcType=
"VARCHAR"
/>
<result
property=
"hireStatus"
column=
"hire_status"
jdbcType=
"INTEGER"
/>
</resultMap>
<insert
id=
"insertHouseResource"
parameterType=
"com.ruoyi.system.domain.house.HouseResource"
>
...
...
@@ -36,12 +37,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,
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)
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url
, hire_status
)
VALUES
(#{id}, #{relationId}, #{two}, #{three}, #{four}, #{type}, #{projectId}, #{houseResourceUrl}, #{houseNumber}, #{houseArea},
#{houseResourceAttribute}, #{houseResourceType}, #{houseResourceUse}, #{houseResourceEquity}, #{houseResourceEquityTel},
#{decorationCondition}, #{orientation}, #{landingHeadFlag}, #{commonAreaNumber}, #{officeNumber},
#{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl})
#{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl}
, #{hireStatus}
)
</insert>
<select
id=
"selectHouseResourceById"
resultType=
"com.ruoyi.system.domain.house.HouseResource"
parameterType=
"string"
>
...
...
@@ -74,8 +75,9 @@
set_up = #{setUp},
label_id = #{labelId},
unit_price = #{unitPrice},
rentalUnit = #{rental_unit}
plane_graph_url = #{planeGraphUrl}
rentalUnit = #{rental_unit},
plane_graph_url = #{planeGraphUrl},
hire_status = #{hire_status}
WHERE id = #{id}
</update>
...
...
@@ -88,7 +90,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,
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)
meeting_number, station_number, set_up, label_id, unit_price, rental_unit, plane_graph_url
, hire_status
)
VALUES
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.id}, #{item.relationId}, #{two}, #{three}, #{four}, #{item.type}, #{item.projectId}, #{item.houseResourceUrl},
...
...
@@ -96,7 +98,7 @@
#{item.houseResourceUse}, #{item.houseResourceEquity}, #{item.houseResourceEquityTel}, #{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.planeGraphUrl}
, #{item.hireStatus}
)
</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