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
772a9c84
Commit
772a9c84
authored
Jun 01, 2021
by
gaoyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.9.3需求---平台创建人搜索
parent
457414c9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
15 deletions
+44
-15
CustomerManagementController.java
...house365/web/controller/CustomerManagementController.java
+6
-0
myCustomerNew.jsp
.../WEB-INF/views/customermanagement/pages/myCustomerNew.jsp
+24
-4
CustomerMergeMapper.xml
...ain/resources/development/mybatis/CustomerMergeMapper.xml
+6
-0
CustomerMergeMapper.xml
...main/resources/production/mybatis/CustomerMergeMapper.xml
+8
-11
No files found.
house365-hgs-web/src/main/java/com/house365/web/controller/CustomerManagementController.java
View file @
772a9c84
...
@@ -591,6 +591,12 @@ public class CustomerManagementController extends BaseController {
...
@@ -591,6 +591,12 @@ public class CustomerManagementController extends BaseController {
model
.
addAttribute
(
"actList"
,
alist
);
model
.
addAttribute
(
"actList"
,
alist
);
//平台创建人 ------> IM测试组组长及组员
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>(
10
);
paramMap
.
put
(
"deptUrlPath"
,
"/1/2/69/70/71/556"
);
List
<
UserEntity
>
createrList
=
user
.
queryByConditions
(
paramMap
);
model
.
addAttribute
(
"createrList"
,
createrList
);
List
<
CustomerListVO
>
customers
=
new
ArrayList
<>();
List
<
CustomerListVO
>
customers
=
new
ArrayList
<>();
//用户标签
//用户标签
List
<
LabelEntity
>
userLabelList
=
user
.
queryUserLabel
(
userEntity
.
getId
());
//标签库中当前用户创建的标签
List
<
LabelEntity
>
userLabelList
=
user
.
queryUserLabel
(
userEntity
.
getId
());
//标签库中当前用户创建的标签
...
...
house365-hgs-web/src/main/webapp/WEB-INF/views/customermanagement/pages/myCustomerNew.jsp
View file @
772a9c84
...
@@ -223,6 +223,7 @@
...
@@ -223,6 +223,7 @@
padding
:
0
;
padding
:
0
;
width
:
33%
;
width
:
33%
;
}
}
.pace
{
.pace
{
display
:
inline-block
;
display
:
inline-block
;
-webkit-pointer-events
:
none
;
-webkit-pointer-events
:
none
;
...
@@ -588,6 +589,16 @@
...
@@ -588,6 +589,16 @@
活动名称:
<input
type=
"text"
id=
"search_LIKE_sourceName"
style=
"border: 1px solid #d5d5d5;"
name=
"search_LIKE_sourceName"
value=
"${param['search_LIKE_sourceName']}"
活动名称:
<input
type=
"text"
id=
"search_LIKE_sourceName"
style=
"border: 1px solid #d5d5d5;"
name=
"search_LIKE_sourceName"
value=
"${param['search_LIKE_sourceName']}"
class=
"m-wrap small"
placeholder=
"活动名称"
>
class=
"m-wrap small"
placeholder=
"活动名称"
>
<c:if
test=
"${city == 'nj'}"
>
平台创建人:
<select
name=
"search_EQ_createrId"
id=
"search_EQ_createrId"
style=
"width: 10rem"
>
<option
value=
""
>
全部
</option>
<c:forEach
items=
"${createrList}"
var=
"creater"
>
<option
value=
"${creater.id}"
<
c:if
test=
"${creater.id eq param['search_EQ_createrId']}"
>
selected="selected"
</c:if>
>${creater.realName}
</option>
</c:forEach>
</select>
</c:if>
</c:if>
</c:if>
<div
style=
"float: right"
>
<div
style=
"float: right"
>
...
@@ -1045,7 +1056,8 @@
...
@@ -1045,7 +1056,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>
...
@@ -1087,7 +1099,8 @@
...
@@ -1087,7 +1099,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}"
>
...
@@ -1653,6 +1666,8 @@
...
@@ -1653,6 +1666,8 @@
$
(
"#search_EQ_createSource"
).
trigger
(
'chosen:updated'
);
$
(
"#search_EQ_createSource"
).
trigger
(
'chosen:updated'
);
$
(
"#search_EQ_activeId"
).
val
(
""
);
$
(
"#search_EQ_activeId"
).
val
(
""
);
$
(
"#search_EQ_activeId"
).
trigger
(
'chosen:updated'
);
$
(
"#search_EQ_activeId"
).
trigger
(
'chosen:updated'
);
$
(
"#search_EQ_createrId"
).
val
(
""
);
$
(
"#search_EQ_createrId"
).
trigger
(
'chosen:updated'
);
// 重置回访状态下拉框
// 重置回访状态下拉框
$
(
"#search_EQ_isBack"
).
val
(
"1"
);
$
(
"#search_EQ_isBack"
).
val
(
"1"
);
$
(
"#search_EQ_isBack"
).
trigger
(
'chosen:updated'
);
$
(
"#search_EQ_isBack"
).
trigger
(
'chosen:updated'
);
...
@@ -1699,6 +1714,7 @@
...
@@ -1699,6 +1714,7 @@
}
}
var
customerIdList
=
[];
var
customerIdList
=
[];
function
addCustomerLabel
()
{
function
addCustomerLabel
()
{
var
haslabel
=
"${haslabel}"
;
var
haslabel
=
"${haslabel}"
;
if
(
haslabel
!=
1
)
{
if
(
haslabel
!=
1
)
{
...
@@ -1869,6 +1885,7 @@
...
@@ -1869,6 +1885,7 @@
//全选
//全选
var
checkNum
=
0
;
var
checkNum
=
0
;
function
checkAll
(
btn
)
{
function
checkAll
(
btn
)
{
if
(
btn
.
checked
)
{
if
(
btn
.
checked
)
{
for
(
var
i
=
0
;
i
<
document
.
getElementsByName
(
'memberCheck'
).
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
document
.
getElementsByName
(
'memberCheck'
).
length
;
i
++
)
{
...
@@ -2124,6 +2141,7 @@
...
@@ -2124,6 +2141,7 @@
var
curnet
=
"${sessionUser.cornet}"
;
var
curnet
=
"${sessionUser.cornet}"
;
var
initopen
=
0
;
var
initopen
=
0
;
function
callCustomer
(
memPhone
,
markedLabelId
,
managerId
,
customerId
,
buyIntention
,
abandon
,
isPeer
,
star
)
{
function
callCustomer
(
memPhone
,
markedLabelId
,
managerId
,
customerId
,
buyIntention
,
abandon
,
isPeer
,
star
)
{
//先将bat2样式清楚
//先将bat2样式清楚
$
(
".bat2"
).
removeAttr
(
"style"
);
$
(
".bat2"
).
removeAttr
(
"style"
);
...
@@ -2253,6 +2271,7 @@
...
@@ -2253,6 +2271,7 @@
var
arr
=
new
Array
();
var
arr
=
new
Array
();
var
arr2
=
new
Array
();
var
arr2
=
new
Array
();
var
callId
;
var
callId
;
function
addCallBack
(
_customerId
,
_phone
,
_buyIntention
,
isPeer
,
markedLabelId
,
star
)
{
function
addCallBack
(
_customerId
,
_phone
,
_buyIntention
,
isPeer
,
markedLabelId
,
star
)
{
$
(
"#myModal"
).
hide
();
$
(
"#myModal"
).
hide
();
$
(
"#labelModel"
).
hide
();
$
(
"#labelModel"
).
hide
();
...
@@ -2855,6 +2874,7 @@
...
@@ -2855,6 +2874,7 @@
obj
.
innerHTML
=
content
;
obj
.
innerHTML
=
content
;
console
.
info
(
obj
)
console
.
info
(
obj
)
}
}
function
setCallbackContent2
(
template
)
{
function
setCallbackContent2
(
template
)
{
var
content
=
$
(
template
).
text
();
var
content
=
$
(
template
).
text
();
var
obj
=
document
.
getElementById
(
"cusinfo"
);
var
obj
=
document
.
getElementById
(
"cusinfo"
);
...
@@ -3130,10 +3150,10 @@
...
@@ -3130,10 +3150,10 @@
</div>
</div>
</div>
</div>
<script>
<script>
$
(
function
()
{
$
(
function
()
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$
(
".pace"
).
hide
()
$
(
".pace"
).
hide
()
},
1000
)
},
1000
)
})
})
</script>
</script>
...
...
house365-hgs-ws/src/main/resources/development/mybatis/CustomerMergeMapper.xml
View file @
772a9c84
...
@@ -434,6 +434,9 @@
...
@@ -434,6 +434,9 @@
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
</if>
</if>
<if
test=
"createrId != null and createrId != '' "
>
AND c.creater =#{createrId}
</if>
<if
test=
"orderBy != null and orderBy != '' "
>
<if
test=
"orderBy != null and orderBy != '' "
>
order by ${orderBy}
order by ${orderBy}
</if>
</if>
...
@@ -684,6 +687,9 @@
...
@@ -684,6 +687,9 @@
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
</if>
</if>
<if
test=
"createrId != null and createrId != '' "
>
AND c.creater =#{createrId}
</if>
</select>
</select>
...
...
house365-hgs-ws/src/main/resources/production/mybatis/CustomerMergeMapper.xml
View file @
772a9c84
...
@@ -333,7 +333,6 @@
...
@@ -333,7 +333,6 @@
or (customTimeTypeFive != null and customTimeTypeFive != '') or (customTimeTypeSix != null and customTimeTypeSix != '')"
>
or (customTimeTypeFive != null and customTimeTypeFive != '') or (customTimeTypeSix != null and customTimeTypeSix != '')"
>
and t5.phone is not null
and t5.phone is not null
</if>
</if>
<if
test=
"cityCode != null and cityCode != '' "
>
<if
test=
"cityCode != null and cityCode != '' "
>
AND c.cityCode = #{cityCode}
AND c.cityCode = #{cityCode}
</if>
</if>
...
@@ -376,10 +375,6 @@
...
@@ -376,10 +375,6 @@
<if
test=
"bindTimeEnd != null and bindTimeEnd != '' "
>
<if
test=
"bindTimeEnd != null and bindTimeEnd != '' "
>
AND c.bind_time
<
=#{bindTimeEnd}
AND c.bind_time
<
=#{bindTimeEnd}
</if>
</if>
<!--<if test="customerSourceType2 != null and customerSourceType2 != '' ">-->
<!--AND c.customer_source_type =#{customerSourceType2}-->
<!--</if>-->
<if
test=
"isNotBackFour != null and isNotBackFour != '' "
>
<if
test=
"isNotBackFour != null and isNotBackFour != '' "
>
and datediff( CURRENT_DATE, c.last_call_time )
>
= 3
and datediff( CURRENT_DATE, c.last_call_time )
>
= 3
AND datediff( CURRENT_DATE, c.last_call_time )
<
= 7
AND datediff( CURRENT_DATE, c.last_call_time )
<
= 7
...
@@ -401,14 +396,12 @@
...
@@ -401,14 +396,12 @@
AND c.last_call_time
>
=#{customTimeStart}
AND c.last_call_time
>
=#{customTimeStart}
AND c.last_call_time
<
=#{customTimeEnd}
AND c.last_call_time
<
=#{customTimeEnd}
</if>
</if>
<if
test=
"isStar != null and isStar != '' "
>
<if
test=
"isStar != null and isStar != '' "
>
AND c.starCustomer =1
AND c.starCustomer =1
</if>
</if>
<if
test=
"isNotStar != null and isNotStar != '' "
>
<if
test=
"isNotStar != null and isNotStar != '' "
>
AND c.starCustomer =0
AND c.starCustomer =0
</if>
</if>
<if
test=
"starCustomer != null and starCustomer != '' "
>
<if
test=
"starCustomer != null and starCustomer != '' "
>
AND c.starCustomer =#{starCustomer}
AND c.starCustomer =#{starCustomer}
</if>
</if>
...
@@ -419,7 +412,6 @@
...
@@ -419,7 +412,6 @@
<if
test=
"isActive != null and isActive != '' "
>
<if
test=
"isActive != null and isActive != '' "
>
AND c.is_active = 1
AND c.is_active = 1
</if>
</if>
<if
test=
"isRecycled != null and isRecycled != '' "
>
<if
test=
"isRecycled != null and isRecycled != '' "
>
AND c.isRecycled =#{isRecycled}
AND c.isRecycled =#{isRecycled}
</if>
</if>
...
@@ -438,15 +430,16 @@
...
@@ -438,15 +430,16 @@
<if
test=
'tabType =="2"'
>
<if
test=
'tabType =="2"'
>
and c.trace_status = 1
and c.trace_status = 1
</if>
</if>
<if
test=
'tabType =="0"'
>
<if
test=
'tabType =="0"'
>
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
</if>
</if>
<if
test=
"createrId != null and createrId != '' "
>
AND c.creater =#{createrId}
</if>
<if
test=
"orderBy != null and orderBy != '' "
>
<if
test=
"orderBy != null and orderBy != '' "
>
order by ${orderBy}
order by ${orderBy}
</if>
</if>
limit #{PageNumber}, #{pageSize};
limit #{PageNumber}, #{pageSize};
</select>
</select>
...
@@ -694,8 +687,13 @@
...
@@ -694,8 +687,13 @@
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_callback_log ccl WHERE ccl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
AND ( SELECT count( * ) FROM customer_status_log csl WHERE csl.customer_id = c.id ) = 0
</if>
</if>
<if
test=
"createrId != null and createrId != '' "
>
AND c.creater =#{createrId}
</if>
</select>
</select>
<insert
id=
"saveCustomerMerge"
parameterType=
"com.house365.beans.entity.CustomerEntity"
>
<insert
id=
"saveCustomerMerge"
parameterType=
"com.house365.beans.entity.CustomerEntity"
>
insert into customer_merge
insert into customer_merge
(id,name,phone,bak_phone1,bak_phone2,
(id,name,phone,bak_phone1,bak_phone2,
...
@@ -737,7 +735,6 @@
...
@@ -737,7 +735,6 @@
WHERE id = #{id}
WHERE id = #{id}
</update>
</update>
<update
id=
"updateCustomerMerge2"
parameterType=
"com.house365.beans.entity.CustomerEntity"
>
<update
id=
"updateCustomerMerge2"
parameterType=
"com.house365.beans.entity.CustomerEntity"
>
UPDATE customer_merge
UPDATE customer_merge
SET
SET
...
...
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