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
aaa94427
Commit
aaa94427
authored
Mar 14, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!136
parents
0f98524c
ff7a291a
Pipeline
#143292
passed with stages
in 6 minutes and 5 seconds
Changes
10
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
88 additions
and
3 deletions
+88
-3
RegionController.java
.../java/com/ruoyi/web/controller/grid/RegionController.java
+1
-1
HouseResourceController.java
...m/ruoyi/web/controller/house/HouseResourceController.java
+6
-1
GridRegion.java
...rc/main/java/com/ruoyi/system/domain/grid/GridRegion.java
+12
-0
GridRegionMapper.java
...n/java/com/ruoyi/system/mapper/grid/GridRegionMapper.java
+2
-0
HouseResourceMapper.java
...va/com/ruoyi/system/mapper/house/HouseResourceMapper.java
+2
-0
GridRegionFacadeService.java
...om/ruoyi/system/service/grid/GridRegionFacadeService.java
+11
-0
HouseResourceService.java
.../com/ruoyi/system/service/house/HouseResourceService.java
+2
-0
HouseResourceServiceImpl.java
...i/system/service/house/impl/HouseResourceServiceImpl.java
+11
-1
GridRegionMapper.xml
...ystem/src/main/resources/mapper/grid/GridRegionMapper.xml
+7
-0
HouseResourceMapper.xml
...m/src/main/resources/mapper/house/HouseResourceMapper.xml
+34
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/RegionController.java
View file @
aaa94427
...
@@ -75,7 +75,7 @@ public class RegionController extends BaseController {
...
@@ -75,7 +75,7 @@ public class RegionController extends BaseController {
GridRegionUserExample
.
Criteria
criteria
=
example
.
createCriteria
();
GridRegionUserExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andUserIdEqualTo
(
user
.
getUserId
());
criteria
.
andUserIdEqualTo
(
user
.
getUserId
());
// criteria.andUserIdEqualTo("
8c48c6cab96e462a9632492762c4cfaa
");
// criteria.andUserIdEqualTo("
1
");
criteria
.
andIsValidEqualTo
(
"1"
);
criteria
.
andIsValidEqualTo
(
"1"
);
List
<
GridRegionUser
>
relationship
=
gridRegionUserService
.
selectByExample
(
example
);
List
<
GridRegionUser
>
relationship
=
gridRegionUserService
.
selectByExample
(
example
);
...
...
ruoyi-admin/src/main/java/com/ruoyi/web/controller/house/HouseResourceController.java
View file @
aaa94427
...
@@ -53,8 +53,13 @@ public class HouseResourceController {
...
@@ -53,8 +53,13 @@ public class HouseResourceController {
return
AjaxResult
.
success
(
houseResourceService
.
pageHouseResources
(
query
));
return
AjaxResult
.
success
(
houseResourceService
.
pageHouseResources
(
query
));
}
}
@GetMapping
(
"/
list
"
)
@GetMapping
(
"/
profileGraph
"
)
public
AjaxResult
getProfileGraphHouseResources
(
HouseResourcePageQuery
query
)
{
public
AjaxResult
getProfileGraphHouseResources
(
HouseResourcePageQuery
query
)
{
return
AjaxResult
.
success
(
houseResourceService
.
profileGraphHouseResources
(
query
));
return
AjaxResult
.
success
(
houseResourceService
.
profileGraphHouseResources
(
query
));
}
}
@GetMapping
(
"/list"
)
public
AjaxResult
getListHouseResources
(
HouseResourcePageQuery
query
)
{
return
AjaxResult
.
success
(
houseResourceService
.
listHouseResources
(
query
));
}
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/grid/GridRegion.java
View file @
aaa94427
...
@@ -107,6 +107,18 @@ public class GridRegion implements Serializable {
...
@@ -107,6 +107,18 @@ public class GridRegion implements Serializable {
private
String
status
;
private
String
status
;
private
String
pName
;
private
String
pId
;
public
String
getpName
(){
return
pName
;}
public
void
setpName
(
String
pName
){
this
.
pName
=
pName
;}
public
String
getpId
(){
return
pId
;}
public
void
setpId
(
String
pId
){
this
.
pId
=
pId
;}
public
String
getStatus
(){
return
status
;}
public
String
getStatus
(){
return
status
;}
public
void
setStatus
(
String
status
){
this
.
status
=
status
;}
public
void
setStatus
(
String
status
){
this
.
status
=
status
;}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/mapper/grid/GridRegionMapper.java
View file @
aaa94427
...
@@ -61,4 +61,6 @@ public interface GridRegionMapper {
...
@@ -61,4 +61,6 @@ public interface GridRegionMapper {
List
<
GridRegion
>
getAllLevelTwoByType
(
@Param
(
"wgCodeLikes"
)
List
<
String
>
wgCodeLikes
);
List
<
GridRegion
>
getAllLevelTwoByType
(
@Param
(
"wgCodeLikes"
)
List
<
String
>
wgCodeLikes
);
String
getWgCodeById
(
String
id
);
String
getWgCodeById
(
String
id
);
List
<
GridRegion
>
selectAllByIdAndWgType
(
@Param
(
"wgType"
)
String
wgType
,
@Param
(
"wgCode"
)
String
wgCode
);
}
}
\ No newline at end of file
ruoyi-system/src/main/java/com/ruoyi/system/mapper/house/HouseResourceMapper.java
View file @
aaa94427
...
@@ -23,4 +23,6 @@ public interface HouseResourceMapper {
...
@@ -23,4 +23,6 @@ public interface HouseResourceMapper {
IPage
<
HouseResourcePage
>
selectPage
(
IPage
<
HouseResource
>
page
,
@Param
(
"query"
)
HouseResourcePageQuery
houseResourcePageQuery
);
IPage
<
HouseResourcePage
>
selectPage
(
IPage
<
HouseResource
>
page
,
@Param
(
"query"
)
HouseResourcePageQuery
houseResourcePageQuery
);
List
<
HouseResourcePage
>
selectProfileGraph
(
@Param
(
"query"
)
HouseResourcePageQuery
houseResourcePageQuery
);
List
<
HouseResourcePage
>
selectProfileGraph
(
@Param
(
"query"
)
HouseResourcePageQuery
houseResourcePageQuery
);
List
<
HouseResourcePage
>
selectList
(
@Param
(
"query"
)
HouseResourcePageQuery
houseResourcePageQuery
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/grid/GridRegionFacadeService.java
View file @
aaa94427
...
@@ -316,6 +316,17 @@ public class GridRegionFacadeService {
...
@@ -316,6 +316,17 @@ public class GridRegionFacadeService {
// appPageModel.setRecordCount(res.size());
// appPageModel.setRecordCount(res.size());
appPageModel
.
setRecordCount
(
count
);
appPageModel
.
setRecordCount
(
count
);
appPageModel
.
setPageCount
((
long
)
Math
.
ceil
(
1.0
*
count
/
pageSize
));
appPageModel
.
setPageCount
((
long
)
Math
.
ceil
(
1.0
*
count
/
pageSize
));
if
(
level
.
equals
(
"3"
)){
for
(
GridRegion
role
:
roles
)
{
String
type
=
role
.
getWgType
();
String
code
=
role
.
getWgParentId
();
List
<
GridRegion
>
twoLevel
=
gridRegionMapper
.
selectAllByIdAndWgType
(
type
,
code
);
if
(
twoLevel
!=
null
&&
!
twoLevel
.
isEmpty
())
{
role
.
setpId
(
twoLevel
.
get
(
0
).
getId
());
role
.
setpName
(
twoLevel
.
get
(
0
).
getWgName
());
}
}
}
// List<GridRegionWithCompanyItem> itemList = BeanCopyUtil.bathToBean(res, GridRegionWithCompanyItem.class);
// List<GridRegionWithCompanyItem> itemList = BeanCopyUtil.bathToBean(res, GridRegionWithCompanyItem.class);
List
<
GridRegionWithCompanyItem
>
itemList
=
BeanCopyUtil
.
bathToBean
(
roles
,
GridRegionWithCompanyItem
.
class
);
List
<
GridRegionWithCompanyItem
>
itemList
=
BeanCopyUtil
.
bathToBean
(
roles
,
GridRegionWithCompanyItem
.
class
);
itemList
.
forEach
(
e
->
{
itemList
.
forEach
(
e
->
{
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/house/HouseResourceService.java
View file @
aaa94427
...
@@ -21,4 +21,6 @@ public interface HouseResourceService {
...
@@ -21,4 +21,6 @@ public interface HouseResourceService {
IPage
<
HouseResourcePage
>
pageHouseResources
(
HouseResourcePageQuery
query
);
IPage
<
HouseResourcePage
>
pageHouseResources
(
HouseResourcePageQuery
query
);
List
<
HouseResourceProfileGraph
>
profileGraphHouseResources
(
HouseResourcePageQuery
query
);
List
<
HouseResourceProfileGraph
>
profileGraphHouseResources
(
HouseResourcePageQuery
query
);
List
<
HouseResourcePage
>
listHouseResources
(
HouseResourcePageQuery
query
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
aaa94427
...
@@ -165,12 +165,22 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -165,12 +165,22 @@ public class HouseResourceServiceImpl implements HouseResourceService {
houseResourceProfileGraph
.
setId
(
k
);
houseResourceProfileGraph
.
setId
(
k
);
GridRegion
gridRegion
=
gridRegionMapper
.
selectByPrimaryKey
(
k
);
GridRegion
gridRegion
=
gridRegionMapper
.
selectByPrimaryKey
(
k
);
houseResourceProfileGraph
.
setWgName
(
gridRegion
.
getWgName
());
houseResourceProfileGraph
.
setWgName
(
gridRegion
.
getWgName
());
houseResourceProfileGraph
.
setHouseResources
(
v
);
houseResourceProfileGraph
.
setHouseResources
(
handleHouseList
(
v
)
);
resourceProfileGraphList
.
add
(
houseResourceProfileGraph
);
resourceProfileGraphList
.
add
(
houseResourceProfileGraph
);
});
});
return
resourceProfileGraphList
;
return
resourceProfileGraphList
;
}
}
@Override
public
List
<
HouseResourcePage
>
listHouseResources
(
HouseResourcePageQuery
query
)
{
List
<
HouseResourcePage
>
list
=
houseResourceMapper
.
selectList
(
query
);
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
Collections
.
emptyList
();
}
else
{
return
handleHouseList
(
list
);
}
}
private
List
<
HouseResourcePage
>
handleHouseList
(
List
<
HouseResourcePage
>
list
)
{
private
List
<
HouseResourcePage
>
handleHouseList
(
List
<
HouseResourcePage
>
list
)
{
list
.
forEach
(
x
->
{
list
.
forEach
(
x
->
{
GridRegion
two
=
gridRegionMapper
.
selectByPrimaryKey
(
x
.
getTwo
());
GridRegion
two
=
gridRegionMapper
.
selectByPrimaryKey
(
x
.
getTwo
());
...
...
ruoyi-system/src/main/resources/mapper/grid/GridRegionMapper.xml
View file @
aaa94427
...
@@ -701,6 +701,13 @@
...
@@ -701,6 +701,13 @@
<select
id=
"getWgCodeById"
resultType=
"java.lang.String"
>
<select
id=
"getWgCodeById"
resultType=
"java.lang.String"
>
select wg_code from grid_region where id = #{id}
select wg_code from grid_region where id = #{id}
</select>
</select>
<select
id=
"selectAllByIdAndWgType"
resultType=
"com.ruoyi.system.domain.grid.GridRegion"
>
select
<include
refid=
"Base_Column_List"
/>
from grid_region where is_valid = '1'
and wg_type = #{wgType}
and wg_code = #{wgCode}
</select>
<update
id=
"changeTreeNodeName"
>
<update
id=
"changeTreeNodeName"
>
update grid_region set wg_name=#{name} where id = #{id}
update grid_region set wg_name=#{name} where id = #{id}
...
...
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
aaa94427
...
@@ -175,4 +175,38 @@
...
@@ -175,4 +175,38 @@
</if>
</if>
</where>
</where>
</select>
</select>
<select
id=
"selectList"
resultType=
"com.ruoyi.system.domain.house.vo.HouseResourcePage"
>
SELECT
t1.wg_name AS wgName4,
t2.*
FROM
grid_region t1
LEFT JOIN house_resource t2 ON t1.id = t2.four
<where>
<if
test=
"query.wgType != null"
>
and t2.type = #{query.wgType}
</if>
<if
test=
"query.two != null and query.two != ''"
>
and t2.two = #{query.two}
</if>
<if
test=
"query.three != null and query.three != ''"
>
and t2.three = #{query.three}
</if>
<if
test=
"query.four != null and query.four != ''"
>
and t2.four = #{query.four}
</if>
<if
test=
"query.houseResourceAttribute != null"
>
and t2.house_resource_attribute = #{query.houseResourceAttribute}
</if>
<if
test=
"query.hireStatus != null"
>
and t2.hire_status = #{query.hireStatus}
</if>
<if
test=
"query.houseNumber != null and query.houseNumber != ''"
>
and t2.house_number like concat('%', #{query.houseNumber}, '%')
</if>
<if
test=
"query.sortWay != null and query.sortWay != ''"
>
order by t2.house_area ${query.sortWay}
</if>
</where>
</select>
</mapper>
</mapper>
\ No newline at end of file
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