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
7039a676
Commit
7039a676
authored
Oct 16, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改采购计划导出人员是id的问题
parent
0f88feef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
PurchasePlanExcelDataVerifyListenner.java
...n/core/listener/PurchasePlanExcelDataVerifyListenner.java
+1
-1
ExtPuchasePlanAttributeServiceImpl.java
...core/service/impl/ExtPuchasePlanAttributeServiceImpl.java
+3
-2
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/listener/PurchasePlanExcelDataVerifyListenner.java
View file @
7039a676
...
...
@@ -99,7 +99,7 @@ public class PurchasePlanExcelDataVerifyListenner extends AnalysisEventListener<
//校验表格中的数据是否合法
List
<
StringBuffer
>
errList
=
checkPurchasePlanExcelData
();
if
(
errList
.
size
()
>
0
)
{
throw
new
DxBusinessException
(
"
-1
"
,
"导入采购计划数据有误!!"
+
errList
.
toString
());
throw
new
DxBusinessException
(
"
0
"
,
"导入采购计划数据有误!!"
+
errList
.
toString
());
}
//清理list ,方便内存回收
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtPuchasePlanAttributeServiceImpl.java
View file @
7039a676
...
...
@@ -177,7 +177,8 @@ public class ExtPuchasePlanAttributeServiceImpl<V extends ExtPuchasePlanAttribut
extPuchasePlanExcelVO
.
setPurDesignFileSubmitTime
(
extPuchasePlanAttribute
.
getPurDesignFileSubmitTime
());
extPuchasePlanExcelVO
.
setContractActualSigningTime
(
extPuchasePlanAttribute
.
getContractActualSigningTime
());
extPuchasePlanExcelVO
.
setContractActualDeliveryTime
(
extPuchasePlanAttribute
.
getContractActualDeliveryTime
());
extPuchasePlanExcelVO
.
setPurDesignFileManager
(
extPuchasePlanAttribute
.
getPurDesignFileManager
());
Object
purDesignFileManager
=
extPuchasePlanAttribute
.
getDynamicAttrs
().
get
(
"userName"
);
extPuchasePlanExcelVO
.
setPurDesignFileManager
(
purDesignFileManager
!=
null
?
purDesignFileManager
.
toString
():
null
);
extPuchasePlanExcelVO
.
setPurchaseBudget
(
extPuchasePlanAttribute
.
getPurchaseBudget
());
//将密级转换为中文
String
secretCode
=
CommonUtils
.
searchDictDataValueByDictCode
(
Constants
.
SECRET_CODE
,
extPuchasePlanAttribute
.
getSecretCode
());
...
...
@@ -206,7 +207,7 @@ public class ExtPuchasePlanAttributeServiceImpl<V extends ExtPuchasePlanAttribut
multipartFile
=
fileManagerFeignService
.
feignDownloadIO
(
fileId
);
inputStream
=
new
ByteArrayInputStream
(
multipartFile
.
getBytes
());
}
catch
(
IOException
e
)
{
throw
new
DxBusinessException
(
"
-1"
,
"文件id:"
+
fileId
+
"在系统中未找到!"
);
throw
new
DxBusinessException
(
"
0"
,
"文件id:"
+
fileId
+
"在系统中未找到!"
);
}
EasyExcel
.
read
(
inputStream
,
ExtPuchasePlanExcelVO
.
class
,
...
...
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