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
e3abca86
Commit
e3abca86
authored
Oct 17, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d50ab311
1e452fef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
ExtPlanServiceImpl.java
.../yonde/dcs/plan/core/service/impl/ExtPlanServiceImpl.java
+19
-19
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtPlanServiceImpl.java
View file @
e3abca86
...
...
@@ -326,7 +326,7 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
//校验编号是否已存在
ExtPlanVO
extPlanVOByNumber
=
this
.
searchByNumber
(
excelVO
.
getNumber
());
if
(!
StringUtils
.
isEmpty
(
extPlanVOByNumber
))
{
buffer
.
append
(
String
.
format
(
"第%s行,计划编号
编号
已存在"
,
i
+
1
)).
append
(
'\n'
);
buffer
.
append
(
String
.
format
(
"第%s行,计划编号已存在"
,
i
+
1
)).
append
(
'\n'
);
}
DxUserInfoVO
userByName
=
dxUserInfoFeign
.
getUserByName
(
excelVO
.
getPlanExecutor
());
if
(
StringUtils
.
isEmpty
(
userByName
))
{
...
...
@@ -439,63 +439,63 @@ public class ExtPlanServiceImpl<V extends ExtPlanVO> implements ExtPlanService<V
for
(
ExtPlanDocLinkVO
planDocLink
:
extPlanVO
.
getExtPlanDocLinks
())
{
if
(!
ObjectUtils
.
isEmpty
(
planDocLink
.
getTarget
()))
{
if
(!
extPlanVO
.
getNumber
().
equals
(
excelVO
.
getNumber
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划编号不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划编号不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
extPlanVO
.
getName
().
equals
(
excelVO
.
getName
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划名称不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划名称不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
int
compare
=
extPlanVO
.
getStartTime
().
compareTo
(
excelVO
.
getStartTime
());
if
(
compare
!=
0
)
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划开始时间不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划开始时间不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
extPlanVO
.
getFeedbackType
().
equals
(
excelVO
.
getFeedbackType
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划反馈类型不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划反馈类型不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
extPlanVO
.
getPlanExecutor
().
equals
(
excelVO
.
getPlanExecutor
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划执行人不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划执行人不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getFileType
(),
excelVO
.
getFileType
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划交付文件类型不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划交付文件类型不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getFileName
(),
excelVO
.
getFileName
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划交付文件名称不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划交付文件名称不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getFileNumber
(),
excelVO
.
getFileNumber
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划交付文件编号不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划交付文件编号不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getPhaseState
(),
excelVO
.
getPhaseState
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划阶段状态不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划阶段状态不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
DxDocumentVO
doc
=
planDocLink
.
getTarget
();
if
(
Constants
.
REVIEWING
.
equals
(
doc
.
getState
()))
{
if
(!
StringUtil
.
equals
(
extPlanVO
.
getBusinessPlanType
(),
excelVO
.
getBusinessPlanType
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划业务计划类型不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划业务计划类型不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getContractNo
(),
excelVO
.
getContractNo
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划合同编号不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划合同编号不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getSuperPlanCode
(),
excelVO
.
getSuperPlanCode
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划父级计划编号不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划父级计划编号不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getFileCode
(),
excelVO
.
getFileCode
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划文件代号不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划文件代号不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getProjectCode
(),
excelVO
.
getProjectCode
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划项目代号不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划项目代号不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getSystemCode
(),
excelVO
.
getSystemCode
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划管理信息系统编码不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划管理信息系统编码不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getReview
(),
excelVO
.
getReview
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划审核者不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划审核者不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getApprover
(),
excelVO
.
getApprover
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划批准者不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划批准者不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
if
(!
StringUtil
.
equals
(
extPlanVO
.
getVerifier
(),
excelVO
.
getVerifier
()))
{
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划审定者不允许修改"
,
i
+
1
)
+
"</br>"
);
stringBuffer
.
append
(
String
.
format
(
"第%s行的计划审定者不允许修改"
,
i
+
1
)
).
append
(
'\n'
);
}
}
}
...
...
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