Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
5e99ff4f
Commit
5e99ff4f
authored
Dec 17, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
ee8bb15d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
ComProjectServiceImpl.java
...m/yiboshi/science/service/impl/ComProjectServiceImpl.java
+24
-6
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
View file @
5e99ff4f
...
...
@@ -8,12 +8,9 @@ import com.yiboshi.science.base.Pagination;
import
com.yiboshi.science.config.bean.SystemProperties
;
import
com.yiboshi.science.config.security.SecurityUserHolder
;
import
com.yiboshi.science.dao.ComProjectDAO
;
import
com.yiboshi.science.entity.*
;
import
com.yiboshi.science.enumeration.CommonEnum
;
import
com.yiboshi.science.param.dto.*
;
import
com.yiboshi.science.entity.ComProject
;
import
com.yiboshi.science.entity.ComProjectAudit
;
import
com.yiboshi.science.entity.ComUnit
;
import
com.yiboshi.science.entity.SystemParameter
;
import
com.yiboshi.science.param.query.ComProjectQueryVO
;
import
com.yiboshi.science.service.*
;
import
com.yiboshi.science.utils.*
;
...
...
@@ -804,12 +801,33 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
@Transactional
public
String
ProjectSaveStep4
(
ComProjectDTO
dto
)
{
ComProject
comProject
=
convert2Entity
(
dto
);
ComProject
comProject
=
new
ComProject
();
comProject
.
setId
(
dto
.
getId
());
comProject
.
setCompleteStatus
(
dto
.
getCompleteStatus
());
if
(
Objects
.
nonNull
(
dto
.
getManagerDept
()))
comProject
.
setManagerDept
(
dto
.
getManagerDept
());
this
.
update
(
comProject
);
ComProjectBasic
comProjectBasic
=
new
ComProjectBasic
();
comProjectBasic
.
setProjId
(
dto
.
getId
());
if
(
Objects
.
nonNull
(
dto
.
getProjAttribute
()))
comProjectBasic
.
setProjAttribute
(
dto
.
getProjAttribute
());
else
comProjectBasic
.
setProjAttribute
(
"5b9d6509-aece-11ef-b6cb-0c42a1380f01"
);
//新增项目
if
(
Objects
.
nonNull
(
dto
.
getYearTarget
()))
comProjectBasic
.
setYearTarget
(
dto
.
getYearTarget
());
if
(
Objects
.
nonNull
(
dto
.
getYear1Goal
()))
comProjectBasic
.
setYear1Goal
(
dto
.
getYear1Goal
());
if
(
Objects
.
nonNull
(
dto
.
getYear2Goal
()))
comProjectBasic
.
setYear2Goal
(
dto
.
getYear2Goal
());
if
(
Objects
.
nonNull
(
dto
.
getYear3Goal
()))
comProjectBasic
.
setYear3Goal
(
dto
.
getYear3Goal
());
comProjectBasicService
.
insertOrUpdate
(
dto
);
if
(
null
!=
dto
.
getProjectKPI
().
getKpiList
()
||
dto
.
getProjectKPI
().
getKpiList
().
size
()
>
0
)
{
if
(
null
!=
dto
.
getProjectKPI
().
getKpiList
()
&&
dto
.
getProjectKPI
().
getKpiList
().
size
()
>
0
)
{
// 项目绩效指标表
comProjectKpitDetailService
.
insertList
(
dto
.
getProjectKPI
().
getKpiList
(),
dto
.
getId
());
}
...
...
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