Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
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
INET-TWO
server
dcs-plan
Commits
b89a3c7e
Commit
b89a3c7e
authored
Oct 10, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出供应商列表数据
parent
8da23d30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
38 deletions
+39
-38
ExtSupplierManageServiceImpl.java
.../plan/core/service/impl/ExtSupplierManageServiceImpl.java
+39
-38
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtSupplierManageServiceImpl.java
View file @
b89a3c7e
...
@@ -171,46 +171,47 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
...
@@ -171,46 +171,47 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
Map
<
String
,
DictDataVO
>
qualificationsContentMap
=
this
.
getDictDataVO
(
Constants
.
QUALIFICATIONS_CONTENT
);
Map
<
String
,
DictDataVO
>
qualificationsContentMap
=
this
.
getDictDataVO
(
Constants
.
QUALIFICATIONS_CONTENT
);
DxPageImpl
<
V
>
recursion
=
this
.
findRecursion
(
searchQueryCondition
);
DxPageImpl
<
V
>
recursion
=
this
.
findRecursion
(
searchQueryCondition
);
List
<
ExtSupplierManageVO
>
content
=
(
List
<
ExtSupplierManageVO
>)
recursion
.
getContent
();
List
<
ExtSupplierManageVO
>
content
=
(
List
<
ExtSupplierManageVO
>)
recursion
.
getContent
();
if
(
CollectionUtils
.
isNotEmpty
(
content
))
{
if
(
CollectionUtils
.
isEmpty
(
content
))
{
for
(
ExtSupplierManageVO
extSupplierManageVO
:
content
)
{
return
list
;
ExtSupplierVO
extSupplierVO
=
new
ExtSupplierVO
();
}
BeanUtils
.
copyProperties
(
extSupplierManageVO
,
extSupplierVO
);
for
(
ExtSupplierManageVO
extSupplierManageVO
:
content
)
{
DictDataVO
supplierType
=
supplierTypeMap
.
get
(
extSupplierManageVO
.
getSupplierType
());
ExtSupplierVO
extSupplierVO
=
new
ExtSupplierVO
();
extSupplierVO
.
setSupplierType
(
supplierType
.
getDictValue
());
BeanUtils
.
copyProperties
(
extSupplierManageVO
,
extSupplierVO
);
for
(
ExtSupplierManageLinkVO
extSupplierManageLink
:
extSupplierManageVO
.
getExtSupplierManageLinks
())
{
DictDataVO
supplierType
=
supplierTypeMap
.
get
(
extSupplierManageVO
.
getSupplierType
());
ExtQualificationsVO
target
=
extSupplierManageLink
.
getTarget
();
extSupplierVO
.
setSupplierType
(
supplierType
.
getDictValue
());
String
qualificationsContent
=
target
.
getQualificationsContent
();
for
(
ExtSupplierManageLinkVO
extSupplierManageLink
:
extSupplierManageVO
.
getExtSupplierManageLinks
())
{
String
certificateNumber
=
target
.
getCertificateNumber
();
ExtQualificationsVO
target
=
extSupplierManageLink
.
getTarget
();
LocalDateTime
certificateTime
=
target
.
getCertificateTime
();
String
qualificationsContent
=
target
.
getQualificationsContent
();
DictDataVO
qualifications
=
qualificationsContentMap
.
get
(
qualificationsContent
);
String
certificateNumber
=
target
.
getCertificateNumber
();
String
dictValue
=
qualifications
.
getDictValue
();
LocalDateTime
certificateTime
=
target
.
getCertificateTime
();
switch
(
qualificationsContent
)
{
DictDataVO
qualifications
=
qualificationsContentMap
.
get
(
qualificationsContent
);
case
"qsc"
:
String
dictValue
=
qualifications
.
getDictValue
();
extSupplierVO
.
setQscQualificationsContent
(
dictValue
);
switch
(
qualificationsContent
)
{
extSupplierVO
.
setQscCertificateNumber
(
certificateNumber
);
case
"qsc"
:
extSupplierVO
.
setQscCertificateTime
(
certificateTime
);
extSupplierVO
.
setQscQualificationsContent
(
dictValue
);
break
;
extSupplierVO
.
setQscCertificateNumber
(
certificateNumber
);
case
"sp"
:
extSupplierVO
.
setQscCertificateTime
(
certificateTime
);
extSupplierVO
.
setSpQualificationsContent
(
dictValue
);
break
;
extSupplierVO
.
setSpCertificateNumber
(
certificateNumber
);
case
"sp"
:
extSupplierVO
.
setSpCertificateTime
(
certificateTime
);
extSupplierVO
.
setSpQualificationsContent
(
dictValue
);
break
;
extSupplierVO
.
setSpCertificateNumber
(
certificateNumber
);
case
"cqc"
:
extSupplierVO
.
setSpCertificateTime
(
certificateTime
);
extSupplierVO
.
setCqcQualificationsContent
(
dictValue
);
break
;
extSupplierVO
.
setCqcCertificateNumber
(
certificateNumber
);
case
"cqc"
:
extSupplierVO
.
setCqcCertificateTime
(
certificateTime
);
extSupplierVO
.
setCqcQualificationsContent
(
dictValue
);
break
;
extSupplierVO
.
setCqcCertificateNumber
(
certificateNumber
);
case
"cqm"
:
extSupplierVO
.
setCqcCertificateTime
(
certificateTime
);
extSupplierVO
.
setCqmQualificationsContent
(
dictValue
);
break
;
extSupplierVO
.
setCqmCertificateNumber
(
certificateNumber
);
case
"cqm"
:
extSupplierVO
.
setCqmCertificateTime
(
certificateTime
);
extSupplierVO
.
setCqmQualificationsContent
(
dictValue
);
break
;
extSupplierVO
.
setCqmCertificateNumber
(
certificateNumber
);
default
:
extSupplierVO
.
setCqmCertificateTime
(
certificateTime
);
break
;
break
;
}
default
:
break
;
}
}
list
.
add
(
extSupplierVO
);
}
}
list
.
add
(
extSupplierVO
);
}
}
return
list
;
return
list
;
}
}
...
...
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