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
d40747a4
Commit
d40747a4
authored
Apr 11, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b8207974
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
CommonEnum.java
...main/java/com/yiboshi/science/enumeration/CommonEnum.java
+1
-0
ComProjectAuditServiceImpl.java
...oshi/science/service/impl/ComProjectAuditServiceImpl.java
+10
-10
ComProjectServiceImpl.java
...m/yiboshi/science/service/impl/ComProjectServiceImpl.java
+4
-1
No files found.
science-admin/src/main/java/com/yiboshi/science/enumeration/CommonEnum.java
View file @
d40747a4
...
...
@@ -342,6 +342,7 @@ public class CommonEnum {
waitSubmit
(
10
,
"待提交"
),
toAudit
(
20
,
"评审中"
),
returnModify
(
30
,
"返回修改"
),
lastModify
(
35
,
"终审返回修改"
),
failed
(
40
,
"未批准立项"
),
pass
(
50
,
"批准立项"
),
report
(
55
,
"结题上报"
),
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectAuditServiceImpl.java
View file @
d40747a4
...
...
@@ -304,21 +304,21 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
}
//返回修改
else
if
(
model
.
getAuditResult
().
equals
(
CommonEnum
.
auditResult
.
returnModify
.
getCode
()))
{
if
(
auditMethod
.
equals
(
CommonEnum
.
auditMethod
.
last
.
getCode
()))
throw
new
BusinessException
(
"终审项目不能返回修改!"
);
unitLevel
=
unitLevel
+
1
;
// 跳过县级行政机构
if
(
reportTreeCode
.
length
()
/
properties
.
getDefaultCodeLength
()
>
3
&&
auditUnitTreeCode
.
length
()
/
properties
.
getDefaultCodeLength
()
==
2
)
{
unitLevel
=
comProjectAuditDAO
.
getMaxUnitLevelByObjectId
(
model
.
getAuditObjectId
());
}
//更新上报表
ComProjectAudit
auditNote
=
this
.
getAudit
(
auditObjectId
,
null
,
auditType
,
CommonEnum
.
auditMethod
.
audit
.
getCode
(),
unitLevel
);
if
(
null
!=
auditNote
)
{
// 更新下级单位上报记录
this
.
updateAudit
(
auditNote
.
getId
(),
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
""
,
index
+
1
,
SecurityUserHolder
.
getPersonId
(),
new
Date
(),
null
,
null
,
null
,
null
);
// 插入审核记录表
comProjectAuditNoteService
.
insertAuditNote
(
reportYear
,
auditType
,
auditObjectId
,
CommonEnum
.
auditMethod
.
audit
.
getCode
(),
auditNote
.
getAuditUnitId
(),
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
unitLevel
,
index
+
1
,
SecurityUserHolder
.
getPersonId
());
unitId
=
auditNote
.
getAuditUnitId
();
if
(!
model
.
getAuditMethod
().
equals
(
CommonEnum
.
auditMethod
.
last
.
getCode
()))
{
//更新上报表
ComProjectAudit
auditNote
=
this
.
getAudit
(
auditObjectId
,
null
,
auditType
,
CommonEnum
.
auditMethod
.
audit
.
getCode
(),
unitLevel
);
if
(
null
!=
auditNote
)
{
// 更新下级单位上报记录
this
.
updateAudit
(
auditNote
.
getId
(),
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
""
,
index
+
1
,
SecurityUserHolder
.
getPersonId
(),
new
Date
(),
null
,
null
,
null
,
null
);
// 插入审核记录表
comProjectAuditNoteService
.
insertAuditNote
(
reportYear
,
auditType
,
auditObjectId
,
CommonEnum
.
auditMethod
.
audit
.
getCode
(),
auditNote
.
getAuditUnitId
(),
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
unitLevel
,
index
+
1
,
SecurityUserHolder
.
getPersonId
());
unitId
=
auditNote
.
getAuditUnitId
();
}
}
}
return
unitId
;
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
View file @
d40747a4
...
...
@@ -700,7 +700,10 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
}
}
else
if
(
audit
.
getAuditResult
().
equals
(
CommonEnum
.
auditResult
.
returnModify
.
getCode
()))
{
if
(
unitId
==
null
)
projState
=
CommonEnum
.
projState
.
returnModify
.
getCode
();
if
(
audit
.
getAuditMethod
().
equals
(
CommonEnum
.
auditMethod
.
last
.
getCode
()))
projState
=
CommonEnum
.
projState
.
lastModify
.
getCode
();
else
projState
=
CommonEnum
.
projState
.
returnModify
.
getCode
();
}
else
{
projState
=
CommonEnum
.
projState
.
failed
.
getCode
();
}
...
...
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