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
29055dbe
Commit
29055dbe
authored
Dec 24, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
77
parent
e00caea3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
12 deletions
+55
-12
ComProjectServiceImpl.java
...m/yiboshi/science/service/impl/ComProjectServiceImpl.java
+55
-12
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
View file @
29055dbe
package
com
.
yiboshi
.
science
.
service
.
impl
;
package
com
.
yiboshi
.
science
.
service
.
impl
;
import
com.alibaba.excel.util.StringUtils
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yiboshi.arch.exception.BusinessException
;
import
com.yiboshi.arch.exception.BusinessException
;
...
@@ -332,7 +333,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -332,7 +333,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
}
}
ComProjectMembersDTO
comProjectMembersDTO
=
comProjectMembersService
.
getMemCountById
(
id
);
ComProjectMembersDTO
comProjectMembersDTO
=
comProjectMembersService
.
getMemCountById
(
id
);
dto
.
setMemCount
(
comProjectMembersDTO
.
getMemCount
());
dto
.
setMemCount
(
comProjectMembersDTO
.
getMemCount
()
+
1
);
dto
.
setMemHighCount
(
comProjectMembersDTO
.
getMemHighCount
());
dto
.
setMemHighCount
(
comProjectMembersDTO
.
getMemHighCount
());
dto
.
setMemMiddleCount
(
comProjectMembersDTO
.
getMemMiddleCount
());
dto
.
setMemMiddleCount
(
comProjectMembersDTO
.
getMemMiddleCount
());
dto
.
setMemLowCount
(
comProjectMembersDTO
.
getMemLowCount
());
dto
.
setMemLowCount
(
comProjectMembersDTO
.
getMemLowCount
());
...
@@ -342,6 +343,48 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -342,6 +343,48 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
dto
.
setMemXsCount
(
comProjectMembersDTO
.
getMemXsCount
());
dto
.
setMemXsCount
(
comProjectMembersDTO
.
getMemXsCount
());
dto
.
setWorkCount
(
comProjectMembersDTO
.
getWorkCount
());
dto
.
setWorkCount
(
comProjectMembersDTO
.
getWorkCount
());
//申报人职称统计
if
(!
StringUtils
.
isEmpty
(
comPersonDTO
.
getTitle
()))
{
String
titleName
=
systemParameterService
.
judgmentTitleLevel
(
comPersonDTO
.
getTitle
());
if
(!
StringUtils
.
isEmpty
(
titleName
))
{
switch
(
titleName
)
{
case
"无职称"
:
case
"初级职称"
:
dto
.
setMemLowCount
(
dto
.
getMemLowCount
()
+
1
);
break
;
case
"中级职称"
:
dto
.
setMemMiddleCount
(
dto
.
getMemMiddleCount
()
+
1
);
break
;
case
"副高级职称"
:
case
"高级职称"
:
dto
.
setMemHighCount
(
dto
.
getMemHighCount
()
+
1
);
break
;
}
}
}
//申报人学历统计
if
(!
StringUtils
.
isEmpty
(
comPersonDTO
.
getDegreeName
()))
{
switch
(
comPersonDTO
.
getDegreeName
())
{
case
"博士后"
:
dto
.
setMemBshCount
(
dto
.
getMemBshCount
()
+
1
);
break
;
case
"博士"
:
dto
.
setMemBsCount
(
dto
.
getMemBsCount
()
+
1
);
break
;
case
"硕士"
:
dto
.
setMemSsCount
(
dto
.
getMemSsCount
()
+
1
);
break
;
case
"学士"
:
dto
.
setMemXsCount
(
dto
.
getMemXsCount
()
+
1
);
break
;
case
"大专"
:
case
"其他"
:
break
;
}
}
//获取项目组成员
//获取项目组成员
List
<
ComProjectMembersDTO
>
memList
=
comProjectMembersService
.
getListByObjectId
(
dto
.
getId
());
List
<
ComProjectMembersDTO
>
memList
=
comProjectMembersService
.
getListByObjectId
(
dto
.
getId
());
dto
.
setMembers
(
memList
);
dto
.
setMembers
(
memList
);
...
@@ -596,25 +639,25 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -596,25 +639,25 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
public
void
audit
(
ComProjectAuditDTO
dto
,
String
auditUnitId
,
String
auditTreeCode
)
{
public
void
audit
(
ComProjectAuditDTO
dto
,
String
auditUnitId
,
String
auditTreeCode
)
{
if
(
Objects
.
isNull
(
dto
.
getAuditObjectId
()))
if
(
Objects
.
isNull
(
dto
.
getAuditObjectId
()))
throw
new
BusinessException
(
"参数缺失!"
);
throw
new
BusinessException
(
"参数缺失!"
);
this
.
projAudit
(
dto
,
auditUnitId
,
auditTreeCode
);
this
.
projAudit
(
dto
,
auditUnitId
,
auditTreeCode
);
}
}
@Transactional
@Transactional
public
void
batchAudit
(
ComProjectAuditDTO
dto
,
String
auditUnitId
,
String
auditTreeCode
)
{
public
void
batchAudit
(
ComProjectAuditDTO
dto
,
String
auditUnitId
,
String
auditTreeCode
)
{
if
(
null
!=
dto
.
getIdList
()&&
dto
.
getIdList
().
size
()>
0
)
{
if
(
null
!=
dto
.
getIdList
()
&&
dto
.
getIdList
().
size
()
>
0
)
{
dto
.
getIdList
().
forEach
((
f
)->
{
dto
.
getIdList
().
forEach
((
f
)
->
{
dto
.
setId
(
f
);
dto
.
setId
(
f
);
this
.
projAudit
(
dto
,
auditUnitId
,
auditTreeCode
);
this
.
projAudit
(
dto
,
auditUnitId
,
auditTreeCode
);
});
});
}
else
{
}
else
{
throw
new
BusinessException
(
"未选择项目!"
);
throw
new
BusinessException
(
"未选择项目!"
);
}
}
}
}
@Transactional
@Transactional
public
void
projAudit
(
ComProjectAuditDTO
dto
,
String
auditUnitId
,
String
auditTreeCode
)
{
public
void
projAudit
(
ComProjectAuditDTO
dto
,
String
auditUnitId
,
String
auditTreeCode
)
{
ComProjectAudit
audit
=
comProjectAuditService
.
getById
(
dto
.
getId
());
ComProjectAudit
audit
=
comProjectAuditService
.
getById
(
dto
.
getId
());
if
(
null
==
audit
)
if
(
null
==
audit
)
throw
new
BusinessException
(
"审核记录不存在!"
);
throw
new
BusinessException
(
"审核记录不存在!"
);
if
(!
audit
.
getAuditResult
().
equals
(
CommonEnum
.
auditResult
.
waitAudit
.
getCode
()))
if
(!
audit
.
getAuditResult
().
equals
(
CommonEnum
.
auditResult
.
waitAudit
.
getCode
()))
throw
new
BusinessException
(
"所选项目已审核,请刷新列表后重新选择!"
);
throw
new
BusinessException
(
"所选项目已审核,请刷新列表后重新选择!"
);
...
...
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