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
6afc8acf
Commit
6afc8acf
authored
Jul 23, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a2c1f5f1
Show whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
119 additions
and
119 deletions
+119
-119
.gitignore
.gitignore
+1
-1
SecurityUserHolder.java
...m/yiboshi/science/config/security/SecurityUserHolder.java
+2
-2
loginUser.java
...n/java/com/yiboshi/science/config/security/loginUser.java
+1
-1
ComBatchDAO.java
...in/src/main/java/com/yiboshi/science/dao/ComBatchDAO.java
+1
-1
ComProjectAuditDAO.java
...main/java/com/yiboshi/science/dao/ComProjectAuditDAO.java
+1
-1
ComBatch.java
...in/src/main/java/com/yiboshi/science/entity/ComBatch.java
+1
-1
ComProject.java
.../src/main/java/com/yiboshi/science/entity/ComProject.java
+1
-1
CommonEnum.java
...main/java/com/yiboshi/science/enumeration/CommonEnum.java
+5
-5
ComBatchDTO.java
.../main/java/com/yiboshi/science/param/dto/ComBatchDTO.java
+1
-1
ComProjectAssignDTO.java
...va/com/yiboshi/science/param/dto/ComProjectAssignDTO.java
+1
-1
ComProjectAuditDTO.java
...ava/com/yiboshi/science/param/dto/ComProjectAuditDTO.java
+1
-1
ComProjectDTO.java
...ain/java/com/yiboshi/science/param/dto/ComProjectDTO.java
+1
-1
ComProjectTaskDTO.java
...java/com/yiboshi/science/param/dto/ComProjectTaskDTO.java
+1
-1
ComBatchQueryVO.java
...java/com/yiboshi/science/param/query/ComBatchQueryVO.java
+1
-1
ComProjectAssignQueryVO.java
.../yiboshi/science/param/query/ComProjectAssignQueryVO.java
+1
-1
ComProjectAuditQueryVO.java
...m/yiboshi/science/param/query/ComProjectAuditQueryVO.java
+1
-1
ComProjectQueryVO.java
...va/com/yiboshi/science/param/query/ComProjectQueryVO.java
+1
-1
ComProjectTaskQueryVO.java
...om/yiboshi/science/param/query/ComProjectTaskQueryVO.java
+1
-1
AuthorizationController.java
.../com/yiboshi/science/rest/v1/AuthorizationController.java
+1
-1
ComBatchController.java
.../java/com/yiboshi/science/rest/v1/ComBatchController.java
+4
-4
ComProjectAuditController.java
...om/yiboshi/science/rest/v1/ComProjectAuditController.java
+2
-2
ComProjectController.java
...ava/com/yiboshi/science/rest/v1/ComProjectController.java
+2
-2
ComProjectGroupController.java
...om/yiboshi/science/rest/v1/ComProjectGroupController.java
+2
-2
StatisticalController.java
...va/com/yiboshi/science/rest/v1/StatisticalController.java
+12
-12
SystemSetController.java
...java/com/yiboshi/science/rest/v1/SystemSetController.java
+1
-1
ComBatchService.java
...ain/java/com/yiboshi/science/service/ComBatchService.java
+6
-6
ComProjectAuditService.java
...a/com/yiboshi/science/service/ComProjectAuditService.java
+2
-2
ComProjectGroupService.java
...a/com/yiboshi/science/service/ComProjectGroupService.java
+1
-1
ComProjectService.java
...n/java/com/yiboshi/science/service/ComProjectService.java
+1
-1
ComBatchServiceImpl.java
...com/yiboshi/science/service/impl/ComBatchServiceImpl.java
+11
-11
ComProjectAssignServiceImpl.java
...shi/science/service/impl/ComProjectAssignServiceImpl.java
+7
-7
ComProjectAuditServiceImpl.java
...oshi/science/service/impl/ComProjectAuditServiceImpl.java
+4
-4
ComProjectGroupServiceImpl.java
...oshi/science/service/impl/ComProjectGroupServiceImpl.java
+2
-2
ComProjectServiceImpl.java
...m/yiboshi/science/service/impl/ComProjectServiceImpl.java
+16
-16
ComProjectTaskServiceImpl.java
...boshi/science/service/impl/ComProjectTaskServiceImpl.java
+8
-8
SystemSetServiceImpl.java
...om/yiboshi/science/service/impl/SystemSetServiceImpl.java
+6
-6
SystemSetKey.java
...src/main/java/com/yiboshi/science/utils/SystemSetKey.java
+1
-1
ComBatchDAO.xml
science-admin/src/main/resources/mapper/ComBatchDAO.xml
+3
-3
ComProjectAuditDAO.xml
...ce-admin/src/main/resources/mapper/ComProjectAuditDAO.xml
+1
-1
ComProjectDAO.xml
science-admin/src/main/resources/mapper/ComProjectDAO.xml
+2
-2
ComProjectTaskDAO.xml
...nce-admin/src/main/resources/mapper/ComProjectTaskDAO.xml
+1
-1
No files found.
.gitignore
View file @
6afc8acf
...
...
@@ -187,7 +187,7 @@ bin/
/science-admin/target/classes/com/yiboshi/science/enumeration/CommonEnum$loginState.class
/science-admin/target/classes/com/yiboshi/science/enumeration/CommonEnum$personState.class
/science-admin/target/classes/com/yiboshi/science/enumeration/CommonEnum$projState.class
/science-admin/target/classes/com/yiboshi/science/enumeration/CommonEnum$
proj
Type.class
/science-admin/target/classes/com/yiboshi/science/enumeration/CommonEnum$
system
Type.class
/science-admin/target/classes/com/yiboshi/science/enumeration/CommonEnum$systemRole.class
/science-admin/target/classes/com/yiboshi/science/enumeration/CommonEnum$taskState.class
/science-admin/target/classes/com/yiboshi/science/enumeration/CommonEnum$thesisState.class
...
...
science-admin/src/main/java/com/yiboshi/science/config/security/SecurityUserHolder.java
View file @
6afc8acf
...
...
@@ -134,8 +134,8 @@ public class SecurityUserHolder {
public
static
int
projectType
()
{
if
(
null
!=
getAuthType
()
&&
getAuthType
().
equals
(
"2"
))
return
CommonEnum
.
proj
Type
.
key
.
getCode
();
return
CommonEnum
.
system
Type
.
key
.
getCode
();
else
return
CommonEnum
.
proj
Type
.
num
.
getCode
();
return
CommonEnum
.
system
Type
.
num
.
getCode
();
}
}
science-admin/src/main/java/com/yiboshi/science/config/security/loginUser.java
View file @
6afc8acf
...
...
@@ -17,7 +17,7 @@ public class loginUser implements Serializable {
/** 申报类型 1 申报科研项目 2申报重点学科项目 3 同时申报*/
private
String
type
;
/** 项目类型 1 申报科研项目 2申报重点学科项目 */
private
String
proj
Type
;
private
String
system
Type
;
/** 信息是否完整 */
private
boolean
complete
;
/** 信息是否完整 */
...
...
science-admin/src/main/java/com/yiboshi/science/dao/ComBatchDAO.java
View file @
6afc8acf
...
...
@@ -13,5 +13,5 @@ import com.yiboshi.science.param.query.ComBatchQueryVO;
* @version 2021-08-26
*/
public
interface
ComBatchDAO
extends
BaseMapper
<
ComBatch
>,
BaseDAO
<
ComBatchQueryVO
,
ComBatchDTO
,
ComBatch
>
{
ComBatchDTO
getCurrentBatch
(
Integer
proj
Type
,
Integer
timeType
);
ComBatchDTO
getCurrentBatch
(
Integer
system
Type
,
Integer
timeType
);
}
science-admin/src/main/java/com/yiboshi/science/dao/ComProjectAuditDAO.java
View file @
6afc8acf
...
...
@@ -35,7 +35,7 @@ public interface ComProjectAuditDAO extends BaseMapper<ComProjectAudit>, BaseDAO
DataStatisticsDTO
getTalentAuditCount
(
@Param
(
"ew"
)
Wrapper
<
ComProject
>
queryWrapper
);
DataStatisticsDTO
getFirstAuditPassCount
(
@Param
(
"ew"
)
Wrapper
<
ComProject
>
queryWrapper
);
DataStatisticsDTO
getCountByDay
(
@Param
(
"ew"
)
Wrapper
<
ComProject
>
queryWrapper
);
DataStatisticsDTO
getAssignPersonCount
(
Integer
assignYear
,
Integer
proj
Type
);
DataStatisticsDTO
getAssignPersonCount
(
Integer
assignYear
,
Integer
system
Type
);
List
<
DataStatisticsDTO
>
getTreeCodeProjectCount
(
@Param
(
"ew"
)
Wrapper
<
ComProject
>
queryWrapper
,
String
treeCode
);
List
<
DataStatisticsDTO
>
getKnowledgeCount
(
@Param
(
"ew"
)
Wrapper
<
ComProject
>
queryWrapper
);
List
<
KnowledgeStatisticsDTO
>
getKnowledgeStatistic
(
@Param
(
"ew"
)
Wrapper
<
ComProjectAuditQueryVO
>
queryWrapper
);
...
...
science-admin/src/main/java/com/yiboshi/science/entity/ComBatch.java
View file @
6afc8acf
...
...
@@ -22,7 +22,7 @@ public class ComBatch extends BaseEntity {
/** 时间类型 1项目申报 2任务书上报 3中期考核 */
private
Integer
timeType
;
/** 批次类型 1科研项目申报 2重点学科申报 */
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 申报开始时间 */
private
Date
reportStart
;
/** 申报结束时间 */
...
...
science-admin/src/main/java/com/yiboshi/science/entity/ComProject.java
View file @
6afc8acf
...
...
@@ -63,7 +63,7 @@ public class ComProject extends BaseEntity {
private
Integer
projState
;
/** 项目类型 1 科研项目 2重点学科项目 */
@ApiModelProperty
(
value
=
"项目名称"
,
position
=
1
)
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 项目类别 (1 一般项目 2重点项目)*/
@ApiModelProperty
(
value
=
"项目类别 (1 一般项目 2重点项目)"
,
position
=
3
)
private
Integer
projClass
;
...
...
science-admin/src/main/java/com/yiboshi/science/enumeration/CommonEnum.java
View file @
6afc8acf
...
...
@@ -92,11 +92,11 @@ public class CommonEnum {
}
}
public
enum
proj
Type
implements
INumberEnum
{
public
enum
system
Type
implements
INumberEnum
{
num
(
1
,
"卫生健康领域科技计划项目"
),
key
(
2
,
"公立医院高水平临床专科建设科技项目"
);
proj
Type
(
int
number
,
String
description
)
{
system
Type
(
int
number
,
String
description
)
{
this
.
code
=
number
;
this
.
description
=
description
;
}
...
...
@@ -114,12 +114,12 @@ public class CommonEnum {
return
description
;
}
public
static
proj
Type
getEnum
(
Integer
value
)
{
for
(
projType
e
:
proj
Type
.
values
())
{
public
static
system
Type
getEnum
(
Integer
value
)
{
for
(
systemType
e
:
system
Type
.
values
())
{
if
(
e
.
getCode
().
equals
(
value
))
return
e
;
}
return
proj
Type
.
num
;
//For values out of enum scope
return
system
Type
.
num
;
//For values out of enum scope
}
}
...
...
science-admin/src/main/java/com/yiboshi/science/param/dto/ComBatchDTO.java
View file @
6afc8acf
...
...
@@ -27,7 +27,7 @@ public class ComBatchDTO extends BaseDTO {
/** 时间类型 1项目申报 2任务书上报 3中期考核 */
private
Integer
timeType
;
/** 批次类型 1科研项目申报 2重点学科申报 */
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 申报开始时间 */
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
reportStart
;
...
...
science-admin/src/main/java/com/yiboshi/science/param/dto/ComProjectAssignDTO.java
View file @
6afc8acf
...
...
@@ -173,7 +173,7 @@ public class ComProjectAssignDTO extends BaseDTO {
private
String
appNo
;
/** 项目类型 1 科研项目 2重点学科项目 */
@ApiModelProperty
(
value
=
"项目名称"
,
position
=
1
)
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 项目类别 1 一般项目 2重点项目 */
@ApiModelProperty
(
value
=
"项目类别"
,
position
=
1
)
private
Integer
projClass
;
...
...
science-admin/src/main/java/com/yiboshi/science/param/dto/ComProjectAuditDTO.java
View file @
6afc8acf
...
...
@@ -101,7 +101,7 @@ public class ComProjectAuditDTO extends BaseDTO {
private
String
projClass
;
/** 项目类型 1 科研项目 2重点学科项目 */
@ApiModelProperty
(
value
=
"项目名称"
,
position
=
1
)
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 项目类别 */
@ApiModelProperty
(
value
=
"项目类别"
,
position
=
3
)
private
String
projClassName
;
...
...
science-admin/src/main/java/com/yiboshi/science/param/dto/ComProjectDTO.java
View file @
6afc8acf
...
...
@@ -57,7 +57,7 @@ public class ComProjectDTO extends BaseDTO {
private
Integer
projState
;
/** 项目类型 1 科研项目 2重点学科项目 */
@ApiModelProperty
(
value
=
"项目名称"
,
position
=
1
)
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 项目类别 (1 一般项目 2重点项目)*/
@ApiModelProperty
(
value
=
"项目类别 (1 一般项目 2重点项目)"
,
position
=
3
)
private
Integer
projClass
;
...
...
science-admin/src/main/java/com/yiboshi/science/param/dto/ComProjectTaskDTO.java
View file @
6afc8acf
...
...
@@ -149,7 +149,7 @@ public class ComProjectTaskDTO extends BaseDTO {
private
String
projNo
;
/** 项目类型 */
@ApiModelProperty
(
value
=
"项目类型"
,
position
=
3
)
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 项目开始时间 */
@ApiModelProperty
(
value
=
"项目开始时间"
,
position
=
10
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
...
...
science-admin/src/main/java/com/yiboshi/science/param/query/ComBatchQueryVO.java
View file @
6afc8acf
...
...
@@ -26,7 +26,7 @@ public class ComBatchQueryVO extends PaginationVO{
/** 时间类型 1项目申报 2任务书上报 3中期考核 */
private
Integer
timeType
;
/** 批次类型 1科研项目申报 2重点学科申报 */
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 申报开始时间 */
private
Date
reportStart
;
/** 申报结束时间 */
...
...
science-admin/src/main/java/com/yiboshi/science/param/query/ComProjectAssignQueryVO.java
View file @
6afc8acf
...
...
@@ -141,7 +141,7 @@ public class ComProjectAssignQueryVO extends PaginationVO {
private
String
projNo
;
/** 项目类型 1 科研项目 2重点学科项目 */
@ApiModelProperty
(
value
=
"项目名称"
,
position
=
1
)
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 姓名 */
@ExcelProperty
(
"姓名"
)
@ApiModelProperty
(
value
=
"姓名"
,
position
=
3
)
...
...
science-admin/src/main/java/com/yiboshi/science/param/query/ComProjectAuditQueryVO.java
View file @
6afc8acf
...
...
@@ -75,7 +75,7 @@ public class ComProjectAuditQueryVO extends PaginationVO{
private
String
projClass
;
/** 项目类型 1 科研项目 2重点学科项目 */
@ApiModelProperty
(
value
=
"项目名称"
,
position
=
1
)
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 二级学科Id */
@ApiModelProperty
(
value
=
"二级学科Id"
,
position
=
4
)
private
String
knowledgeParentId
;
...
...
science-admin/src/main/java/com/yiboshi/science/param/query/ComProjectQueryVO.java
View file @
6afc8acf
...
...
@@ -63,7 +63,7 @@ public class ComProjectQueryVO extends PaginationVO{
private
Integer
projState
;
/** 项目类型 1 科研项目 2重点学科项目 */
@ApiModelProperty
(
value
=
"项目名称"
,
position
=
1
)
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 项目类别 (1 一般项目 2重点项目)*/
@ApiModelProperty
(
value
=
"项目类别 (1 一般项目 2重点项目)"
,
position
=
3
)
private
Integer
projClass
;
...
...
science-admin/src/main/java/com/yiboshi/science/param/query/ComProjectTaskQueryVO.java
View file @
6afc8acf
...
...
@@ -145,7 +145,7 @@ public class ComProjectTaskQueryVO extends PaginationVO{
private
String
projNo
;
/** 项目类型 */
@ApiModelProperty
(
value
=
"项目类型"
,
position
=
3
)
private
Integer
proj
Type
;
private
Integer
system
Type
;
/** 项目开始时间 */
@ApiModelProperty
(
value
=
"项目开始时间"
,
position
=
10
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/AuthorizationController.java
View file @
6afc8acf
...
...
@@ -172,7 +172,7 @@ public class AuthorizationController {
StringUtil
.
copyObj2Obj
(
SecurityUserHolder
.
getCurrentUser
(),
user
);
user
.
setType
(
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
if
(!
user
.
getType
().
equals
(
"3"
)){
user
.
set
Proj
Type
(
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
user
.
set
System
Type
(
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
}
if
(
SecurityUserHolder
.
getRoles
().
contains
(
CommonEnum
.
systemRole
.
personal
.
getCode
().
toString
()))
{
ComPerson
person
=
comPersonService
.
getById
(
SecurityUserHolder
.
getPersonId
());
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComBatchController.java
View file @
6afc8acf
...
...
@@ -73,8 +73,8 @@ public class ComBatchController extends BaseController<ComBatchService, ComBatch
@ApiOperation
(
value
=
"获取当前申报或审核时间"
,
httpMethod
=
"GET"
,
notes
=
"获取当前申报或审核时间"
)
@GetMapping
@RequestMapping
(
"/getCurrentYearBatch"
)
public
ResponseDataModel
<
ComBatchDTO
>
getCurrentYearBatch
(
int
type
,
Integer
proj
Type
,
Integer
timeType
)
{
return
ResponseDataModel
.
ok
(
comBatchService
.
getCurrentYearBatch
(
type
,
proj
Type
,
timeType
));
public
ResponseDataModel
<
ComBatchDTO
>
getCurrentYearBatch
(
int
type
,
Integer
system
Type
,
Integer
timeType
)
{
return
ResponseDataModel
.
ok
(
comBatchService
.
getCurrentYearBatch
(
type
,
system
Type
,
timeType
));
}
/**
...
...
@@ -83,8 +83,8 @@ public class ComBatchController extends BaseController<ComBatchService, ComBatch
@ApiOperation
(
value
=
"获取申报年度下拉列表"
,
httpMethod
=
"GET"
,
notes
=
"获取申报年度下拉列表"
)
@GetMapping
@RequestMapping
(
"/getCurrentReportYearList"
)
public
ResponseDataModel
<
Map
<
String
,
Object
>>
getCurrentReportYearList
(
Integer
proj
Type
)
{
ComBatchDTO
comBatchDTO
=
comBatchService
.
getCurrentBatch
(
proj
Type
,
null
);
public
ResponseDataModel
<
Map
<
String
,
Object
>>
getCurrentReportYearList
(
Integer
system
Type
)
{
ComBatchDTO
comBatchDTO
=
comBatchService
.
getCurrentBatch
(
system
Type
,
null
);
Integer
year
=
(
null
!=
comBatchDTO
&&
Objects
.
nonNull
(
comBatchDTO
.
getYear
()))
?
comBatchDTO
.
getYear
()
:
Calendar
.
getInstance
().
get
(
Calendar
.
YEAR
);
List
<
SelectListItem
>
list
=
new
ArrayList
<>();
for
(
Integer
i
=
year
;
i
>
year
-
10
;
i
--)
{
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComProjectAuditController.java
View file @
6afc8acf
...
...
@@ -253,7 +253,7 @@ public class ComProjectAuditController extends BaseController<ComProjectAuditSer
@RequestMapping
(
"/getAssignProjectListByPage"
)
public
ResponseDataModel
<
Pagination
<
ComProjectAuditDTO
>>
getAssignProjectListByPage
(
@Validated
ComProjectAuditQueryVO
vo
,
BindingResult
bindingResult
)
{
vo
.
setAuditUnitId
(
SecurityUserHolder
.
getUnitId
());
vo
.
set
Proj
Type
(
SecurityUserHolder
.
projectType
());
vo
.
set
System
Type
(
SecurityUserHolder
.
projectType
());
vo
.
setAuditType
(
1
);
vo
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
last
.
getCode
());
return
ResponseDataModel
.
ok
(
comProjectAuditService
.
getAuditListByPage
(
vo
));
...
...
@@ -265,7 +265,7 @@ public class ComProjectAuditController extends BaseController<ComProjectAuditSer
public
ResponseDataModel
<
Pagination
<
ComProjectAuditDTO
>>
getUnAssignProjectListByPage
(
@Validated
ComProjectAuditQueryVO
vo
,
BindingResult
bindingResult
)
{
vo
.
setAuditUnitId
(
SecurityUserHolder
.
getUnitId
());
vo
.
setKnowledgeId
(
null
);
//vo.set
Proj
Type(SecurityUserHolder.projectType());
//vo.set
System
Type(SecurityUserHolder.projectType());
vo
.
setAuditType
(
1
);
vo
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
last
.
getCode
());
return
ResponseDataModel
.
ok
(
comProjectAuditService
.
getUnAssignProjectListByPage
(
vo
));
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComProjectController.java
View file @
6afc8acf
...
...
@@ -103,8 +103,8 @@ public class ComProjectController extends BaseController<ComProjectService, ComP
@ApiOperation
(
value
=
"创建基础项目信息"
,
httpMethod
=
"GET"
,
notes
=
"创建基础项目信息"
)
@GetMapping
@RequestMapping
(
"/getNewProject"
)
public
ResponseDataModel
<
ComProjectDTO
>
getNewProject
(
Integer
proj
Type
)
{
return
ResponseDataModel
.
ok
(
comProjectService
.
getNewProject
(
proj
Type
));
public
ResponseDataModel
<
ComProjectDTO
>
getNewProject
(
Integer
system
Type
)
{
return
ResponseDataModel
.
ok
(
comProjectService
.
getNewProject
(
system
Type
));
}
/**
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/ComProjectGroupController.java
View file @
6afc8acf
...
...
@@ -82,14 +82,14 @@ public class ComProjectGroupController extends BaseController<ComProjectGroupSer
@ApiOperation
(
value
=
"项目组专家分配"
,
httpMethod
=
"GET"
,
notes
=
"项目组专家分配"
)
@GetMapping
@RequestMapping
(
"/assignProjectGroup"
)
public
ResponseDataModel
<
String
>
assignProjectGroup
(
@RequestParam
int
proj
Type
,
@RequestParam
String
groupIds
,
@RequestParam
String
expertIds
)
{
public
ResponseDataModel
<
String
>
assignProjectGroup
(
@RequestParam
int
system
Type
,
@RequestParam
String
groupIds
,
@RequestParam
String
expertIds
)
{
String
[]
split
=
groupIds
.
split
(
","
);
List
<
String
>
GroupList
=
Arrays
.
asList
(
split
);
split
=
expertIds
.
split
(
","
);
List
<
String
>
ExpertList
=
Arrays
.
asList
(
split
);
return
ResponseDataModel
.
ok
(
comProjectGroupService
.
assignProjectGroup
(
proj
Type
,
GroupList
,
ExpertList
));
return
ResponseDataModel
.
ok
(
comProjectGroupService
.
assignProjectGroup
(
system
Type
,
GroupList
,
ExpertList
));
}
@ApiOperation
(
value
=
"删除分配项目组专家及项目专家关系"
,
httpMethod
=
"DELETE"
,
notes
=
"删除分配项目组专家及项目专家关系"
)
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/StatisticalController.java
View file @
6afc8acf
...
...
@@ -106,9 +106,9 @@ public class StatisticalController {
@GetMapping
@RequestMapping
(
"/getAssignPersonCount"
)
@PreAuthorize
(
"hasAnyRole('GOV')"
)
public
ResponseDataModel
<
DataStatisticsDTO
>
getAssignPersonCount
(
Integer
proj
Type
)
{
Integer
assignYear
=
comBatchService
.
getReportYear
(
proj
Type
,
null
);
return
ResponseDataModel
.
ok
(
comProjectAuditService
.
getAssignPersonCount
(
assignYear
,
proj
Type
));
public
ResponseDataModel
<
DataStatisticsDTO
>
getAssignPersonCount
(
Integer
system
Type
)
{
Integer
assignYear
=
comBatchService
.
getReportYear
(
system
Type
,
null
);
return
ResponseDataModel
.
ok
(
comProjectAuditService
.
getAssignPersonCount
(
assignYear
,
system
Type
));
}
/**
...
...
@@ -172,8 +172,8 @@ public class StatisticalController {
@PreAuthorize
(
"hasAnyRole('GOV','UNIT')"
)
public
ResponseDataModel
<
List
<
DataStatisticsDTO
>>
getTreeCodeProjectCount
(
ComProjectAuditQueryVO
v
)
{
v
.
setAuditUnitId
(
SecurityUserHolder
.
getUnitId
());
if
(
Objects
.
nonNull
(
v
.
get
Proj
Type
())){
if
(
v
.
get
ProjType
().
equals
(
CommonEnum
.
proj
Type
.
key
.
getCode
()))
if
(
Objects
.
nonNull
(
v
.
get
System
Type
())){
if
(
v
.
get
SystemType
().
equals
(
CommonEnum
.
system
Type
.
key
.
getCode
()))
v
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
audit
.
getCode
());
else
v
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
last
.
getCode
());
...
...
@@ -190,8 +190,8 @@ public class StatisticalController {
@PreAuthorize
(
"hasAnyRole('GOV','UNIT')"
)
public
ResponseDataModel
<
List
<
DataStatisticsDTO
>>
getKnowledgeCount
(
ComProjectAuditQueryVO
v
)
{
v
.
setAuditUnitId
(
SecurityUserHolder
.
getUnitId
());
if
(
Objects
.
nonNull
(
v
.
get
Proj
Type
())){
if
(
v
.
get
ProjType
().
equals
(
CommonEnum
.
proj
Type
.
key
.
getCode
()))
if
(
Objects
.
nonNull
(
v
.
get
System
Type
())){
if
(
v
.
get
SystemType
().
equals
(
CommonEnum
.
system
Type
.
key
.
getCode
()))
v
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
audit
.
getCode
());
else
v
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
last
.
getCode
());
...
...
@@ -211,8 +211,8 @@ public class StatisticalController {
@PreAuthorize
(
"hasAnyRole('GOV')"
)
public
ResponseDataModel
<
List
<
KnowledgeStatisticsDTO
>>
getKnowledgeStatistic
(
ComProjectAuditQueryVO
v
)
{
v
.
setAuditUnitId
(
SecurityUserHolder
.
getUnitId
());
if
(
Objects
.
nonNull
(
v
.
get
Proj
Type
()))
{
if
(
v
.
get
ProjType
().
equals
(
CommonEnum
.
proj
Type
.
key
.
getCode
()))
if
(
Objects
.
nonNull
(
v
.
get
System
Type
()))
{
if
(
v
.
get
SystemType
().
equals
(
CommonEnum
.
system
Type
.
key
.
getCode
()))
v
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
audit
.
getCode
());
else
v
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
last
.
getCode
());
...
...
@@ -227,8 +227,8 @@ public class StatisticalController {
@PreAuthorize
(
"hasAnyRole('GOV')"
)
public
ResponseDataModel
<
List
<
KnowledgeStatisticsDTO
>>
getKnowledgeSelectedList
(
ComProjectAuditQueryVO
v
)
{
v
.
setAuditUnitId
(
SecurityUserHolder
.
getUnitId
());
if
(
Objects
.
nonNull
(
v
.
get
Proj
Type
()))
{
if
(
v
.
get
ProjType
().
equals
(
CommonEnum
.
proj
Type
.
key
.
getCode
()))
if
(
Objects
.
nonNull
(
v
.
get
System
Type
()))
{
if
(
v
.
get
SystemType
().
equals
(
CommonEnum
.
system
Type
.
key
.
getCode
()))
v
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
audit
.
getCode
());
else
v
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
last
.
getCode
());
...
...
@@ -243,7 +243,7 @@ public class StatisticalController {
@PreAuthorize
(
"hasAnyRole('GOV')"
)
public
ResponseDataModel
<
List
<
projectExpertGroupStatisticDTO
>>
getProjectExpertGroupStatistic
(
ComProjectAuditQueryVO
vo
)
{
vo
.
setAuditUnitId
(
SecurityUserHolder
.
getUnitId
());
vo
.
set
Proj
Type
(
SecurityUserHolder
.
projectType
());
vo
.
set
System
Type
(
SecurityUserHolder
.
projectType
());
vo
.
setAuditType
(
1
);
vo
.
setAuditMethod
(
CommonEnum
.
auditMethod
.
last
.
getCode
());
return
ResponseDataModel
.
ok
(
comProjectAuditService
.
getProjectExpertGroupStatistic
(
vo
));
...
...
science-admin/src/main/java/com/yiboshi/science/rest/v1/SystemSetController.java
View file @
6afc8acf
...
...
@@ -42,7 +42,7 @@ public class SystemSetController extends BaseController<SystemSetService,SystemS
{
put
(
"SMSApiUrl"
,
systemSetService
.
getByKey
(
SystemSetKey
.
SMSApiUrl
));
put
(
"loginType"
,
systemSetService
.
getByKey
(
SystemSetKey
.
LoginType
));
put
(
"
proj
Type"
,
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
put
(
"
system
Type"
,
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
}
};
return
ResponseDataModel
.
ok
(
data
);
...
...
science-admin/src/main/java/com/yiboshi/science/service/ComBatchService.java
View file @
6afc8acf
...
...
@@ -45,22 +45,22 @@ public interface ComBatchService extends BaseService<ComBatchQueryVO, ComBatchDT
* 获取当前项目申报批次
*
* @param type
* @param
proj
Type
* @param
system
Type
*/
ComBatchDTO
getCurrentYearBatch
(
int
type
,
Integer
proj
Type
,
Integer
timeType
);
ComBatchDTO
getCurrentYearBatch
(
int
type
,
Integer
system
Type
,
Integer
timeType
);
/**
* 获取当前申报批次
*
* @param timeType
* @param
proj
Type
* @param
system
Type
*/
ComBatchDTO
getCurrentBatch
(
Integer
proj
Type
,
Integer
timeType
);
ComBatchDTO
getCurrentBatch
(
Integer
system
Type
,
Integer
timeType
);
/**
* 获取当前申报年度
*
* @param
proj
Type
* @param
system
Type
*/
Integer
getReportYear
(
Integer
proj
Type
,
Integer
timeType
);
Integer
getReportYear
(
Integer
system
Type
,
Integer
timeType
);
/**
* 获取当前人才申报批次
...
...
science-admin/src/main/java/com/yiboshi/science/service/ComProjectAuditService.java
View file @
6afc8acf
...
...
@@ -131,10 +131,10 @@ public interface ComProjectAuditService extends BaseService<ComProjectAuditQuery
/**
* 科研项目分配人次
* @param assignYear
* @param
proj
Type
* @param
system
Type
* @return
*/
DataStatisticsDTO
getAssignPersonCount
(
Integer
assignYear
,
Integer
proj
Type
);
DataStatisticsDTO
getAssignPersonCount
(
Integer
assignYear
,
Integer
system
Type
);
/**
* 获取统计数据
*
...
...
science-admin/src/main/java/com/yiboshi/science/service/ComProjectGroupService.java
View file @
6afc8acf
...
...
@@ -29,7 +29,7 @@ public interface ComProjectGroupService extends BaseService<ComProjectGroupQuery
void
CalculateGroupExpertCount
(
String
groupId
);
String
assignProjectGroup
(
int
proj
Type
,
List
<
String
>
GroupList
,
List
<
String
>
ExpertList
);
String
assignProjectGroup
(
int
system
Type
,
List
<
String
>
GroupList
,
List
<
String
>
ExpertList
);
String
deleteAssignGroupExpert
(
String
id
);
...
...
science-admin/src/main/java/com/yiboshi/science/service/ComProjectService.java
View file @
6afc8acf
...
...
@@ -64,7 +64,7 @@ public interface ComProjectService extends BaseService<ComProjectQueryVO, ComPro
/**
* 创建基础项目信息
*/
ComProjectDTO
getNewProject
(
Integer
proj
Type
);
ComProjectDTO
getNewProject
(
Integer
system
Type
);
/**
* 项目/任务书/中期考核上报
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComBatchServiceImpl.java
View file @
6afc8acf
...
...
@@ -50,8 +50,8 @@ public class ComBatchServiceImpl extends BaseServiceImpl<ComBatchDAO, ComBatchQu
if
(
Objects
.
nonNull
(
vo
.
getTimeType
()))
{
criteria
.
eq
(
"time_type"
,
vo
.
getTimeType
());
}
if
(
Objects
.
nonNull
(
vo
.
get
Proj
Type
()))
{
criteria
.
eq
(
"
proj_type"
,
vo
.
getProj
Type
());
if
(
Objects
.
nonNull
(
vo
.
get
System
Type
()))
{
criteria
.
eq
(
"
system_type"
,
vo
.
getSystem
Type
());
}
if
(
Objects
.
nonNull
(
vo
.
getReportStart
()))
{
criteria
.
eq
(
"report_start"
,
vo
.
getReportStart
());
...
...
@@ -91,7 +91,7 @@ public class ComBatchServiceImpl extends BaseServiceImpl<ComBatchDAO, ComBatchQu
ComBatch
batch
=
new
ComBatch
();
batch
.
setYear
(
dto
.
getYear
());
batch
.
setBatch
(
dto
.
getBatch
());
batch
.
set
ProjType
(
dto
.
getProj
Type
());
batch
.
set
SystemType
(
dto
.
getSystem
Type
());
batch
.
setTimeType
(
dto
.
getTimeType
());
batch
=
this
.
getEntity
(
batch
);
if
(
null
!=
batch
)
...
...
@@ -108,7 +108,7 @@ public class ComBatchServiceImpl extends BaseServiceImpl<ComBatchDAO, ComBatchQu
ComBatch
comBatch
=
new
ComBatch
();
batch
.
setYear
(
dto
.
getYear
());
batch
.
setBatch
(
dto
.
getBatch
());
batch
.
set
ProjType
(
dto
.
getProj
Type
());
batch
.
set
SystemType
(
dto
.
getSystem
Type
());
batch
.
setTimeType
(
dto
.
getTimeType
());
comBatch
=
this
.
getEntity
(
comBatch
);
if
(
null
!=
comBatch
)
...
...
@@ -140,12 +140,12 @@ public class ComBatchServiceImpl extends BaseServiceImpl<ComBatchDAO, ComBatchQu
* 获取当前申报或审核时间
*
* @param type 1:项目申报时间 2:州市级及以下单位上报时间 3:州市级行政单位审核时间 4:省直单位上报时间 5:专家评审时间
* @param
proj
Type 1.科研项目申报 2.重点项目申报
* @param
system
Type 1.科研项目申报 2.重点项目申报
* @param timeType 1.项目申报 2.任务书上报 3.中期考核 4.人才申报
* @return
*/
public
ComBatchDTO
getCurrentYearBatch
(
int
type
,
Integer
proj
Type
,
Integer
timeType
)
{
ComBatchDTO
comBatch
=
this
.
getCurrentBatch
(
proj
Type
,
timeType
);
public
ComBatchDTO
getCurrentYearBatch
(
int
type
,
Integer
system
Type
,
Integer
timeType
)
{
ComBatchDTO
comBatch
=
this
.
getCurrentBatch
(
system
Type
,
timeType
);
Date
date
=
new
Date
();
// 获取当前时间
boolean
flag
=
false
;
if
(
null
!=
comBatch
)
{
...
...
@@ -177,18 +177,18 @@ public class ComBatchServiceImpl extends BaseServiceImpl<ComBatchDAO, ComBatchQu
return
comBatch
;
}
public
Integer
getReportYear
(
Integer
proj
Type
,
Integer
timeType
)
{
ComBatchDTO
comBatch
=
this
.
getCurrentBatch
(
proj
Type
,
timeType
);
public
Integer
getReportYear
(
Integer
system
Type
,
Integer
timeType
)
{
ComBatchDTO
comBatch
=
this
.
getCurrentBatch
(
system
Type
,
timeType
);
if
(
null
!=
comBatch
)
return
comBatch
.
getYear
();
else
return
0
;
}
public
ComBatchDTO
getCurrentBatch
(
Integer
proj
Type
,
Integer
timeType
)
{
public
ComBatchDTO
getCurrentBatch
(
Integer
system
Type
,
Integer
timeType
)
{
if
(
Objects
.
isNull
(
timeType
))
timeType
=
1
;
return
comBatchDAO
.
getCurrentBatch
(
proj
Type
,
timeType
);
return
comBatchDAO
.
getCurrentBatch
(
system
Type
,
timeType
);
}
private
String
judgementDateTimeStr
(
Date
currentDate
,
Date
startDate
,
Date
endDate
,
int
Batch
,
Integer
year
)
{
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectAssignServiceImpl.java
View file @
6afc8acf
...
...
@@ -72,8 +72,8 @@ public class ComProjectAssignServiceImpl extends BaseServiceImpl<ComProjectAssig
if
(
Objects
.
nonNull
(
vo
.
getProjName
()))
{
criteria
.
like
(
"f.proj_name"
,
vo
.
getProjName
());
}
if
(
Objects
.
nonNull
(
vo
.
get
Proj
Type
()))
{
criteria
.
eq
(
"f.
proj_type"
,
vo
.
getProj
Type
());
if
(
Objects
.
nonNull
(
vo
.
get
System
Type
()))
{
criteria
.
eq
(
"f.
system_type"
,
vo
.
getSystem
Type
());
}
if
(
Objects
.
nonNull
(
vo
.
getProjNo
()))
{
criteria
.
like
(
"f.proj_no"
,
vo
.
getProjNo
());
...
...
@@ -106,15 +106,15 @@ public class ComProjectAssignServiceImpl extends BaseServiceImpl<ComProjectAssig
throw
new
BusinessException
(
"参数错误"
);
if
(!
map
.
containsKey
(
"projects"
))
throw
new
BusinessException
(
"参数错误"
);
if
(!
map
.
containsKey
(
"
proj
Type"
))
if
(!
map
.
containsKey
(
"
system
Type"
))
throw
new
BusinessException
(
"参数错误"
);
Integer
projType
=
CommonEnum
.
proj
Type
.
num
.
getCode
();
if
(
map
.
containsKey
(
"
proj
Type"
))
{
projType
=
(
int
)
map
.
get
(
"proj
Type"
);
Integer
systemType
=
CommonEnum
.
system
Type
.
num
.
getCode
();
if
(
map
.
containsKey
(
"
system
Type"
))
{
systemType
=
(
int
)
map
.
get
(
"system
Type"
);
}
experts
=
(
List
<
String
>)
map
.
get
(
"experts"
);
projects
=
(
List
<
String
>)
map
.
get
(
"projects"
);
Integer
reportYear
=
comBatchService
.
getReportYear
(
proj
Type
,
null
);
Integer
reportYear
=
comBatchService
.
getReportYear
(
system
Type
,
null
);
if
(
null
==
projects
||
projects
.
size
()
==
0
||
null
==
experts
||
experts
.
size
()
==
0
)
throw
new
BusinessException
(
"参数错误"
);
return
this
.
assignProject
(
reportYear
,
projects
,
experts
);
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectAuditServiceImpl.java
View file @
6afc8acf
...
...
@@ -78,8 +78,8 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
if
(
Objects
.
nonNull
(
vo
.
getProjNo
()))
{
criteria
.
like
(
"proj_no"
,
vo
.
getProjNo
());
}
if
(
Objects
.
nonNull
(
vo
.
get
Proj
Type
()))
{
criteria
.
eq
(
"
proj_type"
,
vo
.
getProj
Type
());
if
(
Objects
.
nonNull
(
vo
.
get
System
Type
()))
{
criteria
.
eq
(
"
system_type"
,
vo
.
getSystem
Type
());
}
if
(
Objects
.
nonNull
(
vo
.
getProjClass
()))
{
criteria
.
eq
(
"proj_class"
,
vo
.
getProjClass
());
...
...
@@ -499,8 +499,8 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
return
comProjectAuditDAO
.
getFirstAuditPassCount
(
criteria
);
}
public
DataStatisticsDTO
getAssignPersonCount
(
Integer
assignYear
,
Integer
proj
Type
)
{
DataStatisticsDTO
dto
=
comProjectAuditDAO
.
getAssignPersonCount
(
assignYear
,
proj
Type
);
public
DataStatisticsDTO
getAssignPersonCount
(
Integer
assignYear
,
Integer
system
Type
)
{
DataStatisticsDTO
dto
=
comProjectAuditDAO
.
getAssignPersonCount
(
assignYear
,
system
Type
);
return
dto
;
}
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectGroupServiceImpl.java
View file @
6afc8acf
...
...
@@ -283,7 +283,7 @@ public class ComProjectGroupServiceImpl extends BaseServiceImpl<ComProjectGroupD
}
@Transactional
public
String
assignProjectGroup
(
int
proj
Type
,
List
<
String
>
GroupList
,
List
<
String
>
ExpertList
)
{
public
String
assignProjectGroup
(
int
system
Type
,
List
<
String
>
GroupList
,
List
<
String
>
ExpertList
)
{
GroupList
.
forEach
(
g
->
{
ExpertList
.
forEach
(
e
->
{
ComProjectGroupAssign
entity
=
new
ComProjectGroupAssign
();
...
...
@@ -299,7 +299,7 @@ public class ComProjectGroupServiceImpl extends BaseServiceImpl<ComProjectGroupD
});
List
<
ComProjectGroupDetailDTO
>
ProjectInfoList
=
comProjectGroupDetailService
.
getProjectListByGroupIds
(
GroupList
);
Integer
reportYear
=
comBatchService
.
getReportYear
(
proj
Type
,
null
);
Integer
reportYear
=
comBatchService
.
getReportYear
(
system
Type
,
null
);
List
<
String
>
ProjectList
=
new
ArrayList
<>();
ProjectInfoList
.
forEach
(
p
->
{
ProjectList
.
add
(
p
.
getProjId
());
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
View file @
6afc8acf
...
...
@@ -182,8 +182,8 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
if
(
Objects
.
nonNull
(
vo
.
getProjBasis
()))
{
criteria
.
eq
(
"proj_basis"
,
vo
.
getProjBasis
());
}
if
(
Objects
.
nonNull
(
vo
.
get
Proj
Type
()))
{
criteria
.
eq
(
"
proj_type"
,
vo
.
getProj
Type
());
if
(
Objects
.
nonNull
(
vo
.
get
System
Type
()))
{
criteria
.
eq
(
"
system_type"
,
vo
.
getSystem
Type
());
}
if
(
Objects
.
nonNull
(
vo
.
getResearchContent
()))
{
criteria
.
eq
(
"research_content"
,
vo
.
getResearchContent
());
...
...
@@ -244,12 +244,12 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
/**
* 根据id获取项目信息
*/
public
ComProjectDTO
getNewProject
(
Integer
proj
Type
)
{
public
ComProjectDTO
getNewProject
(
Integer
system
Type
)
{
ComProjectDTO
dto
=
new
ComProjectDTO
();
if
(
Objects
.
isNull
(
proj
Type
))
{
projType
=
CommonEnum
.
proj
Type
.
num
.
getCode
();
if
(
Objects
.
isNull
(
system
Type
))
{
systemType
=
CommonEnum
.
system
Type
.
num
.
getCode
();
}
dto
.
set
ProjType
(
proj
Type
);
dto
.
set
SystemType
(
system
Type
);
//申报单位
ComUnitDTO
comUnitDTO
=
comUnitService
.
getUnitById
(
SecurityUserHolder
.
getUnitId
());
if
(
null
!=
comUnitDTO
)
{
...
...
@@ -296,10 +296,10 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
NewProjectKPIInfo
(
dto
);
// 附件
List
<
ComFileDTO
>
fileList
=
configureFileList
(
proj
Type
);
List
<
ComFileDTO
>
fileList
=
configureFileList
(
system
Type
);
dto
.
setFileList
(
fileList
);
dto
.
setReportYear
(
comBatchService
.
getReportYear
(
proj
Type
,
CommonEnum
.
timeType
.
projApply
.
getCode
()));
dto
.
setReportYear
(
comBatchService
.
getReportYear
(
system
Type
,
CommonEnum
.
timeType
.
projApply
.
getCode
()));
dto
.
setProjState
(
CommonEnum
.
projState
.
draft
.
getCode
());
dto
.
setAppPersonId
(
SecurityUserHolder
.
getPersonId
());
dto
.
setAppUnitId
(
SecurityUserHolder
.
getUnitId
());
...
...
@@ -444,9 +444,9 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
//附件列表
List
<
ComFileDTO
>
fileList
=
ComFileService
.
getListByObjectId
(
dto
.
getId
(),
CommonEnum
.
fileType
.
project
.
getCode
());
if
(
null
==
fileList
||
fileList
.
size
()
==
0
)
fileList
=
configureFileList
(
dto
.
get
Proj
Type
());
fileList
=
configureFileList
(
dto
.
get
System
Type
());
else
fileList
=
checkNecessaryAttachmentFile
(
dto
.
get
Proj
Type
(),
fileList
);
fileList
=
checkNecessaryAttachmentFile
(
dto
.
get
System
Type
(),
fileList
);
dto
.
setFileList
(
fileList
);
//审核记录列表
...
...
@@ -517,11 +517,11 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
dto
.
setProjectKPI
(
kpiDTO
);
}
private
List
<
ComFileDTO
>
configureFileList
(
Integer
proj
Type
)
{
private
List
<
ComFileDTO
>
configureFileList
(
Integer
system
Type
)
{
List
<
ComFileDTO
>
fileList
=
new
ArrayList
<>();
List
<
SystemParameter
>
parameterList
;
//健康领域科技项目
if
(
projType
==
CommonEnum
.
proj
Type
.
num
.
getCode
())
if
(
systemType
==
CommonEnum
.
system
Type
.
num
.
getCode
())
parameterList
=
systemParameterService
.
getListByType
(
61
);
else
//临床科技项目
parameterList
=
systemParameterService
.
getListByType
(
13
);
...
...
@@ -544,10 +544,10 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
return
file
;
}
public
List
<
ComFileDTO
>
checkNecessaryAttachmentFile
(
Integer
proj
Type
,
List
<
ComFileDTO
>
fileList
)
{
public
List
<
ComFileDTO
>
checkNecessaryAttachmentFile
(
Integer
system
Type
,
List
<
ComFileDTO
>
fileList
)
{
List
<
SystemParameter
>
parameterList
;
//健康领域科技项目
if
(
projType
==
CommonEnum
.
proj
Type
.
num
.
getCode
())
if
(
systemType
==
CommonEnum
.
system
Type
.
num
.
getCode
())
parameterList
=
systemParameterService
.
getListByType
(
61
);
else
//临床科技项目
parameterList
=
systemParameterService
.
getListByType
(
13
);
...
...
@@ -912,7 +912,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
}
private
String
InsertProjectBaseInfo
(
ComProjectDTO
dto
)
{
ComBatchDTO
comBatchDTO
=
comBatchService
.
getCurrentBatch
(
dto
.
get
Proj
Type
(),
null
);
ComBatchDTO
comBatchDTO
=
comBatchService
.
getCurrentBatch
(
dto
.
get
System
Type
(),
null
);
ComProject
comProject
=
convert2Entity
(
dto
);
comProject
.
setAppNo
(
getAppNo
());
comProject
.
setReportYear
(
comBatchDTO
.
getYear
());
...
...
@@ -1113,7 +1113,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
// comProject.setReportYear(e.getReportYear());
//
// comProject.setProjState(50);
// comProject.set
Proj
Type(1);
// comProject.set
System
Type(1);
// comProject.setAppNo(e.getProjStateName());
//
// comProject.setBatch(1);
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectTaskServiceImpl.java
View file @
6afc8acf
...
...
@@ -76,8 +76,8 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
if
(
Objects
.
nonNull
(
vo
.
getReportYear
()))
{
criteria
.
eq
(
"c.report_year"
,
vo
.
getReportYear
());
}
if
(
Objects
.
nonNull
(
vo
.
get
Proj
Type
()))
{
criteria
.
eq
(
"
proj_type"
,
vo
.
getProj
Type
());
if
(
Objects
.
nonNull
(
vo
.
get
System
Type
()))
{
criteria
.
eq
(
"
system_type"
,
vo
.
getSystem
Type
());
}
if
(
Objects
.
nonNull
(
vo
.
getAppUnitId
()))
{
criteria
.
eq
(
"app_unit_id"
,
vo
.
getAppUnitId
());
...
...
@@ -287,9 +287,9 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
//附件列表
List
<
ComFileDTO
>
fileList
=
ComFileService
.
getListByObjectId
(
dto
.
getProjId
(),
CommonEnum
.
fileType
.
project
.
getCode
());
if
(
null
==
fileList
||
fileList
.
size
()
==
0
)
fileList
=
configureFileList
(
dto
.
get
Proj
Type
());
fileList
=
configureFileList
(
dto
.
get
System
Type
());
else
fileList
=
checkNecessaryAttachmentFile
(
dto
.
get
Proj
Type
(),
fileList
);
fileList
=
checkNecessaryAttachmentFile
(
dto
.
get
System
Type
(),
fileList
);
dto
.
setFileList
(
fileList
);
return
dto
;
...
...
@@ -356,11 +356,11 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
dto
.
setProjectKPI
(
kpiDTO
);
}
private
List
<
ComFileDTO
>
configureFileList
(
Integer
proj
Type
)
{
private
List
<
ComFileDTO
>
configureFileList
(
Integer
system
Type
)
{
List
<
ComFileDTO
>
fileList
=
new
ArrayList
<>();
List
<
SystemParameter
>
parameterList
;
//健康领域科技项目
if
(
projType
==
CommonEnum
.
proj
Type
.
num
.
getCode
())
if
(
systemType
==
CommonEnum
.
system
Type
.
num
.
getCode
())
parameterList
=
systemParameterService
.
getListByType
(
61
);
else
//临床科技项目
parameterList
=
systemParameterService
.
getListByType
(
13
);
...
...
@@ -383,10 +383,10 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
return
file
;
}
public
List
<
ComFileDTO
>
checkNecessaryAttachmentFile
(
Integer
proj
Type
,
List
<
ComFileDTO
>
fileList
)
{
public
List
<
ComFileDTO
>
checkNecessaryAttachmentFile
(
Integer
system
Type
,
List
<
ComFileDTO
>
fileList
)
{
List
<
SystemParameter
>
parameterList
;
//健康领域科技项目
if
(
projType
==
CommonEnum
.
proj
Type
.
num
.
getCode
())
if
(
systemType
==
CommonEnum
.
system
Type
.
num
.
getCode
())
parameterList
=
systemParameterService
.
getListByType
(
61
);
else
//临床科技项目
parameterList
=
systemParameterService
.
getListByType
(
13
);
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/SystemSetServiceImpl.java
View file @
6afc8acf
...
...
@@ -69,16 +69,16 @@ public class SystemSetServiceImpl extends BaseServiceImpl<SystemSetDAO, SystemSe
public
String
save
(
Map
<
String
,
Object
>
map
)
{
String
SMSApiUrl
=
""
;
String
loginType
=
""
;
String
proj
Type
=
""
;
String
system
Type
=
""
;
if
(!
map
.
containsKey
(
"SMSApiUrl"
))
throw
new
BusinessException
(
"参数错误"
);
if
(!
map
.
containsKey
(
"loginType"
))
throw
new
BusinessException
(
"参数错误"
);
if
(!
map
.
containsKey
(
"
proj
Type"
))
if
(!
map
.
containsKey
(
"
system
Type"
))
throw
new
BusinessException
(
"参数错误"
);
SMSApiUrl
=
(
String
)
map
.
get
(
"SMSApiUrl"
);
loginType
=
(
String
)
map
.
get
(
"loginType"
);
projType
=
(
String
)
map
.
get
(
"proj
Type"
);
systemType
=
(
String
)
map
.
get
(
"system
Type"
);
if
(
Objects
.
nonNull
(
SMSApiUrl
))
{
SystemSet
set
=
getBykey
(
SystemSetKey
.
SMSApiUrl
);
if
(
null
!=
set
){
...
...
@@ -105,16 +105,16 @@ public class SystemSetServiceImpl extends BaseServiceImpl<SystemSetDAO, SystemSe
this
.
insert
(
set
);
}
}
if
(
Objects
.
nonNull
(
proj
Type
))
{
if
(
Objects
.
nonNull
(
system
Type
))
{
SystemSet
set
=
getBykey
(
SystemSetKey
.
SysProjectType
);
if
(
null
!=
set
){
set
.
setValue
(
proj
Type
);
set
.
setValue
(
system
Type
);
this
.
update
(
set
);
}
else
{
set
=
new
SystemSet
();
set
.
setName
(
SystemSetKey
.
SysProjectType
);
set
.
setValue
(
proj
Type
);
set
.
setValue
(
system
Type
);
this
.
insert
(
set
);
}
}
...
...
science-admin/src/main/java/com/yiboshi/science/utils/SystemSetKey.java
View file @
6afc8acf
...
...
@@ -38,7 +38,7 @@ public class SystemSetKey {
public
final
static
String
taskCont5
=
"Task.Cont5"
;
/** 项目阶段实施内容及目标 */
public
final
static
String
taskCont6
=
"Task.Cont6"
;
public
final
static
String
SysProjectType
=
"sys.
proj
Type"
;
public
final
static
String
SysProjectType
=
"sys.
system
Type"
;
/** 学科带头人培养年限 */
public
final
static
String
SysALTrainingYear
=
"sys.AcademicLeader.TrainingYear"
;
/** 学科带头人每年财政培养经费(单位:万元) */
...
...
science-admin/src/main/resources/mapper/ComBatchDAO.xml
View file @
6afc8acf
...
...
@@ -17,14 +17,14 @@
<select
id=
"getMaxBatch"
resultType=
"java.lang.Integer"
>
select ifnull(max(batch), 0)
from com_batch
where year = #{year} and
proj_type = #{proj
Type}
where year = #{year} and
system_type = #{system
Type}
</select>
<select
id=
"getCurrentBatch"
parameterType=
"java.util.Map"
resultType=
"com.yiboshi.science.param.dto.ComBatchDTO"
>
select *
from com_batch
<where>
<if
test=
"
projType != null and projT
ype != ''"
>
and
proj_type = #{proj
Type}
<if
test=
"
systemType != null and system_t
ype != ''"
>
and
system_type = #{system
Type}
</if>
<if
test=
"timeType != null and timeType != ''"
>
and time_type = #{timeType}
...
...
science-admin/src/main/resources/mapper/ComProjectAuditDAO.xml
View file @
6afc8acf
...
...
@@ -252,7 +252,7 @@
ifnull(sum(case when a.audit_state =2 then 1 else 0 end),0) count3,
ifnull(sum(case when to_days(a.updated) = to_days(now()) then 1 else 0 end),0) count4
from com_project_assign a left join com_project b on a.proj_id = b.id
where a.assign_year = #{assignYear} and b.
proj_type = #{proj
Type}
where a.assign_year = #{assignYear} and b.
system_type = #{system
Type}
</select>
<select
id=
"getKnowledgeStatistic"
resultType=
"com.yiboshi.science.param.dto.KnowledgeStatisticsDTO"
>
select tabA.*, IFNULL(tabB.count1,0) as knowledgeCount from
...
...
science-admin/src/main/resources/mapper/ComProjectDAO.xml
View file @
6afc8acf
...
...
@@ -53,11 +53,11 @@
where a.id = #{id}
</select>
<select
id=
"getProjectReportCountByGov"
resultType=
"com.yiboshi.science.param.dto.DataStatisticsDTO"
>
select count(*) as count1 from com_project where proj_state = 26 and
proj
_type = 1 and app_unit_id in (
select count(*) as count1 from com_project where proj_state = 26 and
system
_type = 1 and app_unit_id in (
select id from com_unit where tree_code like CONCAT('',#{treeCode},'%') and unit_type
<>
0
)
</select>
<select
id=
"getProjectReportCountByUnitId"
resultType=
"com.yiboshi.science.param.dto.DataStatisticsDTO"
>
select count(*) as count1 from com_project where proj_state = 26 and
proj
_type = 1 and app_unit_id = #{appUnitId}
select count(*) as count1 from com_project where proj_state = 26 and
system
_type = 1 and app_unit_id = #{appUnitId}
</select>
</mapper>
science-admin/src/main/resources/mapper/ComProjectTaskDAO.xml
View file @
6afc8acf
...
...
@@ -37,7 +37,7 @@
pt.key_areas,pt.proj_work,pt.telephone,pt.fax,
pt.link_name,pt.link_mobile,pt.link_fax,pt.link_email,
pt.is_technology_report,pt.project_report,pt.progress_report,pt.special_report,pt.final_report,
a.proj_name,a.proj_no,a.start_date projStart,a.end_date projEnd,a.app_person_id,a.app_unit_id,a.
proj
_type,
a.proj_name,a.proj_no,a.start_date projStart,a.end_date projEnd,a.app_person_id,a.app_unit_id,a.
system
_type,
b.name knowledge_name,
ic.proj_id,ic.job_time,ic.main_research_areas,ic.address,
ic.unit_link_name,ic.unit_link_mobile,ic.unit_link_email,ic.unit_link_fax,ic.subject_scope,ic.proj_abstract,ic.proj_keywords,
...
...
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