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
88a757b6
Commit
88a757b6
authored
Mar 30, 2021
by
jay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
平台客户需求提交
parent
7b037749
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
213 additions
and
49 deletions
+213
-49
PlatformManagementController.java
...house365/web/controller/PlatformManagementController.java
+74
-20
myPlatformCustomer.jsp
...INF/views/platformmanagement/pages/myPlatformCustomer.jsp
+69
-24
ICustomer.java
...ain/java/com/house365/ws/interfaces/server/ICustomer.java
+6
-3
CustomerImpl.java
...in/java/com/house365/ws/interfaces/impl/CustomerImpl.java
+19
-1
GetOnlineLogImpl.java
...ava/com/house365/ws/interfaces/rest/GetOnlineLogImpl.java
+0
-1
Customer.xml
...hgs-ws/src/main/resources/development/ibatis/Customer.xml
+5
-0
DepartMapper.xml
...s/src/main/resources/development/mybatis/DepartMapper.xml
+4
-0
UserMapper.xml
...-ws/src/main/resources/development/mybatis/UserMapper.xml
+6
-0
Customer.xml
...-hgs-ws/src/main/resources/production/ibatis/Customer.xml
+5
-0
DepartMapper.xml
...ws/src/main/resources/production/mybatis/DepartMapper.xml
+4
-0
UserMapper.xml
...s-ws/src/main/resources/production/mybatis/UserMapper.xml
+6
-0
Customer.xml
house365-hgs-ws/src/main/resources/test/ibatis/Customer.xml
+5
-0
DepartMapper.xml
...5-hgs-ws/src/main/resources/test/mybatis/DepartMapper.xml
+4
-0
UserMapper.xml
...365-hgs-ws/src/main/resources/test/mybatis/UserMapper.xml
+6
-0
No files found.
house365-hgs-web/src/main/java/com/house365/web/controller/PlatformManagementController.java
View file @
88a757b6
...
@@ -9,6 +9,7 @@ import com.house365.web.system.controller.BaseController;
...
@@ -9,6 +9,7 @@ import com.house365.web.system.controller.BaseController;
import
com.house365.web.util.*
;
import
com.house365.web.util.*
;
import
com.house365.ws.beans.request.*
;
import
com.house365.ws.beans.request.*
;
import
com.house365.ws.beans.response.*
;
import
com.house365.ws.beans.response.*
;
import
com.house365.ws.beans.util.HResult
;
import
com.house365.ws.interfaces.server.*
;
import
com.house365.ws.interfaces.server.*
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -182,14 +183,47 @@ public class PlatformManagementController extends BaseController {
...
@@ -182,14 +183,47 @@ public class PlatformManagementController extends BaseController {
searchParams
.
put
(
"EQ_platformCreateSource"
,
"PT"
);
searchParams
.
put
(
"EQ_platformCreateSource"
,
"PT"
);
//过滤公海、跟进中
//过滤公海、跟进中
String
eqPlatProjectStatus
=
String
.
valueOf
(
searchParams
.
get
(
"EQ_platProjectStatus"
));
String
eqPlatProjectStatus
=
String
.
valueOf
(
searchParams
.
get
(
"EQ_platProjectStatus"
));
if
(
eqPlatProjectStatus
!=
null
&&
"7"
.
equals
(
eqPlatProjectStatus
))
{
//跟进中
//跟进中
if
(
eqPlatProjectStatus
!=
null
&&
"7"
.
equals
(
eqPlatProjectStatus
))
{
searchParams
.
remove
(
"EQ_platProjectStatus"
);
searchParams
.
remove
(
"EQ_platProjectStatus"
);
searchParams
.
put
(
"EQ_platProjectStatus7"
,
"7"
);
searchParams
.
put
(
"EQ_platProjectStatus7"
,
"7"
);
}
}
if
(
eqPlatProjectStatus
!=
null
&&
"8"
.
equals
(
eqPlatProjectStatus
))
{
//回公海
//回公海
if
(
eqPlatProjectStatus
!=
null
&&
"8"
.
equals
(
eqPlatProjectStatus
))
{
searchParams
.
remove
(
"EQ_platProjectStatus"
);
searchParams
.
remove
(
"EQ_platProjectStatus"
);
searchParams
.
put
(
"EQ_platManager"
,
"8"
);
searchParams
.
put
(
"EQ_platManager"
,
"8"
);
}
}
//添加部门查询
if
(
searchParams
.
get
(
"EQ_dept"
)
!=
null
)
{
String
dept
=
searchParams
.
get
(
"EQ_dept"
).
toString
();
//查询部门用户
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
dept
))
{
Map
<
String
,
Object
>
deptMap
=
new
HashMap
<>(
5
);
if
(
"1"
.
equals
(
dept
))
{
deptMap
.
put
(
"likeName"
,
"直销一"
);
}
else
if
(
"2"
.
equals
(
dept
))
{
deptMap
.
put
(
"likeName"
,
"直销二"
);
}
else
if
(
"3"
.
equals
(
dept
))
{
deptMap
.
put
(
"likeName"
,
"直销三"
);
}
List
<
DepartmentEntity
>
list
=
department
.
queryByCondition
(
deptMap
);
StringBuilder
builder
=
new
StringBuilder
();
List
<
Integer
>
deptList
=
new
ArrayList
<>();
if
(
org
.
apache
.
commons
.
collections4
.
CollectionUtils
.
isNotEmpty
(
list
))
{
list
.
forEach
(
l
->
deptList
.
add
(
l
.
getId
()));
}
Map
<
String
,
Object
>
userMap
=
new
HashMap
<>(
5
);
userMap
.
put
(
"deptIdList"
,
deptList
);
List
<
UserEntity
>
userList
=
iuser
.
queryByConditions
(
userMap
);
if
(
org
.
apache
.
commons
.
collections4
.
CollectionUtils
.
isNotEmpty
(
userList
))
{
userList
.
forEach
(
u
->
builder
.
append
(
u
.
getId
()).
append
(
","
));
String
deptManagerId
=
builder
.
toString
();
deptManagerId
=
deptManagerId
.
substring
(
0
,
deptManagerId
.
lastIndexOf
(
","
));
searchParams
.
put
(
"EQ_deptManagerId"
,
deptManagerId
);
}
}
}
CustomerListRequest
listRequest
=
new
CustomerListRequest
();
CustomerListRequest
listRequest
=
new
CustomerListRequest
();
listRequest
.
setPaging
(
page
);
listRequest
.
setPaging
(
page
);
listRequest
.
setSearchParams
(
searchParams
);
listRequest
.
setSearchParams
(
searchParams
);
...
@@ -228,7 +262,8 @@ public class PlatformManagementController extends BaseController {
...
@@ -228,7 +262,8 @@ public class PlatformManagementController extends BaseController {
//先去查询该客户的所有id
//先去查询该客户的所有id
idList
=
customer
.
getCustomerIds
(
customerEntity
.
getId
(),
cityCode
);
idList
=
customer
.
getCustomerIds
(
customerEntity
.
getId
(),
cityCode
);
}
else
{
}
else
{
idList
.
add
(
customerEntity
);
//平台客户回公海
//平台客户回公海
idList
.
add
(
customerEntity
);
}
}
//再获取所有id的回访记录
//再获取所有id的回访记录
List
<
Integer
>
ids
=
new
ArrayList
<>();
List
<
Integer
>
ids
=
new
ArrayList
<>();
...
@@ -427,7 +462,6 @@ public class PlatformManagementController extends BaseController {
...
@@ -427,7 +462,6 @@ public class PlatformManagementController extends BaseController {
managers
=
iuser
.
queryRuleManagers
(
csMap
);
managers
=
iuser
.
queryRuleManagers
(
csMap
);
}
}
model
.
addAttribute
(
"managers"
,
managers
);
model
.
addAttribute
(
"managers"
,
managers
);
//活动来源
//活动来源
model
.
addAttribute
(
"sources"
,
cslrs
.
getObjectList
());
model
.
addAttribute
(
"sources"
,
cslrs
.
getObjectList
());
...
@@ -458,15 +492,14 @@ public class PlatformManagementController extends BaseController {
...
@@ -458,15 +492,14 @@ public class PlatformManagementController extends BaseController {
DepartmentResponse
departmentResponse
=
department
.
getDepartmentById
(
Integer
.
valueOf
(
cityId
));
DepartmentResponse
departmentResponse
=
department
.
getDepartmentById
(
Integer
.
valueOf
(
cityId
));
DepartmentEntity
city
=
departmentResponse
.
getEntity
();
DepartmentEntity
city
=
departmentResponse
.
getEntity
();
CustomerEntity
customerEntity
=
vo
.
getEntity
();
CustomerEntity
customerEntity
=
vo
.
getEntity
();
Date
new
d
ate
=
new
Date
();
Date
new
D
ate
=
new
Date
();
CustomerRequest
cr
=
new
CustomerRequest
();
CustomerRequest
cr
=
new
CustomerRequest
();
customerEntity
.
setCreateTime
(
new
d
ate
);
customerEntity
.
setCreateTime
(
new
D
ate
);
if
(!
Strings
.
isNullOrEmpty
(
customerEntity
.
getRemark
()))
{
if
(!
Strings
.
isNullOrEmpty
(
customerEntity
.
getRemark
()))
{
customerEntity
.
setLastCallTime
(
new
d
ate
);
customerEntity
.
setLastCallTime
(
new
D
ate
);
}
}
customerEntity
.
setUpdateTime
(
new
d
ate
);
customerEntity
.
setUpdateTime
(
new
D
ate
);
customerEntity
.
setCreater
(
String
.
valueOf
(
userEntity
.
getId
()));
customerEntity
.
setCreater
(
String
.
valueOf
(
userEntity
.
getId
()));
// customerEntity.setManagerId();
customerEntity
.
setIsRecycled
(
0
);
customerEntity
.
setIsRecycled
(
0
);
customerEntity
.
setManagerName
(
selectedManager
);
customerEntity
.
setManagerName
(
selectedManager
);
customerEntity
.
setCityName
(
city
.
getName
());
customerEntity
.
setCityName
(
city
.
getName
());
...
@@ -477,8 +510,9 @@ public class PlatformManagementController extends BaseController {
...
@@ -477,8 +510,9 @@ public class PlatformManagementController extends BaseController {
customerEntity
.
setCreateSource
(
"PT"
);
customerEntity
.
setCreateSource
(
"PT"
);
//修改客户表默认值null改为11
//修改客户表默认值null改为11
customerEntity
.
setStatus
(
Constant
.
statu
);
customerEntity
.
setStatus
(
Constant
.
statu
);
customerEntity
.
setBindTime
(
newdate
);
customerEntity
.
setBindTime
(
newDate
);
customerEntity
.
setCustomerSourceType
(
8
);
//8:平台导入类型
//8:平台导入类型
customerEntity
.
setCustomerSourceType
(
8
);
CustomerSourceEntity
cse
=
customerSource
.
getCustomerSourceById
(
customerEntity
.
getActSourceId
()).
getEntity
();
CustomerSourceEntity
cse
=
customerSource
.
getCustomerSourceById
(
customerEntity
.
getActSourceId
()).
getEntity
();
customerEntity
.
setActSource
(
cse
==
null
?
""
:
cse
.
getSourceName
());
customerEntity
.
setActSource
(
cse
==
null
?
""
:
cse
.
getSourceName
());
cr
.
setEntity
(
customerEntity
);
cr
.
setEntity
(
customerEntity
);
...
@@ -500,18 +534,18 @@ public class PlatformManagementController extends BaseController {
...
@@ -500,18 +534,18 @@ public class PlatformManagementController extends BaseController {
}
else
{
}
else
{
mergeCustomerUtil
.
checkMergeCustomer
(
customerEntity
,
oldentity
,
userEntity
.
getId
(),
userEntity
.
getRealName
());
mergeCustomerUtil
.
checkMergeCustomer
(
customerEntity
,
oldentity
,
userEntity
.
getId
(),
userEntity
.
getRealName
());
// 意向等级、跟踪状态更新
// 意向等级、跟踪状态更新
oldentity
.
setUpdateTime
(
new
d
ate
);
oldentity
.
setUpdateTime
(
new
D
ate
);
oldentity
.
setCreateTime
(
new
d
ate
);
oldentity
.
setCreateTime
(
new
D
ate
);
oldentity
.
setBindTime
(
new
d
ate
);
oldentity
.
setBindTime
(
new
D
ate
);
if
(!
Strings
.
isNullOrEmpty
(
customerEntity
.
getRemark
()))
{
if
(!
Strings
.
isNullOrEmpty
(
customerEntity
.
getRemark
()))
{
oldentity
.
setLastCallTime
(
new
d
ate
);
oldentity
.
setLastCallTime
(
new
D
ate
);
}
}
oldentity
.
setUpdater
(
String
.
valueOf
(
userEntity
.
getId
()));
oldentity
.
setUpdater
(
String
.
valueOf
(
userEntity
.
getId
()));
customerEntity
.
setId
(
oldentity
.
getId
());
customerEntity
.
setId
(
oldentity
.
getId
());
customer
.
updateCustomerMerge
(
oldentity
);
customer
.
updateCustomerMerge
(
oldentity
);
}
}
if
(!
Strings
.
isNullOrEmpty
(
customerEntity
.
getRemark
()))
{
if
(!
Strings
.
isNullOrEmpty
(
customerEntity
.
getRemark
()))
{
addCallBack
(
userEntity
,
String
.
valueOf
(
newCustomerEntity
.
getId
()),
customerEntity
.
getRemark
(),
new
d
ate
);
addCallBack
(
userEntity
,
String
.
valueOf
(
newCustomerEntity
.
getId
()),
customerEntity
.
getRemark
(),
new
D
ate
);
}
}
model
.
addAttribute
(
"vo"
,
vo
);
model
.
addAttribute
(
"vo"
,
vo
);
...
@@ -527,7 +561,7 @@ public class PlatformManagementController extends BaseController {
...
@@ -527,7 +561,7 @@ public class PlatformManagementController extends BaseController {
* @param newdate
* @param newdate
* @return
* @return
*/
*/
private
CustomerCallbackLogResponse
addCallBack
(
UserEntity
userEntity
,
String
customerId
,
String
content
,
Date
newdate
)
{
private
void
addCallBack
(
UserEntity
userEntity
,
String
customerId
,
String
content
,
Date
newdate
)
{
CustomerCallbackLogEntity
customerCallbackLogEntity
=
new
CustomerCallbackLogEntity
();
CustomerCallbackLogEntity
customerCallbackLogEntity
=
new
CustomerCallbackLogEntity
();
customerCallbackLogEntity
.
setCustomerId
(
Integer
.
valueOf
(
customerId
));
customerCallbackLogEntity
.
setCustomerId
(
Integer
.
valueOf
(
customerId
));
customerCallbackLogEntity
.
setContent
(
content
);
customerCallbackLogEntity
.
setContent
(
content
);
...
@@ -538,8 +572,7 @@ public class PlatformManagementController extends BaseController {
...
@@ -538,8 +572,7 @@ public class PlatformManagementController extends BaseController {
CustomerCallbackLogRequest
callRequest
=
new
CustomerCallbackLogRequest
();
CustomerCallbackLogRequest
callRequest
=
new
CustomerCallbackLogRequest
();
callRequest
.
setEntity
(
customerCallbackLogEntity
);
callRequest
.
setEntity
(
customerCallbackLogEntity
);
CustomerCallbackLogResponse
response
=
customerCallbackLog
.
addCustomerCallbackLog
(
callRequest
);
customerCallbackLog
.
addCustomerCallbackLog
(
callRequest
);
return
response
;
}
}
/**
/**
...
@@ -642,7 +675,7 @@ public class PlatformManagementController extends BaseController {
...
@@ -642,7 +675,7 @@ public class PlatformManagementController extends BaseController {
model
.
addAttribute
(
"backToSeaDate"
,
backToSeaDate
);
model
.
addAttribute
(
"backToSeaDate"
,
backToSeaDate
);
//查询客户日志
//查询客户日志
Map
<
String
,
Object
>
map
=
new
HashMap
<>(
10
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>(
10
);
List
<
CustomerLogEntity
>
list
=
new
ArrayList
<>()
;
List
<
CustomerLogEntity
>
list
;
if
(
StringUtils
.
isEmpty
(
managerId
))
{
if
(
StringUtils
.
isEmpty
(
managerId
))
{
map
.
put
(
"relateId"
,
customerEntity
.
getId
());
map
.
put
(
"relateId"
,
customerEntity
.
getId
());
list
=
logInterface
.
queryByConditions
(
map
);
list
=
logInterface
.
queryByConditions
(
map
);
...
@@ -910,4 +943,25 @@ public class PlatformManagementController extends BaseController {
...
@@ -910,4 +943,25 @@ public class PlatformManagementController extends BaseController {
return
"success"
;
return
"success"
;
}
}
/**
* 逻辑删除平台客户
*
* @param id 客户id
* @return
*/
@RequestMapping
(
value
=
"deleteById/{id}"
)
@ResponseBody
public
HResult
deleteById
(
@PathVariable
int
id
,
HttpServletRequest
request
)
{
HResult
result
=
new
HResult
();
try
{
UserEntity
userEntity
=
(
UserEntity
)
request
.
getSession
().
getAttribute
(
SessionConstants
.
THREAD_USER_KEY
);
result
=
customer
.
deleteById
(
id
,
userEntity
.
getId
(),
userEntity
.
getRealName
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
result
.
setStatus
(
500
);
result
.
setErrorMessage
(
"删除失败"
);
}
return
result
;
}
}
}
house365-hgs-web/src/main/webapp/WEB-INF/views/platformmanagement/pages/myPlatformCustomer.jsp
View file @
88a757b6
...
@@ -220,7 +220,8 @@
...
@@ -220,7 +220,8 @@
padding
:
0
;
padding
:
0
;
width
:
33%
;
width
:
33%
;
}
}
.mangerId_avar2
{
.mangerId_avar2
{
overflow
:
hidden
;
overflow
:
hidden
;
width
:
75px
;
width
:
75px
;
height
:
16px
;
height
:
16px
;
...
@@ -347,13 +348,17 @@
...
@@ -347,13 +348,17 @@
</option>
</option>
</select>
</select>
<br/>
<br/>
客户姓名:
<input
style=
"width: 8rem;border: 1px solid #d5d5d5;"
type=
"text"
id=
"search_LIKE_name"
name=
"search_LIKE_name"
value=
"${param['search_LIKE_name']}"
客户姓名:
<input
style=
"width: 8rem;border: 1px solid #d5d5d5;"
type=
"text"
id=
"search_LIKE_name"
name=
"search_LIKE_name"
value=
"${param['search_LIKE_name']}"
class=
"m-wrap small"
placeholder=
"客户姓名"
>
class=
"m-wrap small"
placeholder=
"客户姓名"
>
客户手机:
<input
style=
"width: 8rem;border: 1px solid #d5d5d5;"
type=
"text"
id=
"search_LIKE_phone"
name=
"search_LIKE_phone"
value=
"${param['search_LIKE_phone']}"
客户手机:
<input
style=
"width: 8rem;border: 1px solid #d5d5d5;"
type=
"text"
id=
"search_LIKE_phone"
name=
"search_LIKE_phone"
value=
"${param['search_LIKE_phone']}"
class=
"m-wrap small"
placeholder=
"客户手机"
>
class=
"m-wrap small"
placeholder=
"客户手机"
>
置业顾问:
<input
style=
"width: 8rem;border: 1px solid #d5d5d5;"
type=
"text"
id=
"search_LIKE_managerName"
name=
"search_LIKE_managerName"
value=
"${param['search_LIKE_managerName']}"
置业顾问:
<input
style=
"width: 8rem;border: 1px solid #d5d5d5;"
type=
"text"
id=
"search_LIKE_managerName"
name=
"search_LIKE_managerName"
value=
"${param['search_LIKE_managerName']}"
class=
"m-wrap small"
placeholder=
"置业顾问"
>
class=
"m-wrap small"
placeholder=
"置业顾问"
>
回访记录:
<input
type=
"text"
id=
"search_LIKE_callbackLog"
style=
"border: 1px solid #d5d5d5;"
name=
"search_LIKE_callbackLog"
value=
"${param['search_LIKE_callbackLog']}"
回访记录:
<input
type=
"text"
id=
"search_LIKE_callbackLog"
style=
"border: 1px solid #d5d5d5;"
name=
"search_LIKE_callbackLog"
value=
"${param['search_LIKE_callbackLog']}"
class=
"m-wrap small"
placeholder=
"回访记录"
>
class=
"m-wrap small"
placeholder=
"回访记录"
>
...
@@ -394,6 +399,24 @@
...
@@ -394,6 +399,24 @@
退房
退房
</option>
</option>
</select>
</select>
部门:
<select
style=
"width: 6rem"
name=
"search_EQ_dept"
id=
"search_EQ_dept"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
<
c:if
test=
"${'1' eq param['search_EQ_dept']}"
>
selected="selected"
</c:if>
>
直销一部
</option>
<option
value=
"2"
<
c:if
test=
"${'2' eq param['search_EQ_dept']}"
>
selected="selected"
</c:if>
>
直销二部
</option>
<option
value=
"3"
<
c:if
test=
"${'3' eq param['search_EQ_dept']}"
>
selected="selected"
</c:if>
>
直销三部
</option>
</select>
<
%
--
</
c:if
>
--%>
<
%
--
</
c:if
>
--%>
<div
style=
"float: right"
>
<div
style=
"float: right"
>
...
@@ -452,7 +475,7 @@
...
@@ -452,7 +475,7 @@
</div>
</div>
</div>
</div>
</form>
</form>
<table
class=
"table table-advance mine"
>
<table
class=
"table table-advance mine"
>
<tbody>
<tbody>
<c:forEach
items=
"${customers}"
var=
"customer"
varStatus=
"vs"
>
<c:forEach
items=
"${customers}"
var=
"customer"
varStatus=
"vs"
>
<tr
id=
"customerId_${customer.id}"
class=
"header expand
<tr
id=
"customerId_${customer.id}"
class=
"header expand
...
@@ -487,23 +510,20 @@
...
@@ -487,23 +510,20 @@
<c:if
test=
"${null eq customer.phone || '' eq customer.phone}"
>
<c:if
test=
"${null eq customer.phone || '' eq customer.phone}"
>
</c:if>
</c:if>
<
%
--
<
c:if
test=
"${hasPhone == 1}"
>
--%>
<
%
--
<
span
id=
"star"
class=
"icon-phone-sign"
--
%
>
<
%
--onclick=
"callCustomer('${customer.phone}','${customer.markedLabelId}','${customer.managerId}', '${customer.id}','${customer.buyIntention}','0','${customer.isPeer}', '${customer.starCustomer}')"
></span>
--%>
<
%
--
</
c:if
>
--%>
</div>
</div>
<div
class=
"mangerId_person"
>
<div
class=
"mangerId_person"
>
<div
class=
"mangerId_avar2"
style=
"float: inherit"
>
<div
class=
"mangerId_avar2"
style=
"float: inherit"
>
<c:out
value=
"${customer.creater}"
/>
<c:out
value=
"${customer.creater}"
/>
</div>
</div>
<div
class=
"mangerId_avar"
style=
"float: inherit;display: flex;width: 80%;margin-top: 5px;justify-content: space-between;"
>
<div
class=
"mangerId_avar"
style=
"float: inherit;display: flex;width: 80%;margin-top: 5px;justify-content: space-between;"
>
<c:if
test=
"${null ne customer.managerName && '' ne customer.managerName}"
>
<c:if
test=
"${null ne customer.managerName && '' ne customer.managerName}"
>
<c:out
value=
"${customer.managerName}"
/>
<c:out
value=
"${customer.managerName}"
/>
</c:if>
</c:if>
<c:if
test=
"${null eq customer.managerName || '' eq customer.managerName}"
>
<c:if
test=
"${null eq customer.managerName || '' eq customer.managerName}"
>
</c:if>
</c:if>
<div
class=
"mangerId_up"
>
<div
class=
"mangerId_up"
>
<c:choose>
<c:choose>
<c:when
test=
"${customer.buyIntention eq '1'}"
>
<c:when
test=
"${customer.buyIntention eq '1'}"
>
A
A
...
@@ -573,7 +593,8 @@
...
@@ -573,7 +593,8 @@
</c:forEach>
</c:forEach>
</div>
</div>
</div>
</div>
<div
class=
"mangerlist__record"
onclick=
"showCustomerCallbackLogs('${customer.id}', '${customer.managerId}')"
>
<div
class=
"mangerlist__record"
onclick=
"showCustomerCallbackLogs('${customer.id}', '${customer.managerId}')"
>
查看回访记录
查看回访记录
</div>
</div>
</c:if>
</c:if>
...
@@ -588,12 +609,8 @@
...
@@ -588,12 +609,8 @@
</div>
</div>
</div>
</div>
</c:if>
</c:if>
<
%
--
<
div
class=
"mangerItem__border"
></div>
--%>
</td>
</td>
<
%
--
<
td
class=
"mangerItem mangerCollect ${customer.star}"
--
%
>
<
%
--onclick=
"toggleCollect(this,'${customer.id}', '${customer.starUserId}', '${customer.star}', '${customer.managerId}')"
>
--%>
<
%
--
<
div
class=
"mangerItem__border"
></div>
--%>
<
%
--
</
td
>
--%>
<td
class=
"mangerItem mangerOperate"
style=
"display: table;padding: 0;overflow:visible;"
>
<td
class=
"mangerItem mangerOperate"
style=
"display: table;padding: 0;overflow:visible;"
>
<div
class=
"mangerOperate__time"
style=
"right:160px;width:150px;"
>
<div
class=
"mangerOperate__time"
style=
"right:160px;width:150px;"
>
<c:if
test=
"${null ne customer.bindTime && '' ne customer.bindTime}"
>
<c:if
test=
"${null ne customer.bindTime && '' ne customer.bindTime}"
>
...
@@ -615,7 +632,8 @@
...
@@ -615,7 +632,8 @@
</div>
</div>
<div
style=
"display: table-cell;vertical-align: middle"
>
<div
style=
"display: table-cell;vertical-align: middle"
>
<c:if
test=
"${customer.hasCustomerProjects}"
>
<c:if
test=
"${customer.hasCustomerProjects}"
>
<div
class=
"mangerOperate__record"
onclick=
"showCustomerProjects('${customer.id}', '${customer.managerId}')"
<div
class=
"mangerOperate__record"
onclick=
"showCustomerProjects('${customer.id}', '${customer.managerId}')"
style=
"position: relative;"
>
style=
"position: relative;"
>
约看记录
约看记录
<c:if
test=
"${customer.hasNewCustomerProjects}"
>
<c:if
test=
"${customer.hasNewCustomerProjects}"
>
...
@@ -629,17 +647,22 @@
...
@@ -629,17 +647,22 @@
约看记录
约看记录
</div>
</div>
</c:if>
</c:if>
<div
class=
"mangerOperate__detail"
onclick=
"customerInfo(${customer.id}, '${customer.managerId}', ${customer.phone})"
>
查看详情
</div>
<div
class=
"mangerOperate__detail"
onclick=
"customerInfo(${customer.id}, '${customer.managerId}', ${customer.phone})"
>
查看详情
</div>
<
%
--
<
div
class=
"mangerOperate__detail"
--
%
>
<
%
--onclick=
"deleteById(${customer.id})"
>
删除--%>
<
%
--
</
div
>
--%>
</div>
</div>
</td>
</td>
</tr>
</tr>
</c:forEach>
</c:forEach>
</tbody>
</tbody>
</table>
</table>
<div
class=
"row-fluid"
style=
"position: relative"
>
<div
class=
"row-fluid"
style=
"position: relative"
>
<house365:newPagination
page=
"${page}"
/>
<house365:newPagination
page=
"${page}"
/>
</div>
</div>
<script
type=
"text/html"
id=
"customerProjectsTemplate"
>
<script
type=
"text/html"
id=
"customerProjectsTemplate"
>
...
@@ -793,7 +816,7 @@
...
@@ -793,7 +816,7 @@
}
}
}
}
return
fmt
;
return
fmt
;
}
}
;
function
getCRM
(
customerId
)
{
function
getCRM
(
customerId
)
{
$
.
ajax
({
$
.
ajax
({
...
@@ -819,6 +842,28 @@
...
@@ -819,6 +842,28 @@
window
.
open
(
"/house365-hgs-web/platformmanagement/customerInfo?customerId="
+
id
+
"&managerId="
+
managerId
+
"&phone="
+
phone
,
"_blank"
);
window
.
open
(
"/house365-hgs-web/platformmanagement/customerInfo?customerId="
+
id
+
"&managerId="
+
managerId
+
"&phone="
+
phone
,
"_blank"
);
}
}
function
deleteById
(
customerId
)
{
House365Util
.
createModal
(
"删除客户"
,
"删除后将无法恢复,请确认是否继续?"
,
function
()
{
var
url
=
"${ctx}/platformmanagement/deleteById/"
+
customerId
;
$
.
ajax
({
url
:
url
,
type
:
'post'
,
contentType
:
'application/json'
,
data
:
''
,
dataType
:
'json'
,
cache
:
false
,
success
:
function
(
result
)
{
if
(
result
.
status
==
0
)
{
alert
(
"删除成功"
);
window
.
location
.
reload
();
}
else
{
alert
(
result
.
errorMessage
);
}
}
});
});
}
function
showCustomerCallbackLogs
(
_customerId
,
managerId
)
{
function
showCustomerCallbackLogs
(
_customerId
,
managerId
)
{
setCookie
(
"lastChoseCustomerId"
,
_customerId
);
setCookie
(
"lastChoseCustomerId"
,
_customerId
);
$
.
ajax
({
$
.
ajax
({
...
...
house365-hgs-ws-interfaces/src/main/java/com/house365/ws/interfaces/server/ICustomer.java
View file @
88a757b6
...
@@ -23,6 +23,7 @@ import com.house365.ws.beans.request.MapListRequest;
...
@@ -23,6 +23,7 @@ import com.house365.ws.beans.request.MapListRequest;
import
com.house365.ws.beans.response.CustomerListResponse
;
import
com.house365.ws.beans.response.CustomerListResponse
;
import
com.house365.ws.beans.response.CustomerResponse
;
import
com.house365.ws.beans.response.CustomerResponse
;
import
com.house365.ws.beans.response.MapListResponse
;
import
com.house365.ws.beans.response.MapListResponse
;
import
com.house365.ws.beans.util.HResult
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -241,9 +242,9 @@ public interface ICustomer extends IService {
...
@@ -241,9 +242,9 @@ public interface ICustomer extends IService {
void
updateOldCustomerStar
(
int
customerId
,
int
starCustomer
);
void
updateOldCustomerStar
(
int
customerId
,
int
starCustomer
);
int
queryCount
(
Map
<
String
,
Object
>
map
);
int
queryCount
(
Map
<
String
,
Object
>
map
);
MapListResponse
successList
(
MapListRequest
listRequest
,
UserEntity
userEntity
);
MapListResponse
successList
(
MapListRequest
listRequest
,
UserEntity
userEntity
);
Integer
countCustomer
(
Map
<
String
,
Object
>
map
);
Integer
countCustomer
(
Map
<
String
,
Object
>
map
);
...
@@ -261,6 +262,8 @@ public interface ICustomer extends IService {
...
@@ -261,6 +262,8 @@ public interface ICustomer extends IService {
List
<
CustomerEntity
>
getAllCustomer4
(
Map
<
String
,
Object
>
map
);
List
<
CustomerEntity
>
getAllCustomer4
(
Map
<
String
,
Object
>
map
);
MapListResponse
seaList
(
MapListRequest
listRequest
,
String
type
);
MapListResponse
seaList
(
MapListRequest
listRequest
,
String
type
);
HResult
deleteById
(
int
id
,
int
userId
,
String
userName
);
}
}
house365-hgs-ws/src/main/java/com/house365/ws/interfaces/impl/CustomerImpl.java
View file @
88a757b6
...
@@ -37,6 +37,7 @@ import com.house365.ws.beans.request.MapListRequest;
...
@@ -37,6 +37,7 @@ import com.house365.ws.beans.request.MapListRequest;
import
com.house365.ws.beans.response.CustomerListResponse
;
import
com.house365.ws.beans.response.CustomerListResponse
;
import
com.house365.ws.beans.response.CustomerResponse
;
import
com.house365.ws.beans.response.CustomerResponse
;
import
com.house365.ws.beans.response.MapListResponse
;
import
com.house365.ws.beans.response.MapListResponse
;
import
com.house365.ws.beans.util.HResult
;
import
com.house365.ws.cached.RedisUtilsInterface
;
import
com.house365.ws.cached.RedisUtilsInterface
;
import
com.house365.ws.dao.mapper.*
;
import
com.house365.ws.dao.mapper.*
;
import
com.house365.ws.interfaces.server.ICustomer
;
import
com.house365.ws.interfaces.server.ICustomer
;
...
@@ -142,6 +143,8 @@ public class CustomerImpl implements ICustomer {
...
@@ -142,6 +143,8 @@ public class CustomerImpl implements ICustomer {
private
CloudCustomerMapper
cloudCustomerMapper
;
private
CloudCustomerMapper
cloudCustomerMapper
;
@Autowired
@Autowired
private
UserMapper
userMapper
;
private
UserMapper
userMapper
;
@Autowired
private
DepartMapper
departMapper
;
@Value
(
"${crm.sync.url}"
)
@Value
(
"${crm.sync.url}"
)
...
@@ -392,7 +395,6 @@ public class CustomerImpl implements ICustomer {
...
@@ -392,7 +395,6 @@ public class CustomerImpl implements ICustomer {
if
(
inOtherUser
.
length
()
>
0
)
{
if
(
inOtherUser
.
length
()
>
0
)
{
msg
+=
"客户"
+
inCurrentUser
.
toString
()
+
"已存在于当前帐号下"
;
msg
+=
"客户"
+
inCurrentUser
.
toString
()
+
"已存在于当前帐号下"
;
// msg += "<hr/>客户" + inOtherUser.toString() + "已存在于他人帐号下";
}
}
}
}
...
@@ -3080,6 +3082,22 @@ public class CustomerImpl implements ICustomer {
...
@@ -3080,6 +3082,22 @@ public class CustomerImpl implements ICustomer {
return
response
;
return
response
;
}
}
@Override
public
HResult
deleteById
(
int
id
,
int
userId
,
String
userName
)
{
HResult
result
=
new
HResult
();
CustomerEntity
customer
=
customerMapper
.
queryById
(
id
);
if
(
null
==
customer
.
getManagerId
())
{
customer
.
setIsDelete
(
1
);
customerService
.
update
(
customer
);
//新增客户删除日志
logUtils
.
saveCustomerLog
(
customer
,
3
,
userId
,
userName
);
}
else
{
result
.
setStatus
(
500
);
result
.
setErrorMessage
(
"客户未回公海,不能删除"
);
}
return
result
;
}
/**
/**
* 以下均为自动生成
* 以下均为自动生成
*/
*/
...
...
house365-hgs-ws/src/main/java/com/house365/ws/interfaces/rest/GetOnlineLogImpl.java
View file @
88a757b6
...
@@ -73,7 +73,6 @@ public class GetOnlineLogImpl implements IGetOnlineLog {
...
@@ -73,7 +73,6 @@ public class GetOnlineLogImpl implements IGetOnlineLog {
String
endTime
=
time
+
" 23:59:59"
;
String
endTime
=
time
+
" 23:59:59"
;
searchMap
.
put
(
"startTime"
,
startTime
);
searchMap
.
put
(
"startTime"
,
startTime
);
searchMap
.
put
(
"endTime"
,
endTime
);
searchMap
.
put
(
"endTime"
,
endTime
);
// searchMap.put("order", 1);
searchMap
.
put
(
"userId"
,
u
.
getId
());
searchMap
.
put
(
"userId"
,
u
.
getId
());
List
<
OnlineLogEntity
>
logList
=
logMapper
.
queryByConditions
(
searchMap
);
List
<
OnlineLogEntity
>
logList
=
logMapper
.
queryByConditions
(
searchMap
);
if
(
CollectionUtils
.
isNotEmpty
(
logList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
logList
))
{
...
...
house365-hgs-ws/src/main/resources/development/ibatis/Customer.xml
View file @
88a757b6
...
@@ -912,6 +912,11 @@
...
@@ -912,6 +912,11 @@
(manager_id in ($searchFilters.userIds.value$) )
(manager_id in ($searchFilters.userIds.value$) )
]]>
]]>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.deptManagerId"
>
<![CDATA[
(manager_id in ($searchFilters.deptManagerId.value$) )
]]>
</isNotEmpty>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.customerIds"
>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.customerIds"
>
<![CDATA[
<![CDATA[
(id in ($searchFilters.customerIds.value$) )
(id in ($searchFilters.customerIds.value$) )
...
...
house365-hgs-ws/src/main/resources/development/mybatis/DepartMapper.xml
View file @
88a757b6
...
@@ -36,6 +36,9 @@
...
@@ -36,6 +36,9 @@
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
AND name = #{name}
AND name = #{name}
</if>
</if>
<if
test=
"likeName != null and likeName != ''"
>
AND name LIKE CONCAT('',#{likeName},'%')
</if>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
house365-hgs-ws/src/main/resources/development/mybatis/UserMapper.xml
View file @
88a757b6
...
@@ -150,6 +150,12 @@
...
@@ -150,6 +150,12 @@
<if
test=
"deptId != null and deptId >= 0 "
>
<if
test=
"deptId != null and deptId >= 0 "
>
AND deptId = #{deptId}
AND deptId = #{deptId}
</if>
</if>
<if
test=
"deptIdList != null and deptIdList.size() > 0 "
>
AND deptId in
<foreach
collection=
"deptIdList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"order != null and order > 0 "
>
<if
test=
"order != null and order > 0 "
>
ORDER BY name ASC
ORDER BY name ASC
</if>
</if>
...
...
house365-hgs-ws/src/main/resources/production/ibatis/Customer.xml
View file @
88a757b6
...
@@ -912,6 +912,11 @@
...
@@ -912,6 +912,11 @@
(manager_id in ($searchFilters.userIds.value$) )
(manager_id in ($searchFilters.userIds.value$) )
]]>
]]>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.deptManagerId"
>
<![CDATA[
(manager_id in ($searchFilters.deptManagerId.value$) )
]]>
</isNotEmpty>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.customerIds"
>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.customerIds"
>
<![CDATA[
<![CDATA[
(id in ($searchFilters.customerIds.value$) )
(id in ($searchFilters.customerIds.value$) )
...
...
house365-hgs-ws/src/main/resources/production/mybatis/DepartMapper.xml
View file @
88a757b6
...
@@ -36,6 +36,9 @@
...
@@ -36,6 +36,9 @@
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
AND name = #{name}
AND name = #{name}
</if>
</if>
<if
test=
"likeName != null and likeName != ''"
>
AND name LIKE CONCAT('',#{likeName},'%')
</if>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
house365-hgs-ws/src/main/resources/production/mybatis/UserMapper.xml
View file @
88a757b6
...
@@ -150,6 +150,12 @@
...
@@ -150,6 +150,12 @@
<if
test=
"deptId != null and deptId >= 0 "
>
<if
test=
"deptId != null and deptId >= 0 "
>
AND deptId = #{deptId}
AND deptId = #{deptId}
</if>
</if>
<if
test=
"deptIdList != null and deptIdList.size() > 0 "
>
AND deptId in
<foreach
collection=
"deptIdList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"order != null and order > 0 "
>
<if
test=
"order != null and order > 0 "
>
ORDER BY name ASC
ORDER BY name ASC
</if>
</if>
...
...
house365-hgs-ws/src/main/resources/test/ibatis/Customer.xml
View file @
88a757b6
...
@@ -912,6 +912,11 @@
...
@@ -912,6 +912,11 @@
(manager_id in ($searchFilters.userIds.value$) )
(manager_id in ($searchFilters.userIds.value$) )
]]>
]]>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.deptManagerId"
>
<![CDATA[
(manager_id in ($searchFilters.deptManagerId.value$) )
]]>
</isNotEmpty>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.customerIds"
>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.customerIds"
>
<![CDATA[
<![CDATA[
(id in ($searchFilters.customerIds.value$) )
(id in ($searchFilters.customerIds.value$) )
...
...
house365-hgs-ws/src/main/resources/test/mybatis/DepartMapper.xml
View file @
88a757b6
...
@@ -36,6 +36,9 @@
...
@@ -36,6 +36,9 @@
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
AND name = #{name}
AND name = #{name}
</if>
</if>
<if
test=
"likeName != null and likeName != ''"
>
AND name LIKE CONCAT('',#{likeName},'%')
</if>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
house365-hgs-ws/src/main/resources/test/mybatis/UserMapper.xml
View file @
88a757b6
...
@@ -150,6 +150,12 @@
...
@@ -150,6 +150,12 @@
<if
test=
"deptId != null and deptId >= 0 "
>
<if
test=
"deptId != null and deptId >= 0 "
>
AND deptId = #{deptId}
AND deptId = #{deptId}
</if>
</if>
<if
test=
"deptIdList != null and deptIdList.size() > 0 "
>
AND deptId in
<foreach
collection=
"deptIdList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"order != null and order > 0 "
>
<if
test=
"order != null and order > 0 "
>
ORDER BY name ASC
ORDER BY name ASC
</if>
</if>
...
...
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