Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
Hgs
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
徐州
Hgs
Commits
78d8fe11
Commit
78d8fe11
authored
May 30, 2022
by
徐州
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改判断
parent
0ae15a11
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
20 additions
and
20 deletions
+20
-20
CallbackRecordController.java
...com/house365/web/controller/CallbackRecordController.java
+1
-1
CloudCustomerController.java
.../com/house365/web/controller/CloudCustomerController.java
+1
-1
CustomerController.java
.../java/com/house365/web/controller/CustomerController.java
+5
-5
CustomerManagementController.java
...house365/web/controller/CustomerManagementController.java
+2
-2
ExternalCustomerController.java
...m/house365/web/controller/ExternalCustomerController.java
+2
-2
MarketCustomerController.java
...com/house365/web/controller/MarketCustomerController.java
+1
-1
PlatformManagementController.java
...house365/web/controller/PlatformManagementController.java
+2
-2
PropertyReportController.java
...com/house365/web/controller/PropertyReportController.java
+3
-3
StatisticController.java
...java/com/house365/web/controller/StatisticController.java
+1
-1
CustomerWechat.java
.../java/com/house365/ws/interfaces/rest/CustomerWechat.java
+2
-2
No files found.
house365-hgs-web/src/main/java/com/house365/web/controller/CallbackRecordController.java
View file @
78d8fe11
...
@@ -101,7 +101,7 @@ public class CallbackRecordController extends BaseController {
...
@@ -101,7 +101,7 @@ public class CallbackRecordController extends BaseController {
/**
/**
* 用户无权查看完整手机号
* 用户无权查看完整手机号
*/
*/
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
entities
=
entities
.
stream
().
map
(
i
->
{
entities
=
entities
.
stream
().
map
(
i
->
{
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
return
i
;
return
i
;
...
...
house365-hgs-web/src/main/java/com/house365/web/controller/CloudCustomerController.java
View file @
78d8fe11
...
@@ -82,7 +82,7 @@ public class CloudCustomerController extends BaseController {
...
@@ -82,7 +82,7 @@ public class CloudCustomerController extends BaseController {
MapListResponse
response
=
cloudCustomerInterface
.
list
(
listRequest
,
activeId
);
MapListResponse
response
=
cloudCustomerInterface
.
list
(
listRequest
,
activeId
);
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
...
...
house365-hgs-web/src/main/java/com/house365/web/controller/CustomerController.java
View file @
78d8fe11
...
@@ -1146,7 +1146,7 @@ public class CustomerController extends BaseController {
...
@@ -1146,7 +1146,7 @@ public class CustomerController extends BaseController {
/**
/**
* 用户无权查看完整手机号
* 用户无权查看完整手机号
*/
*/
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
customerEntity
.
setPhone
(
MobileUtil
.
hidePhone
(
customerEntity
.
getPhone
()));
customerEntity
.
setPhone
(
MobileUtil
.
hidePhone
(
customerEntity
.
getPhone
()));
}
}
...
@@ -1912,7 +1912,7 @@ public class CustomerController extends BaseController {
...
@@ -1912,7 +1912,7 @@ public class CustomerController extends BaseController {
/**
/**
* 用户无权查看完整手机号
* 用户无权查看完整手机号
*/
*/
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
customers
=
customers
.
stream
().
map
(
i
->
{
customers
=
customers
.
stream
().
map
(
i
->
{
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
return
i
;
return
i
;
...
@@ -2269,7 +2269,7 @@ public class CustomerController extends BaseController {
...
@@ -2269,7 +2269,7 @@ public class CustomerController extends BaseController {
/**
/**
* 用户无权查看完整手机号
* 用户无权查看完整手机号
*/
*/
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
customers
=
customers
.
stream
().
map
(
i
->
{
customers
=
customers
.
stream
().
map
(
i
->
{
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
return
i
;
return
i
;
...
@@ -2480,7 +2480,7 @@ public class CustomerController extends BaseController {
...
@@ -2480,7 +2480,7 @@ public class CustomerController extends BaseController {
// 处理前台显示客户类型
// 处理前台显示客户类型
handleDisplayCustomerType
(
ce
);
handleDisplayCustomerType
(
ce
);
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
ce
.
setPhone
(
MobileUtil
.
hidePhone
(
ce
.
getPhone
()));
ce
.
setPhone
(
MobileUtil
.
hidePhone
(
ce
.
getPhone
()));
}
}
model
.
addAttribute
(
"entity"
,
cp
);
model
.
addAttribute
(
"entity"
,
cp
);
...
@@ -3043,7 +3043,7 @@ public class CustomerController extends BaseController {
...
@@ -3043,7 +3043,7 @@ public class CustomerController extends BaseController {
List
<
CustomerCallbackLogEntity
>
backLogList
=
customerCallbackLog
.
queryByConditions
(
cpMap
);
List
<
CustomerCallbackLogEntity
>
backLogList
=
customerCallbackLog
.
queryByConditions
(
cpMap
);
userEntity
.
setCity
(
cityCode
);
userEntity
.
setCity
(
cityCode
);
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
customerEntity
.
setPhone
(
MobileUtil
.
hidePhone
(
customerEntity
.
getPhone
()));
customerEntity
.
setPhone
(
MobileUtil
.
hidePhone
(
customerEntity
.
getPhone
()));
}
}
model
.
addAttribute
(
"action"
,
action
);
model
.
addAttribute
(
"action"
,
action
);
...
...
house365-hgs-web/src/main/java/com/house365/web/controller/CustomerManagementController.java
View file @
78d8fe11
...
@@ -903,7 +903,7 @@ public class CustomerManagementController extends BaseController {
...
@@ -903,7 +903,7 @@ public class CustomerManagementController extends BaseController {
/**
/**
* 用户无权查看完整手机号
* 用户无权查看完整手机号
*/
*/
if
(
userEntity
.
getShowMobile
()
!=
null
&&
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
customers
=
customers
.
stream
().
map
(
i
->
{
customers
=
customers
.
stream
().
map
(
i
->
{
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
return
i
;
return
i
;
...
@@ -1440,7 +1440,7 @@ public class CustomerManagementController extends BaseController {
...
@@ -1440,7 +1440,7 @@ public class CustomerManagementController extends BaseController {
MapListResponse
response
=
customer
.
successList
(
listRequest
,
userEntity
);
MapListResponse
response
=
customer
.
successList
(
listRequest
,
userEntity
);
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
...
...
house365-hgs-web/src/main/java/com/house365/web/controller/ExternalCustomerController.java
View file @
78d8fe11
...
@@ -188,7 +188,7 @@ public class ExternalCustomerController extends BaseController {
...
@@ -188,7 +188,7 @@ public class ExternalCustomerController extends BaseController {
}
}
}
}
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
entity
.
setPhone
(
MobileUtil
.
hidePhone
(
entity
.
getPhone
()));
entity
.
setPhone
(
MobileUtil
.
hidePhone
(
entity
.
getPhone
()));
}
}
...
@@ -272,7 +272,7 @@ public class ExternalCustomerController extends BaseController {
...
@@ -272,7 +272,7 @@ public class ExternalCustomerController extends BaseController {
MapListResponse
response
=
customerInterface
.
list
(
listRequest
);
MapListResponse
response
=
customerInterface
.
list
(
listRequest
);
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
...
...
house365-hgs-web/src/main/java/com/house365/web/controller/MarketCustomerController.java
View file @
78d8fe11
...
@@ -302,7 +302,7 @@ public class MarketCustomerController extends BaseController {
...
@@ -302,7 +302,7 @@ public class MarketCustomerController extends BaseController {
/**
/**
* 用户无权查看完整手机号
* 用户无权查看完整手机号
*/
*/
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
marketCustomers
=
marketCustomers
.
stream
().
map
(
i
->
{
marketCustomers
=
marketCustomers
.
stream
().
map
(
i
->
{
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
return
i
;
return
i
;
...
...
house365-hgs-web/src/main/java/com/house365/web/controller/PlatformManagementController.java
View file @
78d8fe11
...
@@ -423,7 +423,7 @@ public class PlatformManagementController extends BaseController {
...
@@ -423,7 +423,7 @@ public class PlatformManagementController extends BaseController {
/**
/**
* 用户无权查看完整手机号
* 用户无权查看完整手机号
*/
*/
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
customers
=
customers
.
stream
().
map
(
i
->
{
customers
=
customers
.
stream
().
map
(
i
->
{
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
return
i
;
return
i
;
...
@@ -723,7 +723,7 @@ public class PlatformManagementController extends BaseController {
...
@@ -723,7 +723,7 @@ public class PlatformManagementController extends BaseController {
model
.
addAttribute
(
"displayBackToSeaDate"
,
displayBackToSeaDate
);
model
.
addAttribute
(
"displayBackToSeaDate"
,
displayBackToSeaDate
);
}
}
userEntity
.
setCity
(
cityCode
);
userEntity
.
setCity
(
cityCode
);
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
customerEntity
.
setPhone
(
MobileUtil
.
hidePhone
(
customerEntity
.
getPhone
()));
customerEntity
.
setPhone
(
MobileUtil
.
hidePhone
(
customerEntity
.
getPhone
()));
}
}
...
...
house365-hgs-web/src/main/java/com/house365/web/controller/PropertyReportController.java
View file @
78d8fe11
...
@@ -79,7 +79,7 @@ public class PropertyReportController extends BaseController {
...
@@ -79,7 +79,7 @@ public class PropertyReportController extends BaseController {
MapListResponse
response
=
reportInterface
.
list
(
listRequest
);
MapListResponse
response
=
reportInterface
.
list
(
listRequest
);
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
...
@@ -105,7 +105,7 @@ public class PropertyReportController extends BaseController {
...
@@ -105,7 +105,7 @@ public class PropertyReportController extends BaseController {
public
String
toAdd
(
Model
model
,
@PathVariable
int
customerId
,
HttpServletRequest
request
)
{
public
String
toAdd
(
Model
model
,
@PathVariable
int
customerId
,
HttpServletRequest
request
)
{
UserEntity
userEntity
=
(
UserEntity
)
request
.
getSession
().
getAttribute
(
SessionConstants
.
THREAD_USER_KEY
);
UserEntity
userEntity
=
(
UserEntity
)
request
.
getSession
().
getAttribute
(
SessionConstants
.
THREAD_USER_KEY
);
CustomerEntity
entity
=
customer
.
queryById
(
customerId
);
CustomerEntity
entity
=
customer
.
queryById
(
customerId
);
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
entity
.
setPhone
(
MobileUtil
.
hidePhone
(
entity
.
getPhone
()));
entity
.
setPhone
(
MobileUtil
.
hidePhone
(
entity
.
getPhone
()));
}
}
model
.
addAttribute
(
"data"
,
entity
);
model
.
addAttribute
(
"data"
,
entity
);
...
@@ -195,7 +195,7 @@ public class PropertyReportController extends BaseController {
...
@@ -195,7 +195,7 @@ public class PropertyReportController extends BaseController {
report
.
setChannel
(
channel
);
report
.
setChannel
(
channel
);
model
.
addAttribute
(
"report"
,
report
);
model
.
addAttribute
(
"report"
,
report
);
}
}
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
entity
.
setPhone
(
MobileUtil
.
hidePhone
(
entity
.
getPhone
()));
entity
.
setPhone
(
MobileUtil
.
hidePhone
(
entity
.
getPhone
()));
}
}
model
.
addAttribute
(
"data"
,
entity
);
model
.
addAttribute
(
"data"
,
entity
);
...
...
house365-hgs-web/src/main/java/com/house365/web/controller/StatisticController.java
View file @
78d8fe11
...
@@ -3554,7 +3554,7 @@ public class StatisticController extends BaseController {
...
@@ -3554,7 +3554,7 @@ public class StatisticController extends BaseController {
listRequest
.
setSearchParams
(
searchParams
);
listRequest
.
setSearchParams
(
searchParams
);
MapListResponse
response
=
customerProject
.
list
(
listRequest
,
city
,
startTime
,
endTime
);
MapListResponse
response
=
customerProject
.
list
(
listRequest
,
city
,
startTime
,
endTime
);
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
List
<
Map
<
String
,
Object
>>
objectList
=
response
.
getObjectList
();
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
for
(
Map
<
String
,
Object
>
i
:
objectList
)
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
if
(
i
!=
null
&&
i
.
containsKey
(
"phone"
))
{
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
i
.
replace
(
"phone"
,
MobileUtil
.
hidePhone
(
String
.
valueOf
(
i
.
get
(
"phone"
))));
...
...
house365-hgs-ws/src/main/java/com/house365/ws/interfaces/rest/CustomerWechat.java
View file @
78d8fe11
...
@@ -1200,7 +1200,7 @@ public class CustomerWechat implements ICustomerWechat {
...
@@ -1200,7 +1200,7 @@ public class CustomerWechat implements ICustomerWechat {
}
}
House365RestObject
object
=
new
House365RestObject
();
House365RestObject
object
=
new
House365RestObject
();
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
customers
=
customers
.
stream
().
map
(
i
->
{
customers
=
customers
.
stream
().
map
(
i
->
{
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
return
i
;
return
i
;
...
@@ -1546,7 +1546,7 @@ public class CustomerWechat implements ICustomerWechat {
...
@@ -1546,7 +1546,7 @@ public class CustomerWechat implements ICustomerWechat {
}
}
House365RestObject
object
=
new
House365RestObject
();
House365RestObject
object
=
new
House365RestObject
();
if
(
userEntity
.
getShowMobile
()
!=
1
)
{
if
(
userEntity
.
getShowMobile
()
==
null
||
userEntity
.
getShowMobile
()
!=
1
)
{
customerVOList
=
customerVOList
.
stream
().
map
(
i
->
{
customerVOList
=
customerVOList
.
stream
().
map
(
i
->
{
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
i
.
setPhone
(
MobileUtil
.
hidePhone
(
i
.
getPhone
()));
return
i
;
return
i
;
...
...
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