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
0f0f588f
Commit
0f0f588f
authored
Oct 13, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出供应商列表数据 排除资质为null的
parent
e27d85dd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
65 deletions
+58
-65
SignConstants.java
...va/com/yonde/dcs/plan/common/constants/SignConstants.java
+11
-14
ExpenditureContractUtils.java
...yonde/dcs/plan/core/factory/ExpenditureContractUtils.java
+8
-12
InComeContractUtils.java
.../com/yonde/dcs/plan/core/factory/InComeContractUtils.java
+6
-9
ExtSupplierManageServiceImpl.java
.../plan/core/service/impl/ExtSupplierManageServiceImpl.java
+33
-30
No files found.
dcs-plan-common/src/main/java/com/yonde/dcs/plan/common/constants/SignConstants.java
View file @
0f0f588f
...
...
@@ -13,16 +13,16 @@ import java.util.List;
public
final
class
SignConstants
{
//签名取值
public
static
final
String
SIGN_KEY_
PREPARED
=
"编制"
;
public
static
final
String
SIGN_KEY_
TSSH
=
"同室审核
"
;
public
static
final
String
SIGN_KEY_
FXTZSSH
=
"分系统总师审核
"
;
public
static
final
String
SIGN_KEY_
GY
=
"工艺
"
;
public
static
final
String
SIGN_KEY_
QF
=
"签发
"
;
public
static
final
String
SIGN_KEY_
ZTSSH
=
"总体室审核
"
;
public
static
final
String
SIGN_KEY_
APPROVED
=
"批准
"
;
public
static
final
String
SIGN_KEY_
STANDARD
=
"标准化
"
;
public
static
final
String
SIGN_KEY_
ZTS
=
"总体室
"
;
public
static
final
String
SIGN_KEY_ZTSQS
=
"总体室签审"
;
public
static
final
String
SIGN_KEY_
BZ
=
"编制"
;
public
static
final
String
SIGN_KEY_
SJX_IN_COME_CONTRACT
=
"设计项
"
;
public
static
final
String
SIGN_KEY_
ZTS_IN_COME_CONTRACT
=
"总体室
"
;
public
static
final
String
SIGN_KEY_
ZBB_IN_COME_CONTRACT
=
"质保部
"
;
public
static
final
String
SIGN_KEY_
BMB_IN_COME_CONTRACT
=
"保密办
"
;
public
static
final
String
SIGN_KEY_
XMBU_IN_COME_CONTRACT
=
"项目部
"
;
public
static
final
String
SIGN_KEY_
XMBAN_IN_COME_CONTRACT
=
"项目办
"
;
public
static
final
String
SIGN_KEY_
CBBM_IN_COME_CONTRACT
=
"承办部门
"
;
public
static
final
String
SIGN_KEY_
XMZGYLD_IN_COME_CONTRACT
=
"项目主管院领导
"
;
public
static
final
String
SIGN_KEY_TZSH
=
"提资审核"
;
public
static
final
String
SIGN_KEY_SH
=
"审核"
;
public
static
final
String
SIGN_KEY_CLJD
=
"编制不符合项处理单处理决定任务"
;
...
...
@@ -70,10 +70,7 @@ public final class SignConstants {
* 定义流程判断节点常量
*/
public
final
static
List
WfResultList
=
Arrays
.
asList
(
"通过"
,
"同意"
,
"提交签审"
,
"提交审阅"
,
"提交"
,
"提交提资审阅"
,
"不需要总体室会签"
,
"外协采购单位(过工程部)"
,
"设计协同单位及其他"
);
/**
* 定义总体室签审节点名称
*/
public
final
static
List
ZTSSignTaskList
=
Arrays
.
asList
(
SIGN_KEY_ZTS
,
SIGN_ZTS
,
SIGN_KEY_ZTSJKSC
);
/**
* 定义流程路由常量
*/
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/factory/ExpenditureContractUtils.java
View file @
0f0f588f
...
...
@@ -9,6 +9,7 @@ import com.yonde.dcs.plan.core.service.ExtExpenditureContractService;
import
com.yonde.dcs.plan.core.word.ImportWordService
;
import
com.yonde.dex.wfc.common.vo.DxWfProcessInfoVO
;
import
com.yonde.dex.wfc.common.vo.DxWfProcessTaskVO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
...
...
@@ -22,6 +23,7 @@ import java.util.List;
* @createTime 2022/02/22 14:35:00
*/
@Component
@Slf4j
public
class
ExpenditureContractUtils
{
@Autowired
...
...
@@ -29,6 +31,7 @@ public class ExpenditureContractUtils {
@Autowired
private
ImportWordService
importWordService
;
/**
* 填充评审会议资料数据
*
...
...
@@ -73,19 +76,12 @@ public class ExpenditureContractUtils {
List
<
DxWfProcessTaskVO
>
activities
=
wfProcessInfoVO
.
getHistoryInfo
();
if
(!
CollectionUtils
.
isEmpty
(
activities
))
{
//写入签名数据
jsonObject
.
put
(
"bz_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_PREPARED
));
jsonObject
.
put
(
"bz_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_PREPARED
));
jsonObject
.
put
(
"bz_comments"
,
extExpenditureContractService
.
getComments
(
activities
,
SignConstants
.
SIGN_KEY_PREPARED
));
jsonObject
.
put
(
"sh_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_SH
));
jsonObject
.
put
(
"sh_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_SH
));
//总体室审核
jsonObject
.
put
(
"zts_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_ZTSSH
));
jsonObject
.
put
(
"zts_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_ZTSSH
));
jsonObject
.
put
(
"zts_comments"
,
extExpenditureContractService
.
getComments
(
activities
,
SignConstants
.
SIGN_KEY_PREPARED
));
jsonObject
.
put
(
"pz_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_APPROVED
));
jsonObject
.
put
(
"pz_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_APPROVED
));
jsonObject
.
put
(
"pz_comments"
,
extExpenditureContractService
.
getComments
(
activities
,
SignConstants
.
SIGN_KEY_PREPARED
));
jsonObject
.
put
(
"bz_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_BZ
));
jsonObject
.
put
(
"bz_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_BZ
));
jsonObject
.
put
(
"bz_comments"
,
extExpenditureContractService
.
getComments
(
activities
,
SignConstants
.
SIGN_KEY_BZ
));
}
log
.
info
(
"settingDocData.jsonObject:{}"
,
jsonObject
.
toString
());
//模板名称
importWordService
.
getWordAllTable
(
jsonObject
,
path
+
file
+
".docx"
,
outFilePath
+
"outFile.docx"
);
return
jsonObject
;
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/factory/InComeContractUtils.java
View file @
0f0f588f
...
...
@@ -11,6 +11,7 @@ import com.yonde.dcs.plan.core.service.ExtExpenditureContractService;
import
com.yonde.dcs.plan.core.word.ImportWordService
;
import
com.yonde.dex.wfc.common.vo.DxWfProcessInfoVO
;
import
com.yonde.dex.wfc.common.vo.DxWfProcessTaskVO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
...
...
@@ -27,6 +28,7 @@ import java.util.Objects;
* @createTime 2022/02/22 14:35:00
*/
@Component
@Slf4j
public
class
InComeContractUtils
{
@Autowired
...
...
@@ -78,16 +80,11 @@ public class InComeContractUtils {
List
<
DxWfProcessTaskVO
>
activities
=
wfProcessInfoVO
.
getHistoryInfo
();
if
(!
CollectionUtils
.
isEmpty
(
activities
))
{
//写入签名数据
jsonObject
.
put
(
"bz_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_PREPARED
));
jsonObject
.
put
(
"bz_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_PREPARED
));
jsonObject
.
put
(
"sh_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_SH
));
jsonObject
.
put
(
"sh_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_SH
));
//总体室审核
jsonObject
.
put
(
"zts_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_ZTSSH
));
jsonObject
.
put
(
"zts_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_ZTSSH
));
jsonObject
.
put
(
"pz_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_APPROVED
));
jsonObject
.
put
(
"pz_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_APPROVED
));
jsonObject
.
put
(
"bz_photo"
,
extExpenditureContractService
.
getSignImage
(
activities
,
SignConstants
.
SIGN_KEY_BZ
));
jsonObject
.
put
(
"bz_date"
,
extExpenditureContractService
.
getEndDate
(
activities
,
SignConstants
.
SIGN_KEY_BZ
));
jsonObject
.
put
(
"bz_comments"
,
extExpenditureContractService
.
getComments
(
activities
,
SignConstants
.
SIGN_KEY_BZ
));
}
log
.
info
(
"settingDocData.jsonObject:{}"
,
jsonObject
.
toString
());
//模板名称
importWordService
.
getWordAllTable
(
jsonObject
,
path
+
file
+
".docx"
,
outFilePath
+
"outFile.docx"
);
return
jsonObject
;
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtSupplierManageServiceImpl.java
View file @
0f0f588f
...
...
@@ -179,7 +179,9 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
BeanUtils
.
copyProperties
(
extSupplierManageVO
,
extSupplierVO
);
DictDataVO
supplierType
=
supplierTypeMap
.
get
(
extSupplierManageVO
.
getSupplierType
());
extSupplierVO
.
setSupplierType
(
supplierType
.
getDictValue
());
for
(
ExtSupplierManageLinkVO
extSupplierManageLink
:
extSupplierManageVO
.
getExtSupplierManageLinks
())
{
List
<
ExtSupplierManageLinkVO
>
extSupplierManageLinks
=
extSupplierManageVO
.
getExtSupplierManageLinks
();
if
(
CollectionUtils
.
isNotEmpty
(
extSupplierManageLinks
))
{
for
(
ExtSupplierManageLinkVO
extSupplierManageLink
:
extSupplierManageLinks
)
{
ExtQualificationsVO
target
=
extSupplierManageLink
.
getTarget
();
String
qualificationsContent
=
target
.
getQualificationsContent
();
String
certificateNumber
=
target
.
getCertificateNumber
();
...
...
@@ -211,6 +213,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
break
;
}
}
}
list
.
add
(
extSupplierVO
);
}
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