Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
Overview
Overview
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
首航-临时账号
api
Commits
a060bd53
Commit
a060bd53
authored
May 07, 2019
by
java-李谡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改不兼容文件
parent
811faa13
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
27 deletions
+26
-27
CallDao.xml
resources/mapper/modules/call/CallDao.xml
+0
-0
CallController.java
src/com/ejweb/modules/call/api/CallController.java
+25
-25
CallDao.java
src/com/ejweb/modules/call/dao/CallDao.java
+0
-0
CallService.java
src/com/ejweb/modules/call/service/CallService.java
+1
-2
HuaweiUCSyncService.java
src/com/ejweb/modules/im/service/HuaweiUCSyncService.java
+0
-0
No files found.
resources/mapper/modules/call/CallDao.xml
View file @
a060bd53
src/com/ejweb/modules/call/api/CallController.java
View file @
a060bd53
...
@@ -190,13 +190,13 @@ public class CallController {
...
@@ -190,13 +190,13 @@ public class CallController {
record
.
setCreateBy
(
bean
.
getCreateBy
());
record
.
setCreateBy
(
bean
.
getCreateBy
());
if
(
StringUtils
.
isEmpty
(
bean
.
getCreateName
())){
if
(
StringUtils
.
isEmpty
(
bean
.
getCreateName
())){
String
name
=
callService
.
getNameByPhoneFromSeat
(
bean
.
getCreatePhone
());
String
name
=
callService
.
getNameByPhoneFromSeat
(
bean
.
getCreatePhone
());
if
(
name
!=
null
)
{
if
(
name
!=
null
)
{
record
.
setCreateName
(
name
);
record
.
setCreateName
(
name
);
}
else
{
}
else
{
name
=
callService
.
getNameByPhone
(
bean
.
getCreatePhone
());
name
=
callService
.
getNameByPhone
(
bean
.
getCreatePhone
());
if
(
name
!=
null
)
{
if
(
name
!=
null
)
{
record
.
setCreateName
(
name
);
record
.
setCreateName
(
name
);
}
else
{
}
else
{
record
.
setCreateName
(
bean
.
getCreatePhone
());
record
.
setCreateName
(
bean
.
getCreatePhone
());
}
}
}
}
...
@@ -236,7 +236,7 @@ public class CallController {
...
@@ -236,7 +236,7 @@ public class CallController {
phone
.
setTitle
(
record
.
getCreateName
());
phone
.
setTitle
(
record
.
getCreateName
());
}
}
if
(
StringUtils
.
isEmpty
(
phone
.
getUserId
())
if
(
StringUtils
.
isEmpty
(
phone
.
getUserId
())
&&
StringUtils
.
isNotEmpty
(
phone
.
getPhone
())){
// 如果没有匹配用户信息则通过号码匹配用户信息
&&
StringUtils
.
isNotEmpty
(
phone
.
getPhone
())){
// 如果没有匹配用户信息则通过号码匹配用户信息
CallFindPhoneInfoBean
phoneBean
=
new
CallFindPhoneInfoBean
();
CallFindPhoneInfoBean
phoneBean
=
new
CallFindPhoneInfoBean
();
...
@@ -326,18 +326,18 @@ public class CallController {
...
@@ -326,18 +326,18 @@ public class CallController {
String
message
=
callService
.
validate
(
bean
);
String
message
=
callService
.
validate
(
bean
);
if
(
message
==
null
)
{
// 校验通过
if
(
message
==
null
)
{
// 校验通过
Boolean
show
=
false
;
Boolean
show
=
false
;
UserEntity
ue
=
new
UserEntity
();
UserEntity
ue
=
new
UserEntity
();
ue
.
setUsercode
(
bean
.
getUserId
());
ue
.
setUsercode
(
bean
.
getUserId
());
User
user
=
userService
.
getUserByUserCode
(
ue
);
User
user
=
userService
.
getUserByUserCode
(
ue
);
if
(
user
!=
null
)
{
if
(
user
!=
null
)
{
if
(
StringUtils
.
isNoneBlank
(
user
.
getPhone
()))
{
if
(
StringUtils
.
isNoneBlank
(
user
.
getPhone
()))
{
show
=
true
;
show
=
true
;
}
}
}
else
{
}
else
{
UserSeatEntity
seat
=
userService
.
getSeatsEntity
(
bean
.
getUserId
());
UserSeatEntity
seat
=
userService
.
getSeatsEntity
(
bean
.
getUserId
());
if
(
seat
!=
null
&&
StringUtils
.
isNoneBlank
(
seat
.
getPhone
()))
{
if
(
seat
!=
null
&&
StringUtils
.
isNoneBlank
(
seat
.
getPhone
()))
{
show
=
true
;
show
=
true
;
}
}
}
}
PageEntity
<
CallRecordListEntity
>
page
=
callService
.
getCallRecordList
(
bean
);
PageEntity
<
CallRecordListEntity
>
page
=
callService
.
getCallRecordList
(
bean
);
...
@@ -425,7 +425,7 @@ public class CallController {
...
@@ -425,7 +425,7 @@ public class CallController {
}
}
if
(
StringUtils
.
isNotEmpty
(
record
.
getPhone
())
if
(
StringUtils
.
isNotEmpty
(
record
.
getPhone
())
&&
record
.
getPhone
().
startsWith
(
"6"
)
&&
record
.
getPhone
().
startsWith
(
"6"
)
&&
record
.
getPhone
().
length
()
==
4
)
{
// 6开头的华为短号不展示
&&
record
.
getPhone
().
length
()
==
4
)
{
// 6开头的华为短号不展示
record
.
setPhone
(
""
);
record
.
setPhone
(
""
);
}
}
...
@@ -692,25 +692,25 @@ public class CallController {
...
@@ -692,25 +692,25 @@ public class CallController {
record
.
setCallType
(
"USER"
);
record
.
setCallType
(
"USER"
);
String
name
=
callService
.
getNameByPhoneFromSeat
(
bean
.
getCallNo
());
String
name
=
callService
.
getNameByPhoneFromSeat
(
bean
.
getCallNo
());
String
id
=
callService
.
getIdByPhoneFromSeat
(
bean
.
getCallNo
());
String
id
=
callService
.
getIdByPhoneFromSeat
(
bean
.
getCallNo
());
if
(
name
!=
null
)
{
if
(
name
!=
null
)
{
record
.
setCreateName
(
name
);
record
.
setCreateName
(
name
);
record
.
setCreateBy
(
id
);
record
.
setCreateBy
(
id
);
}
else
{
}
else
{
name
=
callService
.
getNameByPhone
(
bean
.
getCallNo
());
name
=
callService
.
getNameByPhone
(
bean
.
getCallNo
());
if
(
name
!=
null
)
{
if
(
name
!=
null
)
{
id
=
callService
.
getIdByPhone
(
bean
.
getCallNo
());
id
=
callService
.
getIdByPhone
(
bean
.
getCallNo
());
record
.
setCreateName
(
name
);
record
.
setCreateName
(
name
);
record
.
setCreateBy
(
id
);
record
.
setCreateBy
(
id
);
}
else
{
}
else
{
record
.
setCreateName
(
bean
.
getCallNo
());
record
.
setCreateName
(
bean
.
getCallNo
());
record
.
setCreateBy
(
"1"
);
record
.
setCreateBy
(
"1"
);
}
}
}
}
int
userCount
=
1
;
int
userCount
=
1
;
if
(
bean
.
getResult
()!=
null
&&
!
bean
.
getResult
().
equals
(
"0"
))
{
if
(
bean
.
getResult
()
!=
null
&&
!
bean
.
getResult
().
equals
(
"0"
))
{
record
.
setEndStatus
(
"SUCCESS"
);
record
.
setEndStatus
(
"SUCCESS"
);
userCount
=
2
;
userCount
=
2
;
}
else
{
}
else
{
record
.
setEndStatus
(
"FAILD"
);
record
.
setEndStatus
(
"FAILD"
);
}
}
record
.
setId
(
IdWorker
.
getNextId
());
record
.
setId
(
IdWorker
.
getNextId
());
...
@@ -745,16 +745,16 @@ public class CallController {
...
@@ -745,16 +745,16 @@ public class CallController {
}
}
String
acceptName
=
callService
.
getNameByPhoneFromSeat
(
bean
.
getAcceptNo
());
String
acceptName
=
callService
.
getNameByPhoneFromSeat
(
bean
.
getAcceptNo
());
String
acceptId
=
callService
.
getIdByPhoneFromSeat
(
bean
.
getAcceptNo
());
String
acceptId
=
callService
.
getIdByPhoneFromSeat
(
bean
.
getAcceptNo
());
if
(
acceptName
!=
null
)
{
if
(
acceptName
!=
null
)
{
phone
.
setUserId
(
acceptId
);
phone
.
setUserId
(
acceptId
);
phone
.
setUsername
(
acceptName
);
phone
.
setUsername
(
acceptName
);
}
else
{
}
else
{
acceptName
=
callService
.
getNameByPhone
(
bean
.
getAcceptNo
());
acceptName
=
callService
.
getNameByPhone
(
bean
.
getAcceptNo
());
if
(
acceptName
!=
null
)
{
if
(
acceptName
!=
null
)
{
acceptId
=
callService
.
getIdByPhone
(
bean
.
getAcceptNo
());
acceptId
=
callService
.
getIdByPhone
(
bean
.
getAcceptNo
());
phone
.
setUserId
(
acceptId
);
phone
.
setUserId
(
acceptId
);
phone
.
setUsername
(
acceptName
);
phone
.
setUsername
(
acceptName
);
}
else
{
}
else
{
phone
.
setUserId
(
"1"
);
phone
.
setUserId
(
"1"
);
phone
.
setUsername
(
bean
.
getAcceptNo
());
phone
.
setUsername
(
bean
.
getAcceptNo
());
}
}
...
...
src/com/ejweb/modules/call/dao/CallDao.java
View file @
a060bd53
src/com/ejweb/modules/call/service/CallService.java
View file @
a060bd53
...
@@ -105,7 +105,7 @@ public class CallService extends BaseService<CallDao> {
...
@@ -105,7 +105,7 @@ public class CallService extends BaseService<CallDao> {
PageHelper
.
startPage
(
bean
.
getPageNo
(),
bean
.
getPageSize
());
PageHelper
.
startPage
(
bean
.
getPageNo
(),
bean
.
getPageSize
());
pageInfo
=
new
PageInfo
<
CallRecordListEntity
>(
dao
.
getCallSoundList
(
bean
));
pageInfo
=
new
PageInfo
<
CallRecordListEntity
>(
dao
.
getCallSoundList
(
bean
));
if
(
pageInfo
.
getPages
()<
bean
.
getPageNo
())
{
// 页码大于总页数,则返回NULL
if
(
pageInfo
.
getPages
()
<
bean
.
getPageNo
())
{
// 页码大于总页数,则返回NULL
return
null
;
return
null
;
}
}
...
@@ -367,7 +367,6 @@ public class CallService extends BaseService<CallDao> {
...
@@ -367,7 +367,6 @@ public class CallService extends BaseService<CallDao> {
// }
// }
public
List
<
MemberEntity
>
getMemberList
(
String
id
)
{
public
List
<
MemberEntity
>
getMemberList
(
String
id
)
{
return
dao
.
getMemberList
(
id
);
return
dao
.
getMemberList
(
id
);
}
}
...
...
src/com/ejweb/modules/im/service/HuaweiUCSyncService.java
View file @
a060bd53
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