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
1b2d717f
Commit
1b2d717f
authored
Sep 30, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c3595c76
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
ComProjectTaskController.java
...com/yiboshi/science/rest/v1/ComProjectTaskController.java
+0
-2
ComProjectTaskServiceImpl.java
...boshi/science/service/impl/ComProjectTaskServiceImpl.java
+1
-1
ComProjectTaskDAO.xml
...nce-admin/src/main/resources/mapper/ComProjectTaskDAO.xml
+1
-1
No files found.
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComProjectTaskController.java
View file @
1b2d717f
...
...
@@ -154,8 +154,6 @@ public class ComProjectTaskController extends BaseController<ComProjectTaskServi
public
void
export
(
@PathVariable
String
id
)
throws
DocumentException
,
IOException
{
try
{
ComProjectTaskDTO
dto
=
ComProjectTaskService
.
getTaskByProjId
(
id
);
List
<
ComFileDTO
>
fileList
=
dto
.
getFileList
().
stream
().
filter
(
s
->
s
.
getFileExplain
().
equals
(
"课题组成员签名表"
)||
s
.
getFileExplain
().
equals
(
"经费预算书"
)).
collect
(
Collectors
.
toList
());
dto
.
setFileList
(
fileList
);
List
<
SystemParameter
>
list
=
systemParameterService
.
getListByType
(
67
);
// WordUtils.getHtmlContent(dto, "C:\\Users\\kylin\\Desktop\\导出Pdf\\output.docx");
// 生成PDF文件字节数组
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectTaskServiceImpl.java
View file @
1b2d717f
...
...
@@ -157,7 +157,7 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
public
ComProjectTaskDTO
getTaskByProjId
(
String
projId
)
{
ComProjectTaskDTO
dto
=
ComProjectTaskDAO
.
getByProjId
(
projId
);
if
(
Objects
.
non
Null
(
dto
.
getReportYear
()))
{
if
(
Objects
.
is
Null
(
dto
.
getReportYear
()))
{
dto
.
setReportYear
(
DateUtils
.
getYear
());
}
BigDecimal
total
=
new
BigDecimal
(
0
);
...
...
science-admin/src/main/resources/mapper/ComProjectTaskDAO.xml
View file @
1b2d717f
...
...
@@ -8,7 +8,7 @@
</sql>
<select
id=
"getListByPage"
resultType=
"com.yiboshi.science.param.dto.ComProjectTaskDTO"
>
select b.id,ifnull(b.task_state,0) task_state,b.start_date,b.end_date,
c.id as proj_id,c.proj_name,c.proj_no,c.version_no,c.proj_class,
c
.report_year,c.start_date proj_start,c.end_date proj_end,
c.id as proj_id,c.proj_name,c.proj_no,c.version_no,c.proj_class,
b
.report_year,c.start_date proj_start,c.end_date proj_end,
c.proj_state,d.unit_name app_unit_name,e.person_name app_person_name
from com_project c
left join com_project_task b on b.proj_id=c.id
...
...
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