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
122
123
124
125
126
127
128
129
130
131
package com.yiboshi.science.service;
import com.yiboshi.science.base.BaseService;
import com.yiboshi.science.entity.ComPerson;
import com.yiboshi.science.entity.ComUnit;
import com.yiboshi.science.param.dto.ComUnitDTO;
import com.yiboshi.science.param.dto.DataStatisticsDTO;
import com.yiboshi.science.param.dto.UnitProjLimitDTO;
import com.yiboshi.science.param.query.ComUnitQueryVO;
import java.util.List;
/**
* 单位表 Service
*
* @author lkl
* @version 2021-08-26
*/
public interface ComUnitService extends BaseService<ComUnitQueryVO, ComUnitDTO, ComUnit> {
/** 根据单位编码获取单位信息
*
* @param treeCode 单位编码
* @return
*/
ComUnitDTO getByTreeCode(String treeCode);
/** 获取上级单位信息
*
* @param id
* @return
*/
ComUnitDTO getUpUnitById(String id);
/**获取单位信息
*
* @param id
* @return
*/
ComUnitDTO getUnitById(String id);
/**获取单位信息
*
* @param id
* @return
*/
ComUnit getUnitInfoByLongId(Long id);
/**根据单位编码获取下级单位
*
* @param treeCode
* @return
*/
List<ComUnitDTO> getListByTreeCode(String treeCode);
/**获取单位列表
*
* @param unitType
* @return
*/
List<ComUnitDTO> getListByType(Integer unitType);
/**
* 单位注册
* @param unit
* @return
*/
String register(ComUnitDTO unit);
/**
* 单位审核
* @param unit
* @return
*/
String audit(ComUnitDTO unit);
/**
* 保存/修改单位
* @param dto
* @return
*/
String save(ComUnitDTO dto);
/**删除单位
*
* @param Id
*/
String deleteUnit(String Id);
/** 获取单位
*
*/
//
void getUnitFromRemoteServer();
/**
* 保存/修改单位
* @param unit
* @return
*/
String updateUnitState(ComUnitDTO unit);
/**
* 获取单位项目申报名额配比
* @param queryType 1:省直属单位名额配比 2:州市行政单位
* @return
*/
List<ComUnit> getUnitProjLimit(int queryType);
/**
* 更新单位项目申报配比数量
* @param list
* @return
*/
boolean updateUnitProjLimit(List<UnitProjLimitDTO> list);
/**
* 判断单位是否存在
* @param unitName
* @return
*/
ComUnit isExist(String unitName);
/**
* 获取数编码
* @param fatherCode
* @return
*/
String getNewCode(String fatherCode);
DataStatisticsDTO getRegisterUnitCount(ComUnitQueryVO v);
DataStatisticsDTO getRegisterUnitCountByDay(ComUnitQueryVO v);
}