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
0a8b4407
Commit
0a8b4407
authored
Oct 10, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2557ad98
b6062144
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
EasyExcelUtils.java
.../java/com/yonde/dcs/plan/common/utils/EasyExcelUtils.java
+1
-1
ExtPlanServiceImpl.java
.../yonde/dcs/plan/core/service/impl/ExtPlanServiceImpl.java
+7
-6
ExtSupplierManageServiceImpl.java
.../plan/core/service/impl/ExtSupplierManageServiceImpl.java
+1
-1
No files found.
dcs-plan-common/src/main/java/com/yonde/dcs/plan/common/utils/EasyExcelUtils.java
View file @
0a8b4407
...
@@ -124,7 +124,7 @@ public class EasyExcelUtils {
...
@@ -124,7 +124,7 @@ public class EasyExcelUtils {
response
.
setContentType
(
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
);
response
.
setContentType
(
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
);
response
.
setCharacterEncoding
(
"utf-8"
);
response
.
setCharacterEncoding
(
"utf-8"
);
String
fileName
=
URLEncoder
.
encode
(
rawFileName
,
"UTF-8"
).
replaceAll
(
"\\+"
,
"%20"
);
String
fileName
=
URLEncoder
.
encode
(
rawFileName
,
"UTF-8"
).
replaceAll
(
"\\+"
,
"%20"
);
response
.
setHeader
(
"Content-disposition"
,
"attachment;filename
*=utf-8''
"
+
fileName
+
".xlsx"
);
response
.
setHeader
(
"Content-disposition"
,
"attachment;filename
=
"
+
fileName
+
".xlsx"
);
}
}
/**
/**
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtPlanServiceImpl.java
View file @
0a8b4407
...
@@ -192,7 +192,7 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
...
@@ -192,7 +192,7 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
case
"新增"
:
case
"新增"
:
//先校验
//先校验
stringBuffer
=
this
.
checkPlan
(
excelVO
,
i
,
stringBuffer
,
projectId
);
stringBuffer
=
this
.
checkPlan
(
excelVO
,
i
,
stringBuffer
,
projectId
);
stringBuffer
=
this
.
checkFileNumber
(
excelVO
,
i
,
stringBuffer
);
/*stringBuffer = this.checkFileNumber(excelVO, i, stringBuffer);*/
addPlans
.
add
(
excelVO
);
addPlans
.
add
(
excelVO
);
break
;
break
;
case
"更改"
:
case
"更改"
:
...
@@ -327,8 +327,8 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
...
@@ -327,8 +327,8 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
return
""
;
return
""
;
}
else
{
}
else
{
for
(
DictDataVO
dictDataVO
:
dictDatasByDictCode
)
{
for
(
DictDataVO
dictDataVO
:
dictDatasByDictCode
)
{
if
(
dictKey
.
equals
(
dictDataVO
.
getDict
Key
()))
{
if
(
dictKey
.
equals
(
dictDataVO
.
getDict
Value
()))
{
return
dictDataVO
.
getDict
Value
();
return
dictDataVO
.
getDict
Key
();
}
}
}
}
return
""
;
return
""
;
...
@@ -397,7 +397,7 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
...
@@ -397,7 +397,7 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
* @param stringBuffer
* @param stringBuffer
* @return
* @return
*/
*/
private
StringBuffer
checkFileNumber
(
PlanExcelVO
excelVO
,
int
i
,
StringBuffer
stringBuffer
)
{
/*
private StringBuffer checkFileNumber(PlanExcelVO excelVO, int i, StringBuffer stringBuffer) {
//fileNumber可能会已存在,校验编号重复问题
//fileNumber可能会已存在,校验编号重复问题
DxDocumentVO searchDocByNumber = this.searchDocByNumber(excelVO.getFileNumber());
DxDocumentVO searchDocByNumber = this.searchDocByNumber(excelVO.getFileNumber());
if (!ObjectUtils.isEmpty(searchDocByNumber)) {
if (!ObjectUtils.isEmpty(searchDocByNumber)) {
...
@@ -405,7 +405,7 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
...
@@ -405,7 +405,7 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
}
}
return stringBuffer;
return stringBuffer;
}
}
*/
/**
/**
* 通过number查询文档
* 通过number查询文档
...
@@ -553,7 +553,8 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
...
@@ -553,7 +553,8 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
extPlanVO
.
setNumber
(
planExcelVO
.
getNumber
());
extPlanVO
.
setNumber
(
planExcelVO
.
getNumber
());
extPlanVO
.
setOperator
(
operatorType
);
extPlanVO
.
setOperator
(
operatorType
);
// 密级
// 密级
extPlanVO
.
setSecretCode
(
planExcelVO
.
getSecretCode
());
String
secretCodeKey
=
this
.
searchDictDataByDictCode
(
Constants
.
SECRET_CODE
,
planExcelVO
.
getSecretCode
());
extPlanVO
.
setSecretCode
(
secretCodeKey
);
// 反馈类型
// 反馈类型
String
feedbackType
=
extPlanVO
.
getFeedbackType
();
String
feedbackType
=
extPlanVO
.
getFeedbackType
();
switch
(
feedbackType
)
{
switch
(
feedbackType
)
{
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtSupplierManageServiceImpl.java
View file @
0a8b4407
...
@@ -150,7 +150,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
...
@@ -150,7 +150,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
log
.
info
(
"changeStatus.条数:{}"
,
content
.
size
());
log
.
info
(
"changeStatus.条数:{}"
,
content
.
size
());
for
(
ExtSupplierManageVO
extSupplierManageVO
:
content
)
{
for
(
ExtSupplierManageVO
extSupplierManageVO
:
content
)
{
Long
id
=
extSupplierManageVO
.
getId
();
Long
id
=
extSupplierManageVO
.
getId
();
this
.
changeStatus
(
id
,
"Expired"
,
true
);
this
.
changeStatus
(
id
,
Constants
.
CONTEXT_DISABLE
,
true
);
}
}
}
}
...
...
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