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
d7e7792d
Commit
d7e7792d
authored
Dec 18, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
77
parent
88200f8e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
ComProjectServiceImpl.java
...m/yiboshi/science/service/impl/ComProjectServiceImpl.java
+10
-11
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
View file @
d7e7792d
...
...
@@ -724,13 +724,6 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
private
String
ProjectSaveStep0
(
ComProjectDTO
dto
)
{
String
ProjectID
=
""
;
dto
.
setFileId
(
dto
.
getDownloadId
());
if
(
Objects
.
nonNull
(
dto
.
getGovFunding
()))
{
if
(
dto
.
getGovFunding
().
compareTo
(
new
BigDecimal
(
50
))
>
-
1
)
{
dto
.
setProjClass
(
2
);
}
else
{
dto
.
setProjClass
(
1
);
}
}
if
(
Objects
.
isNull
(
dto
.
getId
()))
ProjectID
=
InsertProjectBaseInfo
(
dto
);
else
{
...
...
@@ -759,6 +752,13 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
@Transactional
public
String
ProjectSaveStep2
(
ComProjectDTO
dto
)
{
if
(
Objects
.
nonNull
(
dto
.
getGovFunding
()))
{
if
(
dto
.
getGovFunding
().
compareTo
(
new
BigDecimal
(
50
))
>
-
1
)
{
dto
.
setProjClass
(
2
);
}
else
{
dto
.
setProjClass
(
1
);
}
}
ComProject
comProject
=
convert2Entity
(
dto
);
this
.
update
(
comProject
);
...
...
@@ -1020,12 +1020,11 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
* 获取项目编号
*
* @param year 项目申报年度
* @param
knowledgeC
ode 学科代码
* @param
c
ode 学科代码
* @return
*/
private
String
getProjectNo
(
int
year
,
String
knowledgeCode
)
{
// return year + "-" + knowledgeCode + comProjectDAO.getProjectNo(year + "-" + knowledgeCode);
return
year
+
knowledgeCode
+
comProjectDAO
.
getProjectNo
(
year
+
knowledgeCode
);
private
String
getProjectNo
(
int
year
,
String
code
)
{
return
year
+
code
+
comProjectDAO
.
getProjectNo
(
year
+
code
);
}
/**
...
...
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