Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
498da298
authored
Sep 25, 2018
by
chongli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'f-6.6.9' of 192.168.10.6:caosy/fun-admin into f-6.6.9
parents
e2c35cb8
4641e9f4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
41 deletions
src/main/java/com/ctrip/fun/admin/controller/system/adminUserController.java
src/main/java/com/ctrip/fun/admin/controller/tools/CallCenterController.java
src/main/java/com/ctrip/fun/admin/filter/GlobalHandlerInterceptor.java
src/main/webapp/WEB-INF/templates/basic/telTask/telTaskForm.ftl
src/main/webapp/WEB-INF/templates/user/ranking.ftl
src/main/java/com/ctrip/fun/admin/controller/system/adminUserController.java
View file @
498da298
package
com
.
ctrip
.
fun
.
admin
.
controller
.
system
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -13,11 +9,9 @@ import org.springframework.stereotype.Controller;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.ctrip.fun.admin.service.system.UserDetailsService
;
import
com.ctrip.fun.common.core.util.EncryptUtil
;
import
com.ctrip.fun.common.vo.Response
;
import
com.ctrip.fun.common.vo.adminUser.AdminUserBean
;
@Controller
...
...
src/main/java/com/ctrip/fun/admin/controller/tools/CallCenterController.java
View file @
498da298
...
...
@@ -120,7 +120,7 @@ public class CallCenterController {
@ResponseBody
public
String
callbackEvent
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@RequestBody
String
eventJsonString
,
ModelMap
model
)
{
String
result
=
""
;
System
.
out
.
println
(
"rsmw iwan info:"
+
eventJsonString
);
try
{
logger
.
debug
(
"从"
+
request
.
getRemoteAddr
()
+
"收到event:"
+
eventJsonString
);
...
...
@@ -152,6 +152,7 @@ public class CallCenterController {
uid
=
user
.
getUid
();
}
NewStateEventHandler
newStatehandler
=
new
NewStateEventHandler
();
System
.
out
.
println
(
"before handlering: "
+
callerIdNumber
+
" "
+
uid
+
" "
+
mobileNo
+
" RINGING"
);
newStatehandler
.
handle
(
callerIdNumber
,
uid
,
mobileNo
);
}
...
...
src/main/java/com/ctrip/fun/admin/filter/GlobalHandlerInterceptor.java
View file @
498da298
package
com
.
ctrip
.
fun
.
admin
.
filter
;
import
com.ctrip.fun.admin.utility.SpringSecurityUtil
;
import
freemarker.ext.beans.BeansWrapper
;
import
freemarker.ext.beans.BeansWrapperBuilder
;
import
freemarker.template.Configuration
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
;
...
...
@@ -20,7 +24,8 @@ public class GlobalHandlerInterceptor extends HandlerInterceptorAdapter {
public
boolean
preHandle
(
HttpServletRequest
request
,
HttpServletResponse
response
,
Object
handler
)
throws
Exception
{
request
.
setAttribute
(
"enums"
,
BeansWrapper
.
getDefaultInstance
().
getEnumModels
());
// request.setAttribute("enums", BeansWrapper.getDefaultInstance().getEnumModels());
request
.
setAttribute
(
"enums"
,
new
BeansWrapperBuilder
(
Configuration
.
DEFAULT_INCOMPATIBLE_IMPROVEMENTS
).
build
().
getEnumModels
());
request
.
setAttribute
(
"userName"
,
SpringSecurityUtil
.
getCurrentUserName
());
return
true
;
}
...
...
src/main/webapp/WEB-INF/templates/basic/telTask/telTaskForm.ftl
View file @
498da298
...
...
@@ -68,7 +68,7 @@ $("#telTaskType").change(function(){
<@form.singleSelect path="dto.cityId" options=cityList attributes="required" label="手机归属地(市)"/>
<@form.textInputTwoDate path1="dto.registerDateStart" path2="dto.registerDateEnd" attributes="" label="注册时间" required = true/>
<@form.textInputTwoDate path1="dto.lastLoginDateStart" path2="dto.lastLoginDateEnd" attributes="" label="最后一次登录时间" required = true/>
<@form.textInputTwoDate path1="dto.lastFeedbackTimeStart" path2="dto.lastFeedbackTimeEnd" attributes="" label="上一次拨打时间" required =
tru
e/>
<@form.textInputTwoDate path1="dto.lastFeedbackTimeStart" path2="dto.lastFeedbackTimeEnd" attributes="" label="上一次拨打时间" required =
fals
e/>
<@form.textInputTwoDate path1="dto.amountMin" path2="dto.amountMax" attributes="" label="账户余额(元)" type="text" required = false/>
<@form.checkbox path="dto.hasOrder" attributes="" label="下过单"/>
<@form.checkbox path="dto.excludeCommuneAndClub" attributes="" label="排除『公社会员』"/>
...
...
src/main/webapp/WEB-INF/templates/user/ranking.ftl
View file @
498da298
...
...
@@ -48,7 +48,7 @@
}
.rank
{
width
:
7
%
;
width
:
20
%
;
float
:
left
;
text-align
:
center
;
height
:
40px
;
...
...
@@ -64,14 +64,14 @@
}
.name
{
width
:
1
5%
;
width
:
2
5%
;
float
:
left
;
text-align
:
center
;
height
:
40px
;
}
.num
{
width
:
13
%
;
width
:
55
%
;
float
:
left
;
text-align
:
center
;
height
:
40px
;
...
...
@@ -106,7 +106,7 @@
<section>
<div
class=
"top"
>
<div
class=
"title"
>
获客
榜
博尔地售券排行
榜
</div>
<div
class=
"time"
>
时间:
<span
id=
"time"
></span></div>
</div>
...
...
@@ -114,19 +114,15 @@
<div
class=
"rank"
>
名次
</div>
<div
class=
"name"
>
姓名
</div>
<div
class=
"num"
>
总数
</div>
<div
class=
"num"
>
新客
</div>
<div
class=
"num"
>
社员
</div>
<div
class=
"num"
>
非社员
</div>
<div
class=
"num"
>
980
</div>
<div
class=
"num"
>
360
</div>
</div>
<ul
class=
"list"
id=
"list"
>
</ul>
</section>
<script
src=
"https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"
></script>
<script>
//
var baseUrl = 'https://api.iwanoutdoor.com';
var
baseUrl
=
'http://localhost:8080'
;
var
baseUrl
=
'https://api.iwanoutdoor.com'
;
//
var baseUrl = 'http://localhost:8080';
var
numType
=
{
0
:
'first'
,
1
:
'second'
,
...
...
@@ -178,39 +174,19 @@
console
.
log
(
Object
.
prototype
.
toString
.
call
(
list
));
if
(
status
===
'success'
&&
Object
.
prototype
.
toString
.
call
(
list
)
===
'[object Array]'
)
{
var
total_myNum1
=
0
;
var
total_myNum2
=
0
;
var
total_myNum3
=
0
;
var
total_myNum4
=
0
;
var
total_myNum5
=
0
;
var
total_myNum6
=
0
;
var
dataLis
=
''
;
for
(
var
i
=
0
;
i
<
list
.
length
;
i
++
)
{
total_myNum1
+=
list
[
i
].
myNum1
;
total_myNum2
+=
list
[
i
].
myNum2
;
total_myNum3
+=
list
[
i
].
myNum3
;
total_myNum4
+=
list
[
i
].
myNum4
;
total_myNum5
+=
list
[
i
].
myNum5
;
total_myNum6
+=
list
[
i
].
myNum6
;
dataLis
+=
'
<
li
>
\
n
' +
'
<
div
class
=
"rank"
>
' + (i + 1) + '
<
/div>
\n
'
+
'
<
div
class
=
"name"
>
' + list[i].inviterUserName + '
<
/div>
\n
'
+
'
<
div
class
=
"num ' + (list[i].myNum1 >= 0 ? numType[i] : '') + '"
>
' + list[i].myNum1 + '
<
/div>
\n
'
+
'
<
div
class
=
"num ' + (list[i].myNum2 >= 0 ? numType[i] : '') + '"
>
' + list[i].myNum2 + '
<
/div>
\n
'
+
'
<
div
class
=
"num ' + (list[i].myNum3 >= 0 ? numType[i] : '') + '"
>
' + list[i].myNum3 + '
<
/div>
\n
'
+
'
<
div
class
=
"num ' + (list[i].myNum4 >= 0 ? numType[i] : '') + '"
>
' + list[i].myNum4 + '
<
/div>
\n
'
+
'
<
div
class
=
"num ' + (list[i].myNum5 >= 0 ? numType[i] : '') + '"
>
' + list[i].myNum5 + '
<
/div>
\n
'
+
'
<
div
class
=
"num ' + (list[i].myNum6 >= 0 ? numType[i] : '') + '"
>
' + list[i].myNum6 + '
<
/div>
\n
'
+
'
<
/li>
'
}
var
totalLi
=
""
;
totalLi
+=
'
<
li
style
=
"background:#3de899"
><
div
class
=
"rank"
><
/div>
\n
'
;
totalLi
+=
'
<
div
class
=
"name"
>
合计
<
/div>
\n
'
;
totalLi
+=
'
<
div
class
=
"num"
>
' + total_myNum1 + '
<
/div>
\n
'
;
totalLi
+=
'
<
div
class
=
"num"
>
' + total_myNum2 + '
<
/div>
\n
'
;
totalLi
+=
'
<
div
class
=
"num"
>
' + total_myNum3 + '
<
/div>
\n
'
;
totalLi
+=
'
<
div
class
=
"num"
>
' + total_myNum4 + '
<
/div>
\n
'
;
totalLi
+=
'
<
div
class
=
"num"
>
' + total_myNum5 + '
<
/div>
\n
'
;
totalLi
+=
'
<
div
class
=
"num"
>
' + total_myNum6 + '
<
/div>
\n
'
;
totalLi
+=
''
;
tpl
+=
totalLi
+
dataLis
;
...
...
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