Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
cfld-region-outline
Project
Project
Details
Activity
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
cfld-backend
cfld-region-outline
Commits
eb1200fe
Commit
eb1200fe
authored
Oct 19, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug统一修改
parent
fa9dd027
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
2 deletions
+28
-2
HomePageVO.java
src/main/java/com/lyy/admin/VO/HomePageVO.java
+2
-0
TreeInfoController.java
...ain/java/com/lyy/admin/controller/TreeInfoController.java
+2
-0
DevelopmentInfoController.java
...controller/developmentinfo/DevelopmentInfoController.java
+3
-0
HomePageController.java
...com/lyy/admin/controller/homepage/HomePageController.java
+6
-1
MegalopolisInfoController.java
...controller/megalopolisinfo/MegalopolisInfoController.java
+3
-0
DevelopmentInfo.java
...com/lyy/admin/domain/developmentinfo/DevelopmentInfo.java
+3
-0
DevelopmentInfoParam.java
...yy/admin/domain/developmentinfo/DevelopmentInfoParam.java
+2
-0
DevelopmentInfoServiceImpl.java
...vice/developmentinfo/impl/DevelopmentInfoServiceImpl.java
+4
-0
MegalopolisInfoServiceImpl.java
...vice/megalopolisinfo/impl/MegalopolisInfoServiceImpl.java
+1
-1
ParkInfoServiceImpl.java
.../lyy/admin/service/parkinfo/impl/ParkInfoServiceImpl.java
+2
-0
No files found.
src/main/java/com/lyy/admin/VO/HomePageVO.java
View file @
eb1200fe
...
...
@@ -18,6 +18,8 @@ public class HomePageVO {
private
Long
megalopolisInfoCount
=
0
l
;
@ApiModelProperty
(
value
=
"都市圈名称"
)
private
String
megalopolisInfoName
=
""
;
@ApiModelProperty
(
value
=
"都市圈id"
)
private
Integer
megalopolisInfoId
=
null
;
// @ApiModelProperty(value = "城市覆盖总数")
// private Long coverCityCount;
@ApiModelProperty
(
value
=
"轮播图列表"
)
...
...
src/main/java/com/lyy/admin/controller/TreeInfoController.java
View file @
eb1200fe
package
com
.
lyy
.
admin
.
controller
;
import
com.lyy.admin.common.anno.Cache
;
import
com.lyy.admin.service.TreeInfoService
;
import
com.lyy.admin.service.impl.TreeInfoServiceImpl
;
import
io.swagger.annotations.Api
;
...
...
@@ -20,6 +21,7 @@ public class TreeInfoController {
@Autowired
TreeInfoService
treeInfoService
;
@Cache
(
cacheByUser
=
false
)
@GetMapping
(
"/list/{ownership}"
)
@ResponseBody
@ApiOperation
(
value
=
"查询条件信息"
,
notes
=
""
)
...
...
src/main/java/com/lyy/admin/controller/developmentinfo/DevelopmentInfoController.java
View file @
eb1200fe
package
com
.
lyy
.
admin
.
controller
.
developmentinfo
;
import
com.github.pagehelper.PageInfo
;
import
com.lyy.admin.common.anno.Cache
;
import
com.lyy.admin.common.exception.APIException
;
import
com.lyy.admin.common.page.TableDataInfo
;
import
com.lyy.admin.common.utils.PageUtils
;
...
...
@@ -9,6 +10,7 @@ import com.lyy.admin.VO.DevelopmentInfoAllVO;
import
com.lyy.admin.VO.DevelopmentInfoListVO
;
import
com.lyy.admin.domain.developmentinfo.DevelopmentInfo
;
import
com.lyy.admin.domain.developmentinfo.DevelopmentInfoParam
;
import
com.lyy.admin.enumerate.CacheType
;
import
com.lyy.admin.service.developmentinfo.DevelopmentInfoService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
...
...
@@ -58,6 +60,7 @@ public class DevelopmentInfoController extends BaseController {
}).
collect
(
Collectors
.
toList
());
return
getDataTable
(
developmentInfoVOs
,
new
PageInfo
(
developmentInfos
).
getTotal
());
}
@Cache
(
cacheByUser
=
false
,
type
=
CacheType
.
LOCAL
)
@GetMapping
(
"/get/{id}"
)
@ResponseBody
@ApiOperation
(
value
=
"某个开发区信息"
,
notes
=
"rest风格传参,将参数拼接在url上"
)
...
...
src/main/java/com/lyy/admin/controller/homepage/HomePageController.java
View file @
eb1200fe
...
...
@@ -4,6 +4,7 @@ import cn.hutool.core.date.DateUtil;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.lyy.admin.VO.HomePageVO
;
import
com.lyy.admin.VO.ParkInfoListVO
;
import
com.lyy.admin.common.anno.Cache
;
import
com.lyy.admin.common.page.TableDataInfo
;
import
com.lyy.admin.controller.BaseController
;
import
com.lyy.admin.domain.MegalopolisCoreCityInfo
;
...
...
@@ -78,6 +79,7 @@ public class HomePageController extends BaseController {
@Autowired
MegalopolisCityInfoService
megalopolisCityInfoService
;
@Cache
(
cacheByUser
=
false
)
@GetMapping
(
"/getHomePage"
)
@ResponseBody
@ApiOperation
(
value
=
"园区总数、开发区总数、都市圈总数、城市覆盖总数、轮播图列表、热点园区"
,
notes
=
""
)
...
...
@@ -109,6 +111,7 @@ public class HomePageController extends BaseController {
long
megalopolisInfoCount
=
30
l
;
String
megalopolisInfoName
=
""
;
Integer
megalopoisId
=
null
;
if
(
StringUtils
.
isNotBlank
(
area
))
{
// QueryWrapper<MegalopolisInfo> miQW = new QueryWrapper<>();
// miQW.and(
...
...
@@ -121,7 +124,7 @@ public class HomePageController extends BaseController {
QueryWrapper
<
MegalopolisCoreCityInfo
>
mcciQW
=
new
QueryWrapper
<>();
mcciQW
.
eq
(
"city_name"
,
area
);
MegalopolisCoreCityInfo
megalopolisCoreCityInfo
=
megalopolisCoreCityInfoService
.
getOne
(
mcciQW
);
Integer
megalopoisId
=
null
;
if
(
ObjectUtils
.
isNotEmpty
(
megalopolisCoreCityInfo
)){
megalopoisId
=
megalopolisCoreCityInfo
.
getMegalopolisId
();
}
...
...
@@ -162,6 +165,7 @@ public class HomePageController extends BaseController {
homePageVO
.
setParkInfoCount
(
parkInfoCount
);
homePageVO
.
setDevelopmentInfoCount
(
developmentInfoCount
);
homePageVO
.
setMegalopolisInfoCount
(
megalopolisInfoCount
);
homePageVO
.
setMegalopolisInfoId
(
megalopoisId
);
homePageVO
.
setMegalopolisInfoName
(
megalopolisInfoName
);
// homePageVO.setCoverCityCount(coverCityCount);
homePageVO
.
setSysCarouselInfolist
(
list
);
...
...
@@ -175,6 +179,7 @@ public class HomePageController extends BaseController {
return
homePageVO
;
}
@Cache
(
cacheByUser
=
false
)
@GetMapping
(
"/getRegionTargetList"
)
@ResponseBody
@ApiOperation
(
value
=
"获取区域经济数据"
,
notes
=
"无参数,直接点击测试"
)
...
...
src/main/java/com/lyy/admin/controller/megalopolisinfo/MegalopolisInfoController.java
View file @
eb1200fe
package
com
.
lyy
.
admin
.
controller
.
megalopolisinfo
;
import
com.github.pagehelper.PageInfo
;
import
com.lyy.admin.common.anno.Cache
;
import
com.lyy.admin.common.page.TableDataInfo
;
import
com.lyy.admin.common.utils.PageUtils
;
import
com.lyy.admin.controller.BaseController
;
...
...
@@ -8,6 +9,7 @@ import com.lyy.admin.VO.MegalopolisInfoAllVO;
import
com.lyy.admin.VO.MegalopolisInfoListVO
;
import
com.lyy.admin.domain.megalopolisinfo.MegalopolisInfo
;
import
com.lyy.admin.domain.megalopolisinfo.MegalopolisInfoParam
;
import
com.lyy.admin.enumerate.CacheType
;
import
com.lyy.admin.service.megalopolisinfo.MegalopolisInfoService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
...
...
@@ -57,6 +59,7 @@ public class MegalopolisInfoController extends BaseController {
}).
collect
(
Collectors
.
toList
());
return
getDataTable
(
parkInfoListVOs
,
new
PageInfo
(
megalopolisInfos
).
getTotal
());
}
// @Cache(cacheByUser = false,type = CacheType.LOCAL)
@GetMapping
(
"/get/{id}"
)
@ResponseBody
@ApiOperation
(
value
=
"某个都市圈信息"
,
notes
=
"rest风格传参,将参数拼接在url上"
)
...
...
src/main/java/com/lyy/admin/domain/developmentinfo/DevelopmentInfo.java
View file @
eb1200fe
...
...
@@ -393,6 +393,8 @@ public class DevelopmentInfo implements Serializable {
private
String
type
;
private
Integer
megalopolisId
;
@TableField
(
exist
=
false
)
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
src/main/java/com/lyy/admin/domain/developmentinfo/DevelopmentInfoParam.java
View file @
eb1200fe
...
...
@@ -110,6 +110,8 @@ public class DevelopmentInfoParam implements Serializable {
@ApiModelProperty
(
value
=
"开发区类型"
)
private
String
type
;
private
Integer
megalopolisId
;
@ApiModelProperty
(
hidden
=
true
)
private
static
final
long
serialVersionUID
=
1L
;
...
...
src/main/java/com/lyy/admin/service/developmentinfo/impl/DevelopmentInfoServiceImpl.java
View file @
eb1200fe
...
...
@@ -141,6 +141,9 @@ public class DevelopmentInfoServiceImpl extends ServiceImpl<DevelopmentInfoMappe
if
(
StringUtils
.
isNotBlank
(
developmentInfoParam
.
getType
())){
developmentInfoQW
.
eq
(
"type"
,
developmentInfoParam
.
getType
());
}
if
(
ObjectUtils
.
isNotEmpty
(
developmentInfoParam
.
getMegalopolisId
())){
developmentInfoQW
.
eq
(
"megalopolis_id"
,
developmentInfoParam
.
getMegalopolisId
());
}
List
<
DevelopmentInfo
>
developmentInfos
=
developmentInfoMapper
.
selectList
(
developmentInfoQW
);
return
developmentInfos
;
...
...
@@ -248,6 +251,7 @@ public class DevelopmentInfoServiceImpl extends ServiceImpl<DevelopmentInfoMappe
developmentInfoVO
.
setImgUrl
(
developmentInfo
.
getImgUrl
());
developmentInfoVO
.
setPlanArea
(
developmentInfo
.
getPlanArea
());
developmentInfoVO
.
setType
(
developmentInfo
.
getType
());
developmentInfoVO
.
setAddress
(
developmentInfo
.
getAddress
());
developmentInfoAllVO
.
setDevelopmentInfoVO
(
developmentInfoVO
);
}
if
(
ObjectUtils
.
isNotEmpty
(
userId
))
{
...
...
src/main/java/com/lyy/admin/service/megalopolisinfo/impl/MegalopolisInfoServiceImpl.java
View file @
eb1200fe
...
...
@@ -133,7 +133,7 @@ public class MegalopolisInfoServiceImpl extends ServiceImpl<MegalopolisInfoMappe
//开发区信息
DevelopmentInfoParam
developmentInfoParam
=
new
DevelopmentInfoParam
();
developmentInfoParam
.
set
Id
(
String
.
valueOf
(
id
)
);
developmentInfoParam
.
set
MegalopolisId
(
id
);
List
<
DevelopmentInfo
>
developmentInfos
=
developmentInfoService
.
selectDevelopmentInfoVOList
(
developmentInfoParam
);
List
<
DevelopmentInfoListVO
>
developmentInfoVOs
=
developmentInfos
.
stream
().
map
(
developmentInfo
->
{
DevelopmentInfoListVO
developmentInfoVO
=
new
DevelopmentInfoListVO
();
...
...
src/main/java/com/lyy/admin/service/parkinfo/impl/ParkInfoServiceImpl.java
View file @
eb1200fe
...
...
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.lyy.admin.VO.*
;
import
com.lyy.admin.common.anno.Cache
;
import
com.lyy.admin.enumerate.CarouselTypeEnum
;
import
com.lyy.admin.enumerate.StatusEnum
;
import
com.lyy.admin.common.exception.APIException
;
...
...
@@ -106,6 +107,7 @@ public class ParkInfoServiceImpl extends ServiceImpl<ParkInfoMapper, ParkInfo> i
@Autowired
SysCarouselInfoMapper
sysCarouselInfoMapper
;
@Cache
(
cacheByUser
=
false
)
public
List
<
ParkInfo
>
selectParkInfoListVO
(
ParkInfoParam
parkInfoParam
)
{
String
coverArea
=
parkInfoParam
.
getCoverArea
();
if
(
ObjectUtils
.
isNotEmpty
(
coverArea
))
{
...
...
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