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
c72126bf
Commit
c72126bf
authored
Jun 26, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
77be5e26
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
17 deletions
+60
-17
ComTalentApplyController.java
...com/yiboshi/science/rest/v1/ComTalentApplyController.java
+12
-0
ComTalentApplyService.java
...va/com/yiboshi/science/service/ComTalentApplyService.java
+2
-0
ComProjectAuditServiceImpl.java
...oshi/science/service/impl/ComProjectAuditServiceImpl.java
+15
-13
ComTalentApplyServiceImpl.java
...boshi/science/service/impl/ComTalentApplyServiceImpl.java
+31
-4
No files found.
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComTalentApplyController.java
View file @
c72126bf
...
...
@@ -83,6 +83,18 @@ public class ComTalentApplyController extends BaseController<ComTalentApplyServi
return
ResponseDataModel
.
ok
(
comTalentApplyService
.
getTalentApplyById
(
id
));
}
/**
* 查询申报人是否当前年度是否上报
*
* @param
*/
@ApiOperation
(
value
=
"根据id获取人才申报信息"
,
httpMethod
=
"GET"
,
notes
=
"根据id获取人才申报信息"
)
@GetMapping
@RequestMapping
(
"/isTalentExist"
)
public
ResponseDataModel
<
Boolean
>
isTalentExist
()
{
return
ResponseDataModel
.
ok
(
comTalentApplyService
.
isTalentExist
());
}
/**
* 创建基础人才申报信息
*/
...
...
science-admin/src/main/java/com/yiboshi/science/service/ComTalentApplyService.java
View file @
c72126bf
...
...
@@ -25,6 +25,8 @@ public interface ComTalentApplyService extends BaseService<ComTalentApplyQueryVO
ComTalentApplyDTO
getTalentApplyById
(
String
id
);
Boolean
isTalentExist
();
/**
* 删除人才申报信息
*
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectAuditServiceImpl.java
View file @
c72126bf
...
...
@@ -221,7 +221,7 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
return
page
;
}
public
void
report
(
Integer
reportYear
,
String
auditObjectId
,
Integer
auditType
,
Integer
auditMethod
,
String
auditUnitId
,
String
treeCode
)
{
public
void
report
(
Integer
reportYear
,
String
auditObjectId
,
Integer
auditType
,
Integer
auditMethod
,
String
auditUnitId
,
String
treeCode
)
{
if
(
null
==
auditMethod
)
auditMethod
=
CommonEnum
.
auditMethod
.
audit
.
getCode
();
int
maxIndex
=
this
.
getMaxAuditIndex
(
auditObjectId
);
...
...
@@ -260,19 +260,21 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
// 审核通过
if
(
model
.
getAuditResult
().
equals
(
CommonEnum
.
auditResult
.
pass
.
getCode
()))
{
if
(
unitLevel
.
equals
(
1
))
{
if
(
auditMethod
.
equals
(
CommonEnum
.
auditMethod
.
audit
.
getCode
())
&&
auditType
.
equals
(
1
))
{
// 查询上级单位上报记录
ComProjectAudit
auditNote
=
this
.
getAudit
(
auditObjectId
,
auditUnitId
,
auditType
,
CommonEnum
.
auditMethod
.
last
.
getCode
(),
null
);
if
(
null
!=
auditNote
)
{
// 更新上级单位上报记录
this
.
updateAudit
(
auditNote
.
getId
(),
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
""
,
index
+
1
,
SecurityUserHolder
.
getPersonId
(),
new
Date
(),
null
,
null
,
null
,
null
);
}
else
{
//插入上报表
this
.
insertAudit
(
reportYear
,
auditType
,
auditObjectId
,
CommonEnum
.
auditMethod
.
last
.
getCode
(),
auditUnitId
,
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
unitLevel
,
index
+
1
,
SecurityUserHolder
.
getPersonId
());
if
(
auditMethod
.
equals
(
CommonEnum
.
auditMethod
.
audit
.
getCode
()))
{
if
(
model
.
getAuditType
().
equals
(
CommonEnum
.
auditType
.
project
.
getCode
()))
{
// 查询上级单位上报记录
ComProjectAudit
auditNote
=
this
.
getAudit
(
auditObjectId
,
auditUnitId
,
auditType
,
CommonEnum
.
auditMethod
.
last
.
getCode
(),
null
);
if
(
null
!=
auditNote
)
{
// 更新上级单位上报记录
this
.
updateAudit
(
auditNote
.
getId
(),
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
""
,
index
+
1
,
SecurityUserHolder
.
getPersonId
(),
new
Date
(),
null
,
null
,
null
,
null
);
}
else
{
//插入上报表
this
.
insertAudit
(
reportYear
,
auditType
,
auditObjectId
,
CommonEnum
.
auditMethod
.
last
.
getCode
(),
auditUnitId
,
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
unitLevel
,
index
+
1
,
SecurityUserHolder
.
getPersonId
());
}
// 插入审核记录表
comProjectAuditNoteService
.
insertAuditNote
(
reportYear
,
auditType
,
auditObjectId
,
CommonEnum
.
auditMethod
.
last
.
getCode
(),
auditUnitId
,
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
unitLevel
,
index
+
1
,
SecurityUserHolder
.
getPersonId
());
unitId
=
auditUnitId
;
}
// 插入审核记录表
comProjectAuditNoteService
.
insertAuditNote
(
reportYear
,
auditType
,
auditObjectId
,
CommonEnum
.
auditMethod
.
last
.
getCode
(),
auditUnitId
,
null
,
CommonEnum
.
auditResult
.
waitAudit
.
getCode
(),
null
,
unitLevel
,
index
+
1
,
SecurityUserHolder
.
getPersonId
());
unitId
=
auditUnitId
;
}
}
else
{
// 获取上级单位
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComTalentApplyServiceImpl.java
View file @
c72126bf
...
...
@@ -27,6 +27,7 @@ import java.util.stream.Collectors;
/**
* 人才申请表 Service 实现类
*
* @author xujun
* @version 2025-03-12
*/
...
...
@@ -100,8 +101,8 @@ public class ComTalentApplyServiceImpl extends BaseServiceImpl<ComTalentApplyDAO
CommonEnum
.
talentState
.
toAudit
.
getCode
(),
CommonEnum
.
talentState
.
failed
.
getCode
(),
CommonEnum
.
talentState
.
pass
.
getCode
());
//CommonEnum.talentState.report.getCode(),
//CommonEnum.talentState.conclusion.getCode());
//CommonEnum.talentState.report.getCode(),
//CommonEnum.talentState.conclusion.getCode());
break
;
case
4
:
break
;
...
...
@@ -225,9 +226,35 @@ public class ComTalentApplyServiceImpl extends BaseServiceImpl<ComTalentApplyDAO
dto
.
setAppPersonId
(
SecurityUserHolder
.
getPersonId
());
dto
.
setAppUnitId
(
SecurityUserHolder
.
getUnitId
());
ComPersonDTO
comPersonDTO
=
comPersonService
.
getPersonById
(
SecurityUserHolder
.
getPersonId
());
dto
.
setPersonId
(
comPersonDTO
.
getId
());
dto
.
setCertId
(
comPersonDTO
.
getCertId
());
dto
.
setPersonName
(
comPersonDTO
.
getPersonName
());
dto
.
setSex
(
comPersonDTO
.
getSex
());
dto
.
setNation
(
comPersonDTO
.
getNation
());
dto
.
setBirthday
(
comPersonDTO
.
getBirthday
());
dto
.
setDegree
(
comPersonDTO
.
getDegree
());
dto
.
setDegreeTime
(
comPersonDTO
.
getDegreeTime
());
dto
.
setDegreeUnit
(
comPersonDTO
.
getDegreeUnit
());
dto
.
setGraduateTeacher
(
comPersonDTO
.
getGraduateTeacher
());
dto
.
setTitle
(
comPersonDTO
.
getTitle
());
dto
.
setSpec
(
comPersonDTO
.
getSpec
());
dto
.
setMobile
(
comPersonDTO
.
getMobile
());
dto
.
setEmail
(
comPersonDTO
.
getEmail
());
dto
.
setFax
(
comPersonDTO
.
getFax
());
return
dto
;
}
public
Boolean
isTalentExist
()
{
ComTalentApply
talent
=
new
ComTalentApply
();
talent
.
setReportYear
(
comBatchService
.
getReportYear
(
null
,
CommonEnum
.
timeType
.
talentApply
.
getCode
()));
talent
.
setPersonId
(
SecurityUserHolder
.
getPersonId
());
talent
=
this
.
getEntity
(
talent
);
return
talent
==
null
?
false
:
true
;
}
public
ComTalentApplyDTO
getTalentApplyById
(
String
id
)
{
ComTalentApplyDTO
dto
=
comTalentApplyDAO
.
getById
(
id
);
if
(
null
==
dto
)
...
...
@@ -456,8 +483,8 @@ public class ComTalentApplyServiceImpl extends BaseServiceImpl<ComTalentApplyDAO
if
(
null
==
comTalentApply
)
throw
new
BusinessException
(
"人才申报记录不存在或已删除!"
);
if
(!
comTalentApply
.
getTalentState
().
equals
(
CommonEnum
.
talentState
.
waitSubmit
.
getCode
())
&&
!
comTalentApply
.
getTalentState
().
equals
(
CommonEnum
.
talentState
.
returnModify
.
getCode
()))
throw
new
BusinessException
(
"
项目
已上报!"
);
comProjectAuditService
.
report
(
comTalentApply
.
getReportYear
(),
model
.
getAuditObjectId
(),
model
.
getAuditType
(),
null
,
unitId
,
treeCode
);
throw
new
BusinessException
(
"
人才申报记录
已上报!"
);
comProjectAuditService
.
report
(
comTalentApply
.
getReportYear
(),
model
.
getAuditObjectId
(),
model
.
getAuditType
(),
null
,
unitId
,
treeCode
);
// 更新人才申报记录状态
comTalentApply
.
setTalentState
(
CommonEnum
.
projState
.
toAudit
.
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