Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
75d70f12
Commit
75d70f12
authored
Sep 08, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
提交 See merge request 8timerv2/8timerapiv200!492
parents
ba401034
0cdd5128
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
src/main/java/cn/timer/api/controller/crm/CrmController.java
+13
-5
No files found.
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
75d70f12
...
@@ -50,6 +50,7 @@ import cn.timer.api.bean.yggl.YgglMainEmp;
...
@@ -50,6 +50,7 @@ import cn.timer.api.bean.yggl.YgglMainEmp;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.config.enums.SysRoleType
;
import
cn.timer.api.config.enums.SysRoleType
;
import
cn.timer.api.controller.kqgl.ClockInTool
;
import
cn.timer.api.dao.crm.CrmClientContactsMapper
;
import
cn.timer.api.dao.crm.CrmClientContactsMapper
;
import
cn.timer.api.dao.crm.CrmClientDataMapper
;
import
cn.timer.api.dao.crm.CrmClientDataMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
...
@@ -634,15 +635,22 @@ public class CrmController {
...
@@ -634,15 +635,22 @@ public class CrmController {
BeanUtil
.
copyProperties
(
crmd
,
crmdts
,
"iscooperation"
);
BeanUtil
.
copyProperties
(
crmd
,
crmdts
,
"iscooperation"
);
List
<
CrmClientAssociate
>
crmClientAssociates
=
CrmClientAssociate
.
builder
().
build
()
List
<
CrmClientAssociate
>
crmClientAssociates
=
CrmClientAssociate
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
CrmClientAssociate
>().
lambda
().
eq
(
CrmClientAssociate:
:
getCid
,
crmd
.
getId
()));
.
selectList
(
new
QueryWrapper
<
CrmClientAssociate
>().
lambda
().
eq
(
CrmClientAssociate:
:
getCid
,
crmd
.
getId
()));
int
u
=
0
;
if
(
crmClientAssociates
.
size
()
>
0
)
{
if
(
crmClientAssociates
.
size
()
>
0
)
{
String
[]
collaborator
=
new
String
[
crmClientAssociates
.
size
()];
for
(
CrmClientAssociate
crmClientAssociate
:
crmClientAssociates
)
{
for
(
CrmClientAssociate
crmClientAssociate
:
crmClientAssociates
)
{
Integer
empNum1
=
crmClientAssociate
.
getAssociateId
();
Integer
empNum1
=
crmClientAssociate
.
getAssociateId
();
if
(
userBean
.
getEmpNum
().
equals
(
empNum1
))
{
collaborator
[
u
]
=
String
.
valueOf
(
empNum1
);
crmdts
.
setIscooperation
(
1
);
u
++;
}
else
{
crmdts
.
setIscooperation
(
0
);
}
}
}
if
(
ClockInTool
.
contains
(
ClockInTool
.
deleteArrayNull
(
collaborator
),
String
.
valueOf
(
userBean
.
getEmpNum
())))
{
crmdts
.
setIscooperation
(
1
);
}
else
{
crmdts
.
setIscooperation
(
0
);
}
}
else
{
}
else
{
crmdts
.
setIscooperation
(
0
);
crmdts
.
setIscooperation
(
0
);
}
}
...
...
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