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
6aa876b1
Commit
6aa876b1
authored
Apr 15, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
61bc4639
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
ComProjectAuditServiceImpl.java
...oshi/science/service/impl/ComProjectAuditServiceImpl.java
+2
-2
ComProjectServiceImpl.java
...m/yiboshi/science/service/impl/ComProjectServiceImpl.java
+2
-1
ComProjectDAO.xml
science-admin/src/main/resources/mapper/ComProjectDAO.xml
+1
-1
ComUnitDAO.xml
science-admin/src/main/resources/mapper/ComUnitDAO.xml
+6
-0
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectAuditServiceImpl.java
View file @
6aa876b1
...
@@ -231,10 +231,10 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
...
@@ -231,10 +231,10 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
this
.
updateAudit
(
comProjectAudit
.
getId
(),
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
""
,
maxIndex
+
1
,
SecurityUserHolder
.
getPersonId
(),
new
Date
(),
null
,
null
,
null
,
null
);
this
.
updateAudit
(
comProjectAudit
.
getId
(),
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
""
,
maxIndex
+
1
,
SecurityUserHolder
.
getPersonId
(),
new
Date
(),
null
,
null
,
null
,
null
);
}
else
{
}
else
{
//插入上报表
//插入上报表
this
.
insertAudit
(
reportYear
,
auditType
,
auditObjectId
,
CommonEnum
.
auditMethod
.
audit
.
getCode
()
,
auditUnitId
,
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
treeCode
.
length
()
/
properties
.
getDefaultCodeLength
(),
maxIndex
+
1
,
SecurityUserHolder
.
getPersonId
());
this
.
insertAudit
(
reportYear
,
auditType
,
auditObjectId
,
auditMethod
,
auditUnitId
,
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
treeCode
.
length
()
/
properties
.
getDefaultCodeLength
(),
maxIndex
+
1
,
SecurityUserHolder
.
getPersonId
());
}
}
// 插入审核记录表
// 插入审核记录表
comProjectAuditNoteService
.
insertAuditNote
(
reportYear
,
auditType
,
auditObjectId
,
CommonEnum
.
auditMethod
.
audit
.
getCode
()
,
auditUnitId
,
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
treeCode
.
length
()
/
properties
.
getDefaultCodeLength
(),
maxIndex
+
1
,
SecurityUserHolder
.
getPersonId
());
comProjectAuditNoteService
.
insertAuditNote
(
reportYear
,
auditType
,
auditObjectId
,
auditMethod
,
auditUnitId
,
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
treeCode
.
length
()
/
properties
.
getDefaultCodeLength
(),
maxIndex
+
1
,
SecurityUserHolder
.
getPersonId
());
}
}
public
String
audit
(
ComProjectAudit
model
,
String
reportTreeCode
,
String
auditUnitTreeCode
)
{
public
String
audit
(
ComProjectAudit
model
,
String
reportTreeCode
,
String
auditUnitTreeCode
)
{
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
View file @
6aa876b1
...
@@ -934,7 +934,8 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -934,7 +934,8 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
&&
!
StringUtil
.
isContainsRole
(
SecurityUserHolder
.
getRoles
(),
CommonEnum
.
systemRole
.
topGov
.
getCode
().
toString
())
&&
!
StringUtil
.
isContainsRole
(
SecurityUserHolder
.
getRoles
(),
CommonEnum
.
systemRole
.
topGov
.
getCode
().
toString
())
&&
!
project
.
getProjState
().
equals
(
CommonEnum
.
projState
.
draft
.
getCode
())
&&
!
project
.
getProjState
().
equals
(
CommonEnum
.
projState
.
draft
.
getCode
())
&&
!
project
.
getProjState
().
equals
(
CommonEnum
.
projState
.
waitSubmit
.
getCode
())
&&
!
project
.
getProjState
().
equals
(
CommonEnum
.
projState
.
waitSubmit
.
getCode
())
&&
!
project
.
getProjState
().
equals
(
CommonEnum
.
projState
.
returnModify
.
getCode
()))
&&
!
project
.
getProjState
().
equals
(
CommonEnum
.
projState
.
returnModify
.
getCode
())
&&
!
project
.
getProjState
().
equals
(
CommonEnum
.
projState
.
lastModify
.
getCode
()))
throw
new
BusinessException
(
"项目已上报!"
);
throw
new
BusinessException
(
"项目已上报!"
);
ComProject
comProject
=
convert2Entity
(
dto
);
ComProject
comProject
=
convert2Entity
(
dto
);
comProjectBasicService
.
insertOrUpdate
(
dto
);
comProjectBasicService
.
insertOrUpdate
(
dto
);
...
...
science-admin/src/main/resources/mapper/ComProjectDAO.xml
View file @
6aa876b1
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</select>
</select>
<select
id=
"getCount"
resultType=
"com.yiboshi.science.param.dto.DataStatisticsDTO"
>
<select
id=
"getCount"
resultType=
"com.yiboshi.science.param.dto.DataStatisticsDTO"
>
SELECT ifnull(sum(case when proj_state in(-10,10) then 1 else 0 end),0) count1,
SELECT ifnull(sum(case when proj_state in(-10,10) then 1 else 0 end),0) count1,
ifnull(sum(case when proj_state
=30
then 1 else 0 end),0) count2,
ifnull(sum(case when proj_state
in(30,35)
then 1 else 0 end),0) count2,
ifnull(sum(case when proj_state in(20,22,24,26,28,40,50) then 1 else 0 end),0) count3,
ifnull(sum(case when proj_state in(20,22,24,26,28,40,50) then 1 else 0 end),0) count3,
ifnull(sum(case when proj_state is not null then 1 else 0 end),0) count4
ifnull(sum(case when proj_state is not null then 1 else 0 end),0) count4
FROM com_project c
FROM com_project c
...
...
science-admin/src/main/resources/mapper/ComUnitDAO.xml
View file @
6aa876b1
...
@@ -25,6 +25,12 @@
...
@@ -25,6 +25,12 @@
where a.id = #{id}
where a.id = #{id}
</select>
</select>
<select
id=
"getTopUnit"
resultType=
"com.yiboshi.science.param.dto.ComUnitDTO"
>
select a.*
from com_unit a
where length(a.tree_code) = #{len}
</select>
<select
id=
"getUnitByTreeCode"
resultType=
"com.yiboshi.science.param.dto.ComUnitDTO"
>
<select
id=
"getUnitByTreeCode"
resultType=
"com.yiboshi.science.param.dto.ComUnitDTO"
>
select a.*
select a.*
from com_unit a
from com_unit a
...
...
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