1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package com.yiboshi.science.service;
import com.yiboshi.science.base.BaseService;
import com.yiboshi.science.entity.ComProject;
import com.yiboshi.science.entity.ComProjectAudit;
import com.yiboshi.science.param.dto.ComProjectDTO;
import com.yiboshi.science.param.dto.DataStatisticsDTO;
import com.yiboshi.science.param.dto.ProjectImportDTO;
import com.yiboshi.science.param.query.ComProjectQueryVO;
import org.springframework.web.bind.annotation.PathVariable;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.List;
/**
* 项目表 Service
*
* @author lkl
* @version 2021-08-26
*/
public interface ComProjectService extends BaseService<ComProjectQueryVO, ComProjectDTO, ComProject> {
/**
* 更新项目状态
*
* @return
*/
void updateState(String id, Integer state, String versionNo);
/**
* 获取新的版本号
*
* @param oldVersionNo 原版本号
* @return
*/
String getVersionNo(String oldVersionNo);
/**
* 保存项目信息
*
* @param dto
* @return
*/
String save(ComProjectDTO dto);
/**
* 修改申报单位
*
* @param dto
* @return
*/
String updateUnit(ComProjectDTO dto);
/**
* 根据id获取项目信息
*
* @param id 查询条件
*/
ComProjectDTO getProjectById(String id);
/**
* 创建基础项目信息
*/
ComProjectDTO getNewProject(Integer projType);
/**
* 项目/任务书/中期考核上报
*
* @param e
* @return
*/
void report(ComProjectAudit e, String unitId, String treeCode);
/**
* 项目/任务书/中期考核审核
*
* @param e
* @return
*/
void audit(ComProjectAudit e, String auditUnitId, String auditTreeCode);
/**
* 获取统计数据
*
* @return
*/
DataStatisticsDTO getCount(ComProject e);
/**
* 删除项目
*
* @return
*/
String delete(String id);
/**
* 更新项目分配状态
*
* @return
*/
void updateAssignState(String id, Integer assignState, Integer completed, BigDecimal totalScore,BigDecimal averageScore);
DataStatisticsDTO getProjectReportCountByGov(String treeCode);
DataStatisticsDTO getProjectReportCountByUnitId(String appUnitId);
void export(@PathVariable String id, HttpServletRequest request, HttpServletResponse response);
/**
* 专家批量导入
*
* @param list
* @return
*/
List<ProjectImportDTO> projectImport(List<ProjectImportDTO> list) throws IOException;
ComProjectDTO getProjectBasicInfoById(String id);
}