Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
4630083b
Commit
4630083b
authored
Dec 19, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
3c9eecaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
10 deletions
+32
-10
DCustomerServiceImpl.java
...java/com/dsk/cscec/service/impl/DCustomerServiceImpl.java
+32
-10
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/service/impl/DCustomerServiceImpl.java
View file @
4630083b
...
...
@@ -45,14 +45,15 @@ public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer
dealWithCustomerClass
(
bo
);
Page
<
DCustomerListVo
>
page
=
baseMapper
.
allSearchList
(
query
.
build
(),
bo
);
if
(
CollectionUtils
.
isNotEmpty
(
page
.
getRecords
()))
{
page
.
getRecords
().
parallelStream
().
forEach
(
item
->
{
page
.
getRecords
().
parallelStream
().
forEach
(
item
->
{
DCustomerListVo
vo
=
subcontractMapper
.
selectStatisticByCustomerId
(
item
.
getCustomerId
());
//企业合作数量
item
.
setEnterpriseCooperationCount
(
vo
.
getEnterpriseCooperationCount
());
//项目合作数量
item
.
setProjectCooperationCount
(
vo
.
getProjectCooperationCount
());
showCustomerClass
(
item
);
//关键字标红
if
(!
ObjectUtils
.
isEmpty
(
bo
.
getCustomerName
()))
{
if
(!
ObjectUtils
.
isEmpty
(
bo
.
getCustomerName
()))
{
item
.
setCustomerName
(
StringUtils
.
markInRed
(
item
.
getCustomerName
(),
bo
.
getCustomerName
()));
}
try
{
...
...
@@ -62,7 +63,7 @@ public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer
Integer
companyId
=
MapUtil
.
getInt
(
data
,
"jskEid"
);
item
.
setCompanyId
(
companyId
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
//
}
});
...
...
@@ -75,13 +76,14 @@ public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer
dealWithCustomerClass
(
bo
);
PageQuery
query
=
new
PageQuery
();
List
<
DCustomerListVo
>
records
=
baseMapper
.
allSearchList
(
query
.
build
(),
bo
).
getRecords
();
if
(
CollectionUtils
.
isNotEmpty
(
records
))
{
records
.
parallelStream
().
forEach
(
item
->
{
if
(
CollectionUtils
.
isNotEmpty
(
records
))
{
records
.
parallelStream
().
forEach
(
item
->
{
DCustomerListVo
vo
=
subcontractMapper
.
selectStatisticByCustomerId
(
item
.
getCustomerId
());
//企业合作数量
item
.
setEnterpriseCooperationCount
(
vo
.
getEnterpriseCooperationCount
());
//项目合作数量
item
.
setProjectCooperationCount
(
vo
.
getProjectCooperationCount
());
showCustomerClass
(
item
);
});
}
return
records
;
...
...
@@ -92,7 +94,7 @@ public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer
List
<
String
>
list
=
new
ArrayList
<>();
Integer
isTeam
=
null
;
for
(
String
customerClass
:
bo
.
getCustomerClass
())
{
switch
(
customerClass
){
switch
(
customerClass
)
{
case
"专业分包"
:
list
.
add
(
"专业分包"
);
break
;
...
...
@@ -103,17 +105,17 @@ public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer
list
.
add
(
"租赁"
);
break
;
case
"劳务分包"
:
if
(
isTeam
==
null
)
{
if
(
isTeam
==
null
)
{
isTeam
=
0
;
}
else
if
(
isTeam
==
1
)
{
}
else
if
(
isTeam
==
1
)
{
isTeam
=
null
;
}
list
.
add
(
"劳务分包"
);
break
;
case
"劳务队伍"
:
if
(
isTeam
==
null
)
{
if
(
isTeam
==
null
)
{
isTeam
=
1
;
}
else
if
(
isTeam
==
0
)
{
}
else
if
(
isTeam
==
0
)
{
isTeam
=
null
;
}
list
.
add
(
"劳务分包"
);
...
...
@@ -126,5 +128,25 @@ public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer
bo
.
setIsTeam
(
isTeam
);
}
}
private
void
showCustomerClass
(
DCustomerListVo
vo
)
{
if
(!
ObjectUtils
.
isEmpty
(
vo
.
getCustomerClass
()))
{
switch
(
vo
.
getCustomerClass
())
{
case
"分供"
:
vo
.
setCustomerClass
(
"物资设备"
);
break
;
case
"租赁"
:
vo
.
setCustomerClass
(
"施工机械"
);
break
;
case
"劳务分包"
:
if
(!
ObjectUtils
.
isEmpty
(
vo
.
getLeaderName
()))
{
vo
.
setCustomerClass
(
"劳务队伍"
);
}
break
;
default
:
break
;
}
}
}
}
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