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
9140c971
Commit
9140c971
authored
Jun 03, 2021
by
gaoyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.9.3需求---bug修复
parent
61b9c208
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
18 deletions
+52
-18
CustomerController.java
.../java/com/house365/web/controller/CustomerController.java
+8
-0
CustomerImpl.java
...in/java/com/house365/ws/interfaces/impl/CustomerImpl.java
+44
-18
No files found.
house365-hgs-web/src/main/java/com/house365/web/controller/CustomerController.java
View file @
9140c971
...
...
@@ -3081,6 +3081,14 @@ public class CustomerController extends BaseController {
showWord
=
showWord
+
showUser
.
getRealName
();
}
logShowList
.
add
(
showWord
);
}
else
if
(
p
.
getType
()
==
11
){
//平台客户管理转移创建人
String
showWord
=
showTime
+
" "
+
p
.
getCreateUserName
()
+
" [转移线索]"
+
"给 "
;
UserEntity
showUser
=
user
.
getById
(
Integer
.
valueOf
(
p
.
getNewValue
()));
if
(
null
!=
showUser
)
{
showWord
=
showWord
+
showUser
.
getRealName
();
}
logShowList
.
add
(
showWord
);
}
}
...
...
house365-hgs-ws/src/main/java/com/house365/ws/interfaces/impl/CustomerImpl.java
View file @
9140c971
...
...
@@ -3132,30 +3132,56 @@ public class CustomerImpl implements ICustomer {
@Override
@Transactional
public
void
batchTransferCreator
(
String
[]
customerIds
,
String
[]
userIds
,
UserEntity
userEntity
,
int
type
)
throws
Exception
{
for
(
int
i
=
0
;
i
<
customerIds
.
length
;
i
++)
{
int
j
=
0
;
String
customer
=
customerIds
[
i
];
String
userId
=
""
;
if
(
Strings
.
isNullOrEmpty
(
customer
))
{
continue
;
if
(
customerIds
.
length
<=
userIds
.
length
){
for
(
int
i
=
0
;
i
<
customerIds
.
length
;
i
++)
{
String
customer
=
customerIds
[
i
];
String
userId
=
userIds
[
i
];
if
(
Strings
.
isNullOrEmpty
(
customer
))
{
continue
;
}
if
(
Strings
.
isNullOrEmpty
(
userId
))
{
continue
;
}
batchTransferCreator
(
userId
,
customer
,
userEntity
);
}
CustomerEntity
customerEntity
=
customerMapper
.
queryById
(
Integer
.
valueOf
(
customer
)
);
if
(
userIds
.
length
<
customerIds
.
length
&&
i
==
(
userIds
.
length
-
1
)){
userId
=
userIds
[
j
];
j
++;
}
else
{
userId
=
userIds
[
i
];
}
else
{
for
(
int
i
=
0
;
i
<
customerIds
.
length
;
i
++)
{
String
customer
=
customerIds
[
i
];
String
userId
=
""
;
int
j
=
0
;
if
(
Strings
.
isNullOrEmpty
(
customer
))
{
continue
;
}
if
(
i
>
userIds
.
length
-
1
){
if
(
j
>
userIds
.
length
-
1
){
j
=
0
;
}
userId
=
userIds
[
j
];
j
++;
}
else
{
userId
=
userIds
[
i
];
}
batchTransferCreator
(
userId
,
customer
,
userEntity
);
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>(
10
);
map
.
put
(
"creater"
,
userId
);
map
.
put
(
"customerId"
,
customer
);
customerMapper
.
updatePtCustomerCreater
(
map
);
//记录日志
logUtils
.
saveCustomerLog2
(
customerEntity
,
11
,
userEntity
.
getId
(),
userEntity
.
getRealName
(),
customerEntity
.
getCreater
(),
userId
);
}
}
/**
*
* @param userId
* @param customerId
*/
private
void
batchTransferCreator
(
String
userId
,
String
customerId
,
UserEntity
userEntity
){
CustomerEntity
customerEntity
=
customerMapper
.
queryById
(
Integer
.
valueOf
(
customerId
)
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>(
10
);
map
.
put
(
"creater"
,
userId
);
map
.
put
(
"customerId"
,
customerId
);
customerMapper
.
updatePtCustomerCreater
(
map
);
//记录日志
logUtils
.
saveCustomerLog2
(
customerEntity
,
11
,
userEntity
.
getId
(),
userEntity
.
getRealName
(),
customerEntity
.
getCreater
(),
userId
);
}
/**
* 以下均为自动生成
*/
...
...
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