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
13a638bf
Commit
13a638bf
authored
Apr 08, 2024
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
5534011b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
19 deletions
+26
-19
DCustomerSearchBo.java
.../main/java/com/dsk/cscec/domain/bo/DCustomerSearchBo.java
+4
-0
DCustomerServiceImpl.java
...java/com/dsk/cscec/service/impl/DCustomerServiceImpl.java
+1
-0
DCustomerMapper.xml
...z-api/src/main/resources/mapper/cscec/DCustomerMapper.xml
+21
-19
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/domain/bo/DCustomerSearchBo.java
View file @
13a638bf
...
@@ -54,5 +54,9 @@ public class DCustomerSearchBo {
...
@@ -54,5 +54,9 @@ public class DCustomerSearchBo {
* 是否队伍 0:否 1:是
* 是否队伍 0:否 1:是
*/
*/
private
Integer
isTeam
;
private
Integer
isTeam
;
/**
* 涉诉限用/涉诉禁用
*/
private
String
badnessState
;
}
}
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/service/impl/DCustomerServiceImpl.java
View file @
13a638bf
...
@@ -77,6 +77,7 @@ public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer
...
@@ -77,6 +77,7 @@ public class DCustomerServiceImpl extends ServiceImpl<DCustomerMapper, DCustomer
PageQuery
query
=
new
PageQuery
();
PageQuery
query
=
new
PageQuery
();
List
<
DCustomerListVo
>
records
=
baseMapper
.
allSearchList
(
query
.
build
(),
bo
).
getRecords
();
List
<
DCustomerListVo
>
records
=
baseMapper
.
allSearchList
(
query
.
build
(),
bo
).
getRecords
();
if
(
CollectionUtils
.
isNotEmpty
(
records
))
{
if
(
CollectionUtils
.
isNotEmpty
(
records
))
{
for
(
int
i
=
0
;
i
<
records
.
size
();
i
++)
records
.
get
(
i
).
setNum
(
i
);
records
.
parallelStream
().
forEach
(
item
->
{
records
.
parallelStream
().
forEach
(
item
->
{
DCustomerListVo
vo
=
subcontractMapper
.
selectStatisticByCustomerId
(
item
.
getCustomerId
());
DCustomerListVo
vo
=
subcontractMapper
.
selectStatisticByCustomerId
(
item
.
getCustomerId
());
//企业合作数量
//企业合作数量
...
...
dsk-module/dsk-biz-api/src/main/resources/mapper/cscec/DCustomerMapper.xml
View file @
13a638bf
...
@@ -6,64 +6,66 @@
...
@@ -6,64 +6,66 @@
<select
id=
"allSearchList"
resultType=
"com.dsk.cscec.domain.vo.DCustomerListVo"
>
<select
id=
"allSearchList"
resultType=
"com.dsk.cscec.domain.vo.DCustomerListVo"
>
select
select
@row_number:=@row_number + 1 AS num,
dc.customer_key, dc.customer_id, dc.customer_code, dc.customer_name, dc.recommend_org, dc.register_region, dc.register_province, dc.register_city, dc.customer_class, dc.primary_business,
customer_key, customer_id, customer_code, customer_name, recommend_org, register_region, register_province, register_city, customer_class, primary_business,
dc.paytax_type, dc.tax_rate, dc.customer_state, dc.leader_name, dc.labor_captain_phone, dc.labor_captain_idcard, dc.service_team_personnum, dc.service_team_speciality,
paytax_type, tax_rate, customer_state, leader_name, labor_captain_phone, labor_captain_idcard, service_team_personnum, service_team_speciality,
dc.construct_job_scope, dc.credential, dc.register_capital, dc.contact_person, dc.contact_phone, dc.approve_date2, dc.credit_level, dc.group_specialty, fsl.fstate badnessState
construct_job_scope, credential, register_capital, contact_person, contact_phone, approve_date2, credit_level, group_specialty
from d_customer dc
from d_customer , (SELECT @row_number:=0) AS t
left join f_supplier_limited fsl on (fsl.flaowufbid = dc.customer_id
where recommend_org_id = 'F17305B4EA4444CBAB12892C7B99E475'
or fsl.fzhuanyefbid = dc.customer_id or fsl.ffgid = dc.customer_id or fsl.fzlid = dc.customer_id)
<if
test=
"bo.customerName != null and bo.customerName != '' "
>
and customer_name like concat('%',#{bo.customerName},'%')
</if>
where dc.recommend_org_id = 'F17305B4EA4444CBAB12892C7B99E475'
<if
test=
"bo.customerName != null and bo.customerName != '' "
>
and dc.customer_name like concat('%',#{bo.customerName},'%')
</if>
<if
test=
"bo.province != null and bo.province.size > 0 and (bo.city == null or bo.city.size == 0) "
>
<if
test=
"bo.province != null and bo.province.size > 0 and (bo.city == null or bo.city.size == 0) "
>
and register_province in
and
dc.
register_province in
<foreach
collection=
"bo.province"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"bo.province"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"bo.city != null and bo.city.size > 0 and (bo.province == null or bo.province.size == 0) "
>
<if
test=
"bo.city != null and bo.city.size > 0 and (bo.province == null or bo.province.size == 0) "
>
and register_city in
and
dc.
register_city in
<foreach
collection=
"bo.city"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"bo.city"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"bo.province != null and bo.province.size > 0 and bo.city != null and bo.city.size > 0 "
>
<if
test=
"bo.province != null and bo.province.size > 0 and bo.city != null and bo.city.size > 0 "
>
and ( register_province in
and (
dc.
register_province in
<foreach
collection=
"bo.province"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"bo.province"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
or register_city in
or
dc.
register_city in
<foreach
collection=
"bo.city"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"bo.city"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
)
)
</if>
</if>
<if
test=
"bo.customerClass != null and bo.customerClass.size > 0 "
>
<if
test=
"bo.customerClass != null and bo.customerClass.size > 0 "
>
and customer_class in
and
dc.
customer_class in
<foreach
collection=
"bo.customerClass"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"bo.customerClass"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"bo.customerState != null and bo.customerState.size > 0 "
>
<if
test=
"bo.customerState != null and bo.customerState.size > 0 "
>
and customer_state in
and
dc.
customer_state in
<foreach
collection=
"bo.customerState"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"bo.customerState"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"bo.creditLevel != null and bo.creditLevel.size > 0 "
>
<if
test=
"bo.creditLevel != null and bo.creditLevel.size > 0 "
>
and credit_level in
and
dc.
credit_level in
<foreach
collection=
"bo.creditLevel"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"bo.creditLevel"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"bo.credential != null and bo.credential.size > 0 "
>
<if
test=
"bo.credential != null and bo.credential.size > 0 "
>
and credential in
and
dc.
credential in
<foreach
collection=
"bo.credential"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"bo.credential"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"bo.approveDateBegion != null and bo.approveDateBegion != '' "
>
and approve_date2
>
= #{bo.approveDateBegion}
</if>
<if
test=
"bo.approveDateBegion != null and bo.approveDateBegion != '' "
>
and dc.approve_date2
>
= #{bo.approveDateBegion}
</if>
<if
test=
"bo.approveDateEnd != null and bo.approveDateEnd != '' "
>
and approve_date2
<
= #{bo.approveDateEnd}
</if>
<if
test=
"bo.approveDateEnd != null and bo.approveDateEnd != '' "
>
and dc.approve_date2
<
= #{bo.approveDateEnd}
</if>
<if
test=
"bo.isTeam != null"
>
and leader_name is
<if
test=
"bo.isTeam == 1"
>
not
</if>
null
</if>
<if
test=
"bo.isTeam != null"
>
and dc.leader_name is
<if
test=
"bo.isTeam == 1"
>
not
</if>
null
</if>
order by approve_date2 desc
<if
test=
"bo.badnessState != null and bo.badnessState != ''"
>
and fsl.fstate = #{bo.badnessState}
</if>
order by dc.approve_date2 desc
</select>
</select>
<sql
id=
"allColumn"
>
<sql
id=
"allColumn"
>
...
...
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