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
fe627419
Commit
fe627419
authored
Mar 11, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!109
parents
63e8daf5
b09558ee
Pipeline
#143126
passed with stages
in 5 minutes and 26 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
119 additions
and
89 deletions
+119
-89
RegionController.java
.../java/com/ruoyi/web/controller/grid/RegionController.java
+38
-34
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
GridRegionFacadeService.java
...om/ruoyi/system/service/grid/GridRegionFacadeService.java
+53
-47
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-admin/src/main/java/com/ruoyi/web/controller/grid/RegionController.java
View file @
fe627419
...
@@ -69,27 +69,29 @@ public class RegionController extends BaseController {
...
@@ -69,27 +69,29 @@ public class RegionController extends BaseController {
@RequestParam
(
"pageSize"
)
Integer
pageSize
)
{
@RequestParam
(
"pageSize"
)
Integer
pageSize
)
{
try
{
try
{
AjaxResult
result
=
new
AjaxResult
();
AjaxResult
result
=
new
AjaxResult
();
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
//
SysUser user = SecurityUtils.getLoginUser().getUser();
//网格
//
//网格
GridRegionUserExample
example
=
new
GridRegionUserExample
();
//
GridRegionUserExample example = new GridRegionUserExample();
GridRegionUserExample
.
Criteria
criteria
=
example
.
createCriteria
();
//
GridRegionUserExample.Criteria criteria = example.createCriteria();
criteria
.
andUserIdEqualTo
(
user
.
getUserId
());
//
criteria.andUserIdEqualTo(user.getUserId());
// criteria.andUserIdEqualTo("2");
//
//
criteria.andUserIdEqualTo("2");
criteria
.
andIsValidEqualTo
(
"1"
);
//
criteria.andIsValidEqualTo("1");
List
<
GridRegionUser
>
relationship
=
gridRegionUserService
.
selectByExample
(
example
);
//
List<GridRegionUser> relationship = gridRegionUserService.selectByExample(example);
String
region
=
relationship
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
joining
(
","
));
//
String region = relationship.stream().map(GridRegionUser::getWgId).collect(Collectors.joining(","));
List
<
String
>
regions
=
Arrays
.
asList
(
region
.
split
(
","
));
//
List<String> regions = Arrays.asList(region.split(","));
List
<
String
>
regionList
=
new
ArrayList
<>();
//
List<String> regionList = new ArrayList<>();
if
(!
regions
.
get
(
0
).
equals
(
"320282001"
)){
//
if(!regions.get(0).equals("320282001")){
regionList
.
add
(
"320282001"
);
//
regionList.add("320282001");
}
//
}
regionList
.
addAll
(
regions
);
//
regionList.addAll(regions);
if
(
wgType
.
equals
(
"0"
)){
if
(
wgType
.
equals
(
"0"
)){
gridRegionFacadeService
.
getRolesWhereTypeZero
(
wgName
,
wgCode
,
wgType
,
level
,
wgPurpose
,
pageNum
,
pageSize
,
result
);
// gridRegionFacadeService.getRolesWhereTypeZero(wgName, wgCode, wgType, level, wgPurpose, pageNum, pageSize, result);
gridRegionFacadeService
.
getRoles
(
wgName
,
wgCode
,
wgType
,
level
,
wgPurpose
,
pageNum
,
pageSize
,
result
);
}
else
{
}
else
{
gridRegionFacadeService
.
getRoles
(
wgName
,
wgCode
,
wgType
,
level
,
wgPurpose
,
pageNum
,
pageSize
,
result
,
regionList
);
gridRegionFacadeService
.
getRoles
(
wgName
,
wgCode
,
wgType
,
level
,
wgPurpose
,
pageNum
,
pageSize
,
result
);
// gridRegionFacadeService.getRoles(wgName, wgCode, wgType, level, wgPurpose, pageNum, pageSize, result, regionList);
}
}
return
JSON
.
toJSONString
(
result
);
return
JSON
.
toJSONString
(
result
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -571,24 +573,25 @@ public class RegionController extends BaseController {
...
@@ -571,24 +573,25 @@ public class RegionController extends BaseController {
@RequestMapping
(
value
=
"/getWsTreeNode"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getWsTreeNode"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
AjaxResult
getWsTreeNode
(
@RequestParam
(
"wgType"
)
String
wgType
,
String
isShow
,
@RequestParam
(
value
=
"isAll"
,
required
=
false
)
String
isAll
)
{
public
AjaxResult
getWsTreeNode
(
@RequestParam
(
"wgType"
)
String
wgType
,
String
isShow
,
@RequestParam
(
value
=
"isAll"
,
required
=
false
)
String
isAll
)
{
SysUser
user
=
SecurityUtils
.
getLoginUser
().
getUser
();
//
SysUser user = SecurityUtils.getLoginUser().getUser();
//网格
//
//网格
GridRegionUserExample
example
=
new
GridRegionUserExample
();
//
GridRegionUserExample example = new GridRegionUserExample();
GridRegionUserExample
.
Criteria
criteria
=
example
.
createCriteria
();
//
GridRegionUserExample.Criteria criteria = example.createCriteria();
criteria
.
andUserIdEqualTo
(
user
.
getUserId
());
//
criteria.andUserIdEqualTo(user.getUserId());
//
criteria.andUserIdEqualTo("2
");
//
// criteria.andUserIdEqualTo("1
");
criteria
.
andIsValidEqualTo
(
"1"
);
//
criteria.andIsValidEqualTo("1");
List
<
GridRegionUser
>
relationship
=
gridRegionUserService
.
selectByExample
(
example
);
//
List<GridRegionUser> relationship = gridRegionUserService.selectByExample(example);
String
region
=
relationship
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
joining
(
","
));
//
String region = relationship.stream().map(GridRegionUser::getWgId).collect(Collectors.joining(","));
List
<
String
>
regions
=
Arrays
.
asList
(
region
.
split
(
","
));
//
List<String> regions = Arrays.asList(region.split(","));
List
<
String
>
regionList
=
new
ArrayList
<>();
//
List<String> regionList = new ArrayList<>();
if
(!
regions
.
get
(
0
).
equals
(
"320282001"
)){
//
if(!regions.get(0).equals("320282001")){
regionList
.
add
(
"320282001"
);
//
regionList.add("320282001");
}
//
}
regionList
.
addAll
(
regions
);
//
regionList.addAll(regions);
if
(
wgType
.
equals
(
"0"
)){
if
(
wgType
.
equals
(
"0"
)){
return
AjaxResult
.
success
(
gridRegionFacadeService
.
getWsTreeNodeIncludeTwoPointFive
(
null
,
null
,
null
,
regionList
));
// return AjaxResult.success(gridRegionFacadeService.getWsTreeNodeIncludeTwoPointFive(null,null,null,regionList));
return
AjaxResult
.
success
(
gridRegionFacadeService
.
getWsTreeNodeIncludeTwoPointFive
(
null
,
null
,
null
));
}
}
SysUser
sysUser
=
getLoginUser
().
getUser
();
SysUser
sysUser
=
getLoginUser
().
getUser
();
...
@@ -601,7 +604,8 @@ public class RegionController extends BaseController {
...
@@ -601,7 +604,8 @@ public class RegionController extends BaseController {
}
}
wgCodeList
=
list
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
toList
());
wgCodeList
=
list
.
stream
().
map
(
GridRegionUser:
:
getWgId
).
collect
(
Collectors
.
toList
());
}
}
return
AjaxResult
.
success
(
gridRegionFacadeService
.
getWsTreeNode
(
wgType
,
wgCodeList
,
isShow
,
regions
));
// return AjaxResult.success(gridRegionFacadeService.getWsTreeNode(wgType, wgCodeList, isShow, regions));
return
AjaxResult
.
success
(
gridRegionFacadeService
.
getWsTreeNode
(
wgType
,
wgCodeList
,
isShow
));
}
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/HouseResource.java
View file @
fe627419
...
@@ -68,7 +68,7 @@ public class HouseResource implements Serializable {
...
@@ -68,7 +68,7 @@ public class HouseResource implements Serializable {
private
String
address
;
private
String
address
;
private
String
lo
g
;
private
String
lo
n
;
private
String
lat
;
private
String
lat
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/house/vo/HouseResourceDetail.java
View file @
fe627419
...
@@ -89,4 +89,6 @@ public class HouseResourceDetail {
...
@@ -89,4 +89,6 @@ public class HouseResourceDetail {
private
String
log
;
private
String
log
;
private
String
lat
;
private
String
lat
;
private
List
<
BusinessEntityDto
>
businessEntityDtoList
;
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/house/BusinessEntitySellMapper.java
View file @
fe627419
...
@@ -24,4 +24,6 @@ public interface BusinessEntitySellMapper {
...
@@ -24,4 +24,6 @@ public interface BusinessEntitySellMapper {
void
deleteBusinessEntitySellByEntityId
(
@Param
(
"businessEntityId"
)
String
businessEntityId
);
void
deleteBusinessEntitySellByEntityId
(
@Param
(
"businessEntityId"
)
String
businessEntityId
);
List
<
BusinessEntitySell
>
selectBusinessEntitySellByEntityId
(
@Param
(
"entityId"
)
String
entityId
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/grid/GridRegionFacadeService.java
View file @
fe627419
...
@@ -247,7 +247,8 @@ public class GridRegionFacadeService {
...
@@ -247,7 +247,8 @@ public class GridRegionFacadeService {
return
gridRegion
;
return
gridRegion
;
}
}
public
void
getRoles
(
String
wgName
,
String
wgCode
,
String
wgType
,
String
level
,
String
purpose
,
Integer
pageNum
,
Integer
pageSize
,
AjaxResult
result
,
List
<
String
>
regions
)
{
// public void getRoles(String wgName, String wgCode, String wgType, String level, String purpose, Integer pageNum, Integer pageSize, AjaxResult result, List<String> regions) {
public
void
getRoles
(
String
wgName
,
String
wgCode
,
String
wgType
,
String
level
,
String
purpose
,
Integer
pageNum
,
Integer
pageSize
,
AjaxResult
result
)
{
if
(
null
==
pageNum
||
pageNum
<=
0
)
{
if
(
null
==
pageNum
||
pageNum
<=
0
)
{
pageNum
=
1
;
pageNum
=
1
;
}
}
...
@@ -295,26 +296,28 @@ public class GridRegionFacadeService {
...
@@ -295,26 +296,28 @@ public class GridRegionFacadeService {
result
.
buildSuccess
(
"success"
,
appPageModel
);
result
.
buildSuccess
(
"success"
,
appPageModel
);
return
;
return
;
}
}
List
<
GridRegion
>
res
=
new
ArrayList
<>();
//
List<GridRegion> res = new ArrayList<>();
if
(!(
regions
.
size
()==
1
&&
regions
.
get
(
0
).
equals
(
"320282001"
))){
//
if(!(regions.size()==1 && regions.get(0).equals("320282001"))){
Map
<
String
,
Integer
>
map
=
new
HashMap
<>();
//
Map<String,Integer> map = new HashMap<>();
for
(
String
region:
regions
){
//
for(String region: regions){
map
.
put
(
region
,
1
);
//
map.put(region, 1);
}
//
}
for
(
GridRegion
region:
roles
){
//
for(GridRegion region: roles){
if
(
map
.
containsKey
(
region
.
getWgCode
())){
//
if(map.containsKey(region.getWgCode())){
res
.
add
(
region
);
//
res.add(region);
}
//
}
}
//
}
}
else
{
//
}else{
res
=
roles
;
//
res = roles;
}
//
}
appPageModel
.
setCurPage
(
pageNum
);
appPageModel
.
setCurPage
(
pageNum
);
appPageModel
.
setRecordCount
(
res
.
size
());
// appPageModel.setRecordCount(res.size());
appPageModel
.
setRecordCount
(
count
);
appPageModel
.
setPageCount
((
long
)
Math
.
ceil
(
1.0
*
count
/
pageSize
));
appPageModel
.
setPageCount
((
long
)
Math
.
ceil
(
1.0
*
count
/
pageSize
));
List
<
GridRegionWithCompanyItem
>
itemList
=
BeanCopyUtil
.
bathToBean
(
res
,
GridRegionWithCompanyItem
.
class
);
// List<GridRegionWithCompanyItem> itemList = BeanCopyUtil.bathToBean(res, GridRegionWithCompanyItem.class);
List
<
GridRegionWithCompanyItem
>
itemList
=
BeanCopyUtil
.
bathToBean
(
roles
,
GridRegionWithCompanyItem
.
class
);
itemList
.
forEach
(
e
->
{
itemList
.
forEach
(
e
->
{
GridCompanyLandExample
gridCompanyLandExample
=
new
GridCompanyLandExample
();
GridCompanyLandExample
gridCompanyLandExample
=
new
GridCompanyLandExample
();
GridCompanyLandExample
.
Criteria
gridCompanyLandExampleCriteria
=
gridCompanyLandExample
.
createCriteria
();
GridCompanyLandExample
.
Criteria
gridCompanyLandExampleCriteria
=
gridCompanyLandExample
.
createCriteria
();
...
@@ -785,7 +788,8 @@ public class GridRegionFacadeService {
...
@@ -785,7 +788,8 @@ public class GridRegionFacadeService {
return
;
return
;
}
}
public
List
<
GridTreeNode
>
getWsTreeNode
(
String
wgType
,
List
<
String
>
wgList
,
String
isShow
,
List
<
String
>
regions
)
{
// public List<GridTreeNode> getWsTreeNode(String wgType, List<String> wgList, String isShow, List<String> regions) {
public
List
<
GridTreeNode
>
getWsTreeNode
(
String
wgType
,
List
<
String
>
wgList
,
String
isShow
)
{
GridRegionSearchParam
param
=
new
GridRegionSearchParam
();
GridRegionSearchParam
param
=
new
GridRegionSearchParam
();
param
.
setWgType
(
wgType
);
param
.
setWgType
(
wgType
);
if
(!
CollectionUtils
.
isEmpty
(
wgList
)){
if
(!
CollectionUtils
.
isEmpty
(
wgList
)){
...
@@ -795,21 +799,22 @@ public class GridRegionFacadeService {
...
@@ -795,21 +799,22 @@ public class GridRegionFacadeService {
param
.
setShow
(
false
);
param
.
setShow
(
false
);
}
}
List
<
GridRegion
>
gridRegionList
=
gridRegionMapper
.
getByParams
(
param
);
List
<
GridRegion
>
gridRegionList
=
gridRegionMapper
.
getByParams
(
param
);
List
<
GridTreeNode
>
res
=
convertFrRegion
(
gridRegionList
,
wgList
);
return
convertFrRegion
(
gridRegionList
,
wgList
);
List
<
GridTreeNode
>
degree_second
=
new
ArrayList
<>();
// List<GridTreeNode> res = convertFrRegion(gridRegionList, wgList);
if
(!(
regions
.
size
()==
1
&&
regions
.
get
(
0
).
equals
(
"320282001"
))){
// List<GridTreeNode> degree_second = new ArrayList<>();
Map
<
String
,
Integer
>
map
=
new
HashMap
<>();
// if(!(regions.size()==1 && regions.get(0).equals("320282001"))){
for
(
String
region:
regions
){
// Map<String,Integer> map = new HashMap<>();
map
.
put
(
region
,
1
);
// for(String region: regions){
}
// map.put(region, 1);
for
(
GridTreeNode
region:
res
.
get
(
0
).
getChild
()){
// }
if
(
map
.
containsKey
(
region
.
getCode
())){
// for(GridTreeNode region: res.get(0).getChild()){
degree_second
.
add
(
region
);
// if(map.containsKey(region.getCode())){
}
// degree_second.add(region);
}
// }
res
.
get
(
0
).
setChild
(
degree_second
);
// }
}
// res.get(0).setChild(degree_second);
return
res
;
// }
// return res;
}
}
private
List
<
GridTreeNode
>
convertFrRegion
(
List
<
GridRegion
>
gridRegionList
,
List
<
String
>
wgCodes
)
{
private
List
<
GridTreeNode
>
convertFrRegion
(
List
<
GridRegion
>
gridRegionList
,
List
<
String
>
wgCodes
)
{
...
@@ -1169,7 +1174,8 @@ public class GridRegionFacadeService {
...
@@ -1169,7 +1174,8 @@ public class GridRegionFacadeService {
return
gridRegionList
;
return
gridRegionList
;
}
}
public
List
<
GridTreeNode
>
getWsTreeNodeIncludeTwoPointFive
(
String
wgType
,
List
<
String
>
wgList
,
String
isShow
,
List
<
String
>
regions
)
{
// public List<GridTreeNode> getWsTreeNodeIncludeTwoPointFive(String wgType, List<String> wgList, String isShow, List<String> regions) {
public
List
<
GridTreeNode
>
getWsTreeNodeIncludeTwoPointFive
(
String
wgType
,
List
<
String
>
wgList
,
String
isShow
)
{
//获取一级树
//获取一级树
List
<
GridRegion
>
gridRegionList
=
gridRegionMapper
.
getRegionByTypeAndCode
(
"1"
,
new
ArrayList
<>(),
"1"
);
List
<
GridRegion
>
gridRegionList
=
gridRegionMapper
.
getRegionByTypeAndCode
(
"1"
,
new
ArrayList
<>(),
"1"
);
List
<
GridTreeNode
>
res
=
new
ArrayList
<>();
List
<
GridTreeNode
>
res
=
new
ArrayList
<>();
...
@@ -1267,19 +1273,19 @@ public class GridRegionFacadeService {
...
@@ -1267,19 +1273,19 @@ public class GridRegionFacadeService {
gridTreeNode
.
setChild
(
secondFiveTree
);
gridTreeNode
.
setChild
(
secondFiveTree
);
}
}
List
<
GridTreeNode
>
degree_second
=
new
ArrayList
<>();
//
List<GridTreeNode> degree_second = new ArrayList<>();
if
(!(
regions
.
size
()==
1
&&
regions
.
get
(
0
).
equals
(
"320282001"
))){
//
if(!(regions.size()==1 && regions.get(0).equals("320282001"))){
Map
<
String
,
Integer
>
map
=
new
HashMap
<>();
//
Map<String,Integer> map = new HashMap<>();
for
(
String
region:
regions
){
//
for(String region: regions){
map
.
put
(
region
,
1
);
//
map.put(region, 1);
}
//
}
for
(
GridTreeNode
region:
res
.
get
(
0
).
getChild
()){
//
for(GridTreeNode region: res.get(0).getChild()){
if
(
map
.
containsKey
(
region
.
getCode
())){
//
if(map.containsKey(region.getCode())){
degree_second
.
add
(
region
);
//
degree_second.add(region);
}
//
}
}
//
}
res
.
get
(
0
).
setChild
(
degree_second
);
//
res.get(0).setChild(degree_second);
}
//
}
return
res
;
return
res
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/house/impl/HouseResourceServiceImpl.java
View file @
fe627419
...
@@ -12,7 +12,6 @@ import com.ruoyi.system.domain.house.vo.*;
...
@@ -12,7 +12,6 @@ import com.ruoyi.system.domain.house.vo.*;
import
com.ruoyi.system.mapper.grid.GridRegionMapper
;
import
com.ruoyi.system.mapper.grid.GridRegionMapper
;
import
com.ruoyi.system.mapper.house.BusinessEntityInfoMapper
;
import
com.ruoyi.system.mapper.house.BusinessEntityInfoMapper
;
import
com.ruoyi.system.mapper.house.BusinessEntitySellMapper
;
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.mapper.house.HouseResourceMapper
;
import
com.ruoyi.system.service.house.HouseResourceService
;
import
com.ruoyi.system.service.house.HouseResourceService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
...
@@ -58,6 +57,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -58,6 +57,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
businessEntityInfoMapper
.
insertBusinessEntityInfo
(
businessEntityInfo
);
businessEntityInfoMapper
.
insertBusinessEntityInfo
(
businessEntityInfo
);
for
(
BusinessEntitySell
businessEntitySell
:
businessEntityDto
.
getBusinessEntitySells
())
{
for
(
BusinessEntitySell
businessEntitySell
:
businessEntityDto
.
getBusinessEntitySells
())
{
businessEntitySell
.
setId
(
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
));
businessEntitySell
.
setBusinessEntityInfoId
(
businessEntityInfoId
);
businessEntitySell
.
setBusinessEntityInfoId
(
businessEntityInfoId
);
businessEntitySellMapper
.
insertBusinessEntitySell
(
businessEntitySell
);
businessEntitySellMapper
.
insertBusinessEntitySell
(
businessEntitySell
);
}
}
...
@@ -87,6 +87,17 @@ public class HouseResourceServiceImpl implements HouseResourceService {
...
@@ -87,6 +87,17 @@ public class HouseResourceServiceImpl implements HouseResourceService {
houseResourceDetail
.
setDecorationConditionText
(
HouseEnums
.
DecorationConditionEnum
.
getDescByCode
(
houseResourceDetail
.
getDecorationCondition
()));
houseResourceDetail
.
setDecorationConditionText
(
HouseEnums
.
DecorationConditionEnum
.
getDescByCode
(
houseResourceDetail
.
getDecorationCondition
()));
houseResourceDetail
.
setRentalUnitText
(
HouseEnums
.
RentalUnitEnum
.
getDescByCode
(
houseResourceDetail
.
getRentalUnit
()));
houseResourceDetail
.
setRentalUnitText
(
HouseEnums
.
RentalUnitEnum
.
getDescByCode
(
houseResourceDetail
.
getRentalUnit
()));
houseResourceDetail
.
setHireStatusText
(
HouseEnums
.
hireStatusTextEnum
.
getDescByCode
(
houseResourceDetail
.
getHireStatus
()));
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
;
return
houseResourceDetail
;
}
}
...
...
ruoyi-system/src/main/resources/mapper/house/BusinessEntitySellMapper.xml
View file @
fe627419
...
@@ -50,4 +50,9 @@
...
@@ -50,4 +50,9 @@
<delete
id=
"deleteBusinessEntitySellByEntityId"
>
<delete
id=
"deleteBusinessEntitySellByEntityId"
>
DELETE FROM business_entity_sell WHERE business_entity_info_id = #{businessEntityId}
DELETE FROM business_entity_sell WHERE business_entity_info_id = #{businessEntityId}
</delete>
</delete>
<select
id=
"selectBusinessEntitySellByEntityId"
resultType=
"com.ruoyi.system.domain.house.BusinessEntitySell"
>
SELECT * FROM business_entity_sell WHERE business_entity_info_id = #{entityId}
</select>
</mapper>
</mapper>
\ No newline at end of file
ruoyi-system/src/main/resources/mapper/house/HouseResourceMapper.xml
View file @
fe627419
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<result
property=
"planeGraphUrl"
column=
"plane_graph_url"
jdbcType=
"VARCHAR"
/>
<result
property=
"planeGraphUrl"
column=
"plane_graph_url"
jdbcType=
"VARCHAR"
/>
<result
property=
"hireStatus"
column=
"hire_status"
jdbcType=
"INTEGER"
/>
<result
property=
"hireStatus"
column=
"hire_status"
jdbcType=
"INTEGER"
/>
<result
property=
"address"
column=
"address"
jdbcType=
"VARCHAR"
/>
<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"
/>
<result
property=
"lat"
column=
"lat"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
...
@@ -41,12 +41,12 @@
...
@@ -41,12 +41,12 @@
(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, 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, 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
VALUES
(#{id}, #{relationId}, #{two}, #{three}, #{four}, #{type}, #{projectId}, #{houseResourceUrl}, #{houseNumber}, #{houseArea},
(#{id}, #{relationId}, #{two}, #{three}, #{four}, #{type}, #{projectId}, #{houseResourceUrl}, #{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}, #{lo
g
}, #{lat})
#{meetingNumber}, #{stationNumber}, #{setUp}, #{labelId}, #{unitPrice}, #{rentalUnit}, #{planeGraphUrl}, #{hireStatus}, #{address}, #{lo
n
}, #{lat})
</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"
>
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
plane_graph_url = #{planeGraphUrl},
plane_graph_url = #{planeGraphUrl},
hire_status = #{hireStatus},
hire_status = #{hireStatus},
address = #{address},
address = #{address},
lo
g = #{log
},
lo
n = #{lon
},
lat = #{lat}
lat = #{lat}
WHERE id = #{id}
WHERE id = #{id}
</update>
</update>
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
(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, 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, 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
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},
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,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.lo
g
}, #{item.lat})
#{item.planeGraphUrl}, #{item.hireStatus}, #{item.address}, #{item.lo
n
}, #{item.lat})
</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