Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
yn-health-science
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
徐俊
yn-health-science
Commits
fa095afc
Commit
fa095afc
authored
Oct 10, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
91f612bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
22 deletions
+21
-22
ComProjectTaskServiceImpl.java
...boshi/science/service/impl/ComProjectTaskServiceImpl.java
+18
-19
TaskInfoToPDFUtil.java
...ain/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
+3
-3
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectTaskServiceImpl.java
View file @
fa095afc
...
@@ -303,8 +303,11 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
...
@@ -303,8 +303,11 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
//附件列表
//附件列表
List
<
ComFileDTO
>
fileList
=
ComFileService
.
getListByObjectId
(
dto
.
getId
(),
CommonEnum
.
fileType
.
projectTask
.
getCode
());
List
<
ComFileDTO
>
fileList
=
ComFileService
.
getListByObjectId
(
dto
.
getId
(),
CommonEnum
.
fileType
.
projectTask
.
getCode
());
if
(
null
==
fileList
||
fileList
.
size
()
==
0
)
if
(
null
==
fileList
||
fileList
.
size
()
==
0
)
{
fileList
=
ComFileService
.
getListByObjectId
(
dto
.
getProjId
(),
CommonEnum
.
fileType
.
project
.
getCode
());
List
<
ComFileDTO
>
projList
=
ComFileService
.
getListByObjectId
(
dto
.
getProjId
(),
CommonEnum
.
fileType
.
project
.
getCode
());
fileList
=
projList
.
stream
().
filter
(
e
->
null
!=
e
.
getFileExplain
()
&&
(
e
.
getFileExplain
().
equals
(
"课题组成员签名表"
)
||
e
.
getFileExplain
().
equals
(
"项目资金预算编制说明"
))).
collect
(
Collectors
.
toList
());
}
fileList
=
configureFileList
(
fileList
);
fileList
=
configureFileList
(
fileList
);
dto
.
setFileList
(
fileList
);
dto
.
setFileList
(
fileList
);
...
@@ -316,24 +319,20 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
...
@@ -316,24 +319,20 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
}
}
private
List
<
ComFileDTO
>
configureFileList
(
List
<
ComFileDTO
>
list
)
{
private
List
<
ComFileDTO
>
configureFileList
(
List
<
ComFileDTO
>
list
)
{
List
<
ComFileDTO
>
fileList
=
new
ArrayList
<>();
List
<
SystemParameter
>
parameterList
=
systemParameterService
.
getListByType
(
70
);
if
(
null
!=
list
&&
list
.
size
()
>
0
)
{
parameterList
.
forEach
(
p
->
{
fileList
=
list
.
stream
().
filter
(
e
->
null
!=
e
.
getFileExplain
()
List
<
ComFileDTO
>
findList
=
list
.
stream
().
filter
(
e
->
null
!=
e
.
getFileExplain
()
&&
e
.
getFileExplain
().
equals
(
p
.
getName
())).
collect
(
Collectors
.
toList
());
&&
(
e
.
getFileExplain
().
equals
(
"课题组成员签名表"
)
if
(
findList
.
size
()
==
0
)
{
||
e
.
getFileExplain
().
equals
(
"项目资金预算编制说明"
))).
collect
(
Collectors
.
toList
());
ComFileDTO
fileDTO
=
configureFile
(
p
.
getName
(),
p
.
getDisplayOrder
(),
p
.
getIsRequired
());
}
list
.
add
(
0
,
fileDTO
);
if
(
null
==
fileList
||
fileList
.
size
()
==
0
)
{
}
else
{
List
<
SystemParameter
>
parameterList
=
systemParameterService
.
getListByType
(
70
);
if
(!
p
.
getIsRequired
().
equals
(
null
)
&&
p
.
getIsRequired
())
List
<
ComFileDTO
>
finalFileList
=
fileList
;
findList
.
get
(
0
).
setRequired
(
true
);
parameterList
.
forEach
(
e
->
{
else
finalFileList
.
add
(
configureFile
(
e
.
getName
(),
e
.
getDisplayOrder
(),
e
.
getIsRequired
()));
findList
.
get
(
0
).
setRequired
(
false
);
});
}
}
fileList
.
forEach
(
p
->
{
p
.
setRequired
(
true
);
p
.
setIsRequired
(
true
);
});
});
return
fileL
ist
;
return
l
ist
;
}
}
private
ComFileDTO
configureFile
(
String
FileExplain
,
int
showIndex
,
Boolean
isRequired
)
{
private
ComFileDTO
configureFile
(
String
FileExplain
,
int
showIndex
,
Boolean
isRequired
)
{
...
...
science-admin/src/main/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
View file @
fa095afc
...
@@ -136,7 +136,7 @@ public class TaskInfoToPDFUtil {
...
@@ -136,7 +136,7 @@ public class TaskInfoToPDFUtil {
table
.
isLockedWidth
();
table
.
isLockedWidth
();
// 添加表格内容
// 添加表格内容
addTablePageCell
(
table
,
"项目名称:"
,
null
,
dto
.
getProjName
(),
4
,
labelFont
);
addTablePageCell
(
table
,
"项目名称:"
,
null
,
dto
.
getProjName
(),
4
,
labelFont
);
addTablePageCell
(
table
,
"项目下达单位(甲方):"
,
4
,
""
,
null
,
labelFont
);
addTablePageCell
(
table
,
"项目下达单位(甲方):"
,
4
,
"
云南省卫生健康委员会
"
,
null
,
labelFont
);
addTablePageCell
(
table
,
"项目承担单位(乙方):"
,
4
,
dto
.
getAppUnitName
(),
null
,
labelFont
);
addTablePageCell
(
table
,
"项目承担单位(乙方):"
,
4
,
dto
.
getAppUnitName
(),
null
,
labelFont
);
addTablePageCell
(
table
,
"项目负责人:"
,
2
,
dto
.
getAppPersonName
()
+
" 电话:"
+
dto
.
getMobile
(),
3
,
labelFont
);
addTablePageCell
(
table
,
"项目负责人:"
,
2
,
dto
.
getAppPersonName
()
+
" 电话:"
+
dto
.
getMobile
(),
3
,
labelFont
);
addTablePageCell
(
table
,
"项目起止年限:"
,
3
,
sdfM
.
format
(
dto
.
getStartDate
())
+
" 至 "
+
sdfM
.
format
(
dto
.
getEndDate
()),
2
,
labelFont
);
addTablePageCell
(
table
,
"项目起止年限:"
,
3
,
sdfM
.
format
(
dto
.
getStartDate
())
+
" 至 "
+
sdfM
.
format
(
dto
.
getEndDate
()),
2
,
labelFont
);
...
@@ -1294,7 +1294,7 @@ public class TaskInfoToPDFUtil {
...
@@ -1294,7 +1294,7 @@ public class TaskInfoToPDFUtil {
addCell
(
table
,
"甲方(项目下达单位)"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
table
,
"甲方(项目下达单位)"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
table
,
""
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
table
,
"
云南省卫生健康委员会
"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
String
commonTerms
=
"\n\n\n\n\n\n\n"
String
commonTerms
=
"\n\n\n\n\n\n\n"
+
" 经办人签字: 法定代表人(或授权代表): \n\n"
+
" 经办人签字: 法定代表人(或授权代表): \n\n"
...
@@ -1312,7 +1312,7 @@ public class TaskInfoToPDFUtil {
...
@@ -1312,7 +1312,7 @@ public class TaskInfoToPDFUtil {
table
.
addCell
(
timeCell
);
table
.
addCell
(
timeCell
);
addCell
(
table
,
"乙方(项目承担单位)"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
table
,
"乙方(项目承担单位)"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
table
,
""
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
table
,
dto
.
getAppUnitName
()
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
String
terms
=
"\n\n\n\n\n\n"
String
terms
=
"\n\n\n\n\n\n"
+
" 法定代表人(或授权代表): 项目负责人(签字): 财务负责人(签字):\n\n"
+
" 法定代表人(或授权代表): 项目负责人(签字): 财务负责人(签字):\n\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