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
5f1678fc
Commit
5f1678fc
authored
Dec 28, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
都市圈添加雪花id 去掉待认证联系人
parent
0aab1d8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
MegalopolisInfoController.java
...controller/megalopolisinfo/MegalopolisInfoController.java
+2
-2
DevelopmentInfoServiceImpl.java
...vice/developmentinfo/impl/DevelopmentInfoServiceImpl.java
+14
-0
ParkInfoServiceImpl.java
.../lyy/admin/service/parkinfo/impl/ParkInfoServiceImpl.java
+14
-0
No files found.
src/main/java/com/lyy/admin/controller/megalopolisinfo/MegalopolisInfoController.java
View file @
5f1678fc
...
...
@@ -41,7 +41,7 @@ public class MegalopolisInfoController extends BaseController {
@ApiImplicitParam
(
name
=
"orderByColumn"
,
value
=
"排序字段(可为空,传类属性)"
,
type
=
"String"
),
@ApiImplicitParam
(
name
=
"isAsc"
,
value
=
"排序字段(可为空,请传asc或者desc)"
,
type
=
"String"
)
})
//
@EncryptBusiness
@EncryptBusiness
public
TableDataInfo
list
(
MegalopolisInfoParam
megalopolisInfoParam
)
{
boolean
login
=
isLogin
();
startPage
();
...
...
@@ -66,7 +66,7 @@ public class MegalopolisInfoController extends BaseController {
@ResponseBody
@ApiOperation
(
value
=
"某个都市圈信息"
,
notes
=
"rest风格传参,将参数拼接在url上"
)
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"都市圈id"
,
type
=
"Long"
)
//
@EncryptBusiness
@EncryptBusiness
public
MegalopolisInfoAllVO
get
(
@PathVariable
Long
businessId
)
{
return
MegalopolisInfoSerivce
.
getMegalopolisInfo
(
businessId
,
getUserInfo
().
getUserId
(),
getUserInfo
().
getIsMembership
());
}
...
...
src/main/java/com/lyy/admin/service/developmentinfo/impl/DevelopmentInfoServiceImpl.java
View file @
5f1678fc
...
...
@@ -251,6 +251,7 @@ public class DevelopmentInfoServiceImpl extends ServiceImpl<DevelopmentInfoMappe
if
(
developmentInfo
==
null
){
throw
new
APIException
(
APIExceptionEnum
.
NOTEXISTS_EXCEPTION
);
}
soucreDeal
(
developmentInfo
);
boolean
isOwner
=
false
;
Integer
userId1
=
developmentInfo
.
getUserId
();
...
...
@@ -724,6 +725,19 @@ public class DevelopmentInfoServiceImpl extends ServiceImpl<DevelopmentInfoMappe
}
}
/**
* @description: 如果数据待认证的 先不进行展示联系人和 电话
* @date: 2023/12/13 14:01
* @param: [parkInfo]
* @return: void
*/
private
void
soucreDeal
(
DevelopmentInfo
developmentInfo
)
{
//待认证的手机号和联系人不展示
if
(
DevelopmentStatusEnum
.
STATUS_DRZ
.
getCode
().
equals
(
developmentInfo
.
getStatus
())){
developmentInfo
.
setContactPerson
(
null
);
developmentInfo
.
setContactPhone
(
null
);
}
}
}
...
...
src/main/java/com/lyy/admin/service/parkinfo/impl/ParkInfoServiceImpl.java
View file @
5f1678fc
...
...
@@ -298,6 +298,7 @@ public class ParkInfoServiceImpl extends ServiceImpl<ParkInfoMapper, ParkInfo> i
if
(
parkInfo
==
null
)
{
throw
new
APIException
(
APIExceptionEnum
.
NOTEXISTS_EXCEPTION
);
}
soucreDeal
(
parkInfo
);
boolean
isOwner
=
false
;
Integer
userId1
=
parkInfo
.
getUserId
();
...
...
@@ -759,6 +760,19 @@ public class ParkInfoServiceImpl extends ServiceImpl<ParkInfoMapper, ParkInfo> i
}
return
investmentDirection
;
}
/**
* @description: 如果数据是待认证的 先不进行展示联系人和 电话
* @date: 2023/12/13 14:01
* @param: [parkInfo]
* @return: void
*/
private
void
soucreDeal
(
ParkInfo
parkInfo
)
{
if
(
ParkInfoEnum
.
STATUS_DRZ
.
getCode
().
equals
(
parkInfo
.
getStatus
())){
parkInfo
.
setContactPerson
(
null
);
parkInfo
.
setPhone
(
null
);
}
}
}
...
...
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