4be792baf2fdd1308fdfc350102053169d626c7c.svn-base 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. package cn.com.goldenwater.dcproj.controller.tac;
  2. import cn.com.goldenwater.core.web.BaseController;
  3. import cn.com.goldenwater.core.web.BaseResponse;
  4. import cn.com.goldenwater.dcproj.constValue.StateEnum;
  5. import cn.com.goldenwater.dcproj.dao.TacObjSubject515Dao;
  6. import cn.com.goldenwater.dcproj.dto.TacCountDto;
  7. import cn.com.goldenwater.dcproj.dto.TacPblmInfoDto;
  8. import cn.com.goldenwater.dcproj.model.*;
  9. import cn.com.goldenwater.dcproj.param.GwComFileParam;
  10. import cn.com.goldenwater.dcproj.param.TacPblmInfoParam;
  11. import cn.com.goldenwater.dcproj.param.TacPblmSubjectParam;
  12. import cn.com.goldenwater.dcproj.service.*;
  13. import cn.com.goldenwater.id.util.UuidUtil;
  14. import com.github.pagehelper.PageInfo;
  15. import io.swagger.annotations.Api;
  16. import io.swagger.annotations.ApiOperation;
  17. import io.swagger.annotations.ApiParam;
  18. import org.apache.commons.lang3.StringUtils;
  19. import org.slf4j.Logger;
  20. import org.slf4j.LoggerFactory;
  21. import org.springframework.beans.factory.annotation.Autowired;
  22. import org.springframework.transaction.annotation.Transactional;
  23. import org.springframework.util.Assert;
  24. import org.springframework.util.CollectionUtils;
  25. import org.springframework.web.bind.annotation.*;
  26. import java.util.ArrayList;
  27. import java.util.Date;
  28. import java.util.List;
  29. /**
  30. * @author lune
  31. * @date 2019-6-19
  32. */
  33. @Api(value = "TAC 稽察问题信息表管理", tags = "TAC 稽察问题信息表管理")
  34. @RestController
  35. @RequestMapping("/tac/pblm/info")
  36. public class TacPblmInfoController extends BaseController {
  37. private Logger logger = LoggerFactory.getLogger(getClass());
  38. @Autowired
  39. private TacPblmInfoService tacPblmInfoService;
  40. @Autowired
  41. private TacPblmSubjectService tacPblmSubjectService;
  42. @Autowired
  43. private TacObjPblmstbService tacObjPblmstbService;
  44. @Autowired
  45. private TacObjSubjectService tacObjSubjectService;
  46. @Autowired
  47. private GwComFileService gwComFileService;
  48. @Autowired
  49. private OlBisInspOrgService olBisInspOrgService;
  50. @Autowired
  51. private TacPawpRgstrService pawpRgstrService;
  52. @Autowired
  53. private TacObjSubject515Dao tacObjSubject515Dao;
  54. /**
  55. * 稽查业务--稽查填报 添加问题 法律条款 法规内容 从问题清单 带过来 ,
  56. * 保存 专家编辑后的内容 ,存入 问题表 tac_pblm_info 的冗余字段 :法律条款、法规内容
  57. *
  58. * @param tacPblmInfo
  59. * @return
  60. * @date 2023/01/28
  61. */
  62. @ApiOperation(value = "添加/修改稽察问题信息表")
  63. @RequestMapping(value = "", method = RequestMethod.POST)
  64. public BaseResponse<TacPblmInfo> insert(@ApiParam(name = "tacPblmInfo", value = "TacPblmInfo", required = true) @RequestBody TacPblmInfo tacPblmInfo) {
  65. tacPblmInfo.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  66. // if(StringUtils.isBlank(tacPblmInfo.getPblmReason())){
  67. // return buildFailResponse("原因分析必填");
  68. // }
  69. // if(StringUtils.isBlank(tacPblmInfo.getPblmSggtn())){
  70. // return buildFailResponse("意见建议必填");
  71. // }
  72. if (StringUtils.isNotBlank(tacPblmInfo.getId())) {
  73. tacPblmInfo.setUptm(new Date());
  74. tacPblmInfoService.updatePblm(tacPblmInfo);
  75. } else {
  76. String key = getCurrentPersId() + "_pblm_info";
  77. synchronized (this) {
  78. if (!pawpRgstrService.suoding(key)) {
  79. return buildFailResponse("操作太频繁,请等会儿再操作");
  80. }
  81. }
  82. if (StringUtils.isBlank(tacPblmInfo.getIfCasePblm())) {
  83. tacPblmInfo.setIfCasePblm("0");
  84. }
  85. String uuid = UuidUtil.uuid();
  86. tacPblmInfo.setId(uuid);
  87. tacPblmInfo.setIntm(new Date());
  88. tacPblmInfo.setDataStat(StateEnum.NOWASTSTATE.getKey());
  89. tacPblmInfoService.insertPblm(tacPblmInfo);
  90. }
  91. return buildSuccessResponse(tacPblmInfo);
  92. }
  93. @ApiOperation(value = "根据问题id锁定问题,让专家修改")
  94. @RequestMapping(value = "/rect/{id}", method = RequestMethod.GET)
  95. @Transactional(rollbackFor = Exception.class)
  96. public BaseResponse rect(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
  97. String key = id + "_rect";
  98. synchronized (this) {
  99. if (!pawpRgstrService.suoding(key)) {
  100. return buildFailResponse("操作太频繁,请等会儿再操作");
  101. }
  102. }
  103. TacPblmInfo pblmInfo = tacPblmInfoService.get(id);
  104. if (pblmInfo == null) {
  105. return buildFailResponse("数据不存在,不支持问题锁定");
  106. }
  107. String rgstrId = pblmInfo.getRgstrId();
  108. if (!rgstrId.contains("_")) {
  109. return buildFailResponse("当前阶段问题不能再回退");
  110. }
  111. String[] arrays = rgstrId.split("_");
  112. String newRegistrId = arrays[0] + "_8";
  113. pblmInfo.setRgstrId(newRegistrId);
  114. pblmInfo.setId(UuidUtil.uuid());
  115. tacPblmInfoService.insert(pblmInfo);
  116. List<GwComFile> comFiles = gwComFileService.findFileByBiz(id);
  117. if (comFiles != null && !comFiles.isEmpty()) {
  118. for (GwComFile comFile : comFiles) {
  119. comFile.setBizId(pblmInfo.getId());
  120. comFile.setId(UuidUtil.uuid());
  121. gwComFileService.insert(comFile);
  122. }
  123. }
  124. pawpRgstrService.addUnitSctn(rgstrId, newRegistrId);
  125. tacPblmInfoService.delete(id);
  126. GwComFileParam comFileParam = new GwComFileParam();
  127. comFileParam.setBizId(id);
  128. gwComFileService.deleteBy(comFileParam);
  129. return buildSuccessResponse(pblmInfo);
  130. }
  131. @ApiOperation(value = "根据问题id锁定问题,让专家修改列表")
  132. @RequestMapping(value = "/rectList", method = RequestMethod.GET)
  133. public BaseResponse rectList(@RequestBody TacPblmInfoParam pblmInfoParam) {
  134. BisInspAllRlationPers pers = rlationPersService.get(getCurrentPersId());
  135. if (pers == null) {
  136. return null;
  137. }
  138. pblmInfoParam.setPersId(getCurrentPersId());
  139. if ("1".equals(pers.getPersType()) || "2".equals(pers.getPersType())) {
  140. pblmInfoParam.setPersId("");
  141. }
  142. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  143. pblmInfoParam.setRgstrId("_8");
  144. List<TacWorkerB> tacWorkerBList = workerBService.findPerInZLOrTPY(getCurrentPersId());
  145. if (tacWorkerBList != null && !tacWorkerBList.isEmpty()) {
  146. return buildSuccessResponse(tacPblmInfoService.findPageJieduanZLorTPY(pblmInfoParam));
  147. }
  148. return buildSuccessResponse(tacPblmInfoService.findPageJieduanInfo(pblmInfoParam));
  149. }
  150. @ApiOperation(value = "根据ID删除稽察问题信息表")
  151. @RequestMapping(value = "/del/{id}", method = RequestMethod.GET)
  152. public BaseResponse delete(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
  153. int ret = tacPblmInfoService.delete(id);
  154. return buildSuccessResponse();
  155. }
  156. @ApiOperation(value = "更新稽察问题信息表信息")
  157. @RequestMapping(value = "/update", method = RequestMethod.POST)
  158. public BaseResponse<TacPblmInfo> update(@ApiParam(name = "tacPblmInfo", value = "TacPblmInfo", required = true) @RequestBody TacPblmInfo tacPblmInfo) {
  159. Assert.notNull(tacPblmInfo.getId(), "主键id为必填参数");
  160. tacPblmInfo.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  161. int ret = tacPblmInfoService.update(tacPblmInfo);
  162. return buildSuccessResponse(tacPblmInfo);
  163. }
  164. /**
  165. * 获取稽查填报--问题详情的 时候,法律条款、法规内容 取专家编辑后的值,编辑时不允许修改
  166. * tac_pblm_info 的字段 :法律条款 RELATIVE_LAW、法规内容 LAW_CONTENT
  167. * @param id
  168. * @return
  169. */
  170. @ApiOperation(value = "根据ID获取稽察问题信息表(单表)详情,包括主体单位,标准库信息等")
  171. @RequestMapping(value = "/{id}", method = RequestMethod.GET)
  172. public BaseResponse<TacPblmInfo> get(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
  173. TacPblmInfo tacPblmInfo = tacPblmInfoService.get(id);
  174. if (tacPblmInfo != null) {
  175. TacPblmSubjectParam pblmSubjectParam = new TacPblmSubjectParam();
  176. pblmSubjectParam.setPblmId(id);
  177. List<TacPblmSubject> pblmSubjectList = tacPblmSubjectService.findList(pblmSubjectParam);
  178. if (pblmSubjectList != null && !pblmSubjectList.isEmpty()) {
  179. tacPblmInfo.setPblmSubjectList(pblmSubjectList);
  180. } else {
  181. pblmSubjectList = new ArrayList<>();
  182. if (StringUtils.isNotBlank(tacPblmInfo.getSubjectNames())) {
  183. String[] subjects = tacPblmInfo.getSubjectNames().split(",");
  184. String[] subjeids = tacPblmInfo.getSubjectIds().split(",");
  185. for (int i = 0; i < subjects.length; i++) {
  186. TacObjSubject objSubject = tacObjSubjectService.get(subjeids[i]);
  187. if (objSubject == null) {
  188. objSubject = tacObjSubject515Dao.get(subjeids[i]);
  189. }
  190. if (objSubject != null) {
  191. TacPblmSubject subject = new TacPblmSubject();
  192. subject.setPblmId(tacPblmInfo.getId());
  193. subject.setSubId(subjeids[i]);
  194. subject.setSubName(objSubject.getSubName());
  195. subject.setIntm(new Date());
  196. subject.setUnitNm(subjects[i]);
  197. pblmSubjectList.add(subject);
  198. }
  199. }
  200. tacPblmInfo.setPblmSubjectList(pblmSubjectList);
  201. }
  202. }
  203. if (StringUtils.isNotBlank(tacPblmInfo.getPblmstdId())) {
  204. TacObjPblmstb objPblmstb = tacObjPblmstbService.getOne(tacPblmInfo.getPblmstdId());
  205. tacPblmInfo.setTacObjPblmstb(objPblmstb);
  206. }
  207. tacPblmInfo.setGwComFileList(gwComFileService.findFileByBiz(id));
  208. }
  209. return buildSuccessResponse(tacPblmInfo);
  210. }
  211. @ApiOperation(value = "分页查询稽察问题清单")
  212. @RequestMapping(value = "/page", method = RequestMethod.POST)
  213. public BaseResponse<PageInfo<TacPblmInfo>> page(@RequestBody TacPblmInfoParam pblmInfoParam) {
  214. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  215. return buildSuccessResponse(getpageInfo(pblmInfoParam));
  216. }
  217. @ApiOperation(value = "分页查询稽察问题清单-成果")
  218. @RequestMapping(value = "/pagecg", method = RequestMethod.POST)
  219. public BaseResponse<PageInfo<TacPblmInfo>> pageCg(@RequestBody TacPblmInfoParam pblmInfoParam) {
  220. String province = olBisInspOrgService.getRlProvince(getCurrentOrgId());
  221. pblmInfoParam.setProvince(province);
  222. return buildSuccessResponse(tacPblmInfoService.findPageJieduanInfo(pblmInfoParam));
  223. }
  224. @Autowired
  225. private TacWorkerBService workerBService;
  226. @Autowired
  227. private BisInspAllRlationPersService rlationPersService;
  228. @ApiOperation(value = "分页查询稽察问题清单-手机app稽察问题")
  229. @RequestMapping(value = "/pageNew", method = RequestMethod.POST)
  230. public BaseResponse<PageInfo<TacPblmInfo>> pageNew(@RequestBody TacPblmInfoParam pblmInfoParam) {
  231. String province = olBisInspOrgService.getRlProvince(getCurrentOrgId());
  232. pblmInfoParam.setProvince(province);
  233. return buildSuccessResponse(getpageInfo(pblmInfoParam));
  234. }
  235. private PageInfo<TacPblmInfo> getpageInfo(TacPblmInfoParam pblmInfoParam) {
  236. BisInspAllRlationPers pers = rlationPersService.get(getCurrentPersId());
  237. if (pers == null) {
  238. return null;
  239. }
  240. pblmInfoParam.setPersId(getCurrentPersId());
  241. //管理员
  242. PageInfo<TacPblmInfo> tacPawpRgstr = new PageInfo<>();
  243. if ("1".equals(pers.getPersType()) || "2".equals(pers.getPersType())) {
  244. pblmInfoParam.setPersId("");
  245. tacPawpRgstr = tacPblmInfoService.findPageInfoNew(pblmInfoParam);
  246. return tacPawpRgstr;
  247. }
  248. //助理
  249. List<TacWorkerB> tacWorkerBList = workerBService.findPerInZLOrTPY(getCurrentPersId());
  250. if (tacWorkerBList == null || tacWorkerBList.isEmpty()) {
  251. tacPawpRgstr = tacPblmInfoService.findPageInfo(pblmInfoParam);
  252. } else {
  253. tacPawpRgstr = tacPblmInfoService.findPageInfoZLorTPY(pblmInfoParam);
  254. }
  255. return tacPawpRgstr;
  256. }
  257. @ApiOperation(value = "稽察问题统计 - 统计分类")
  258. @RequestMapping(value = "/countPblmInfoByType", method = RequestMethod.POST)
  259. public BaseResponse<List<TacCountDto>> countPblmInfoByType(@RequestBody TacPblmInfoParam pblmInfoParam) {
  260. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  261. List<TacCountDto> list = tacPblmInfoService.countPblmInfoByType(pblmInfoParam);
  262. return buildSuccessResponse(list);
  263. }
  264. @ApiOperation(value = "稽察问题统计-- 责任主体")
  265. @RequestMapping(value = "/countPblmInfoBySub", method = RequestMethod.POST)
  266. public BaseResponse<List<TacCountDto>> countPblmInfoBySub(@RequestBody TacPblmInfoParam pblmInfoParam) {
  267. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  268. List<TacCountDto> list = tacPblmInfoService.countPblmInfoBySub(pblmInfoParam);
  269. return buildSuccessResponse(list);
  270. }
  271. @ApiOperation(value = "稽察问题统计新-- 责任主体(对应新阶段流程信息)")
  272. @RequestMapping(value = "/countPblmInfoBySubNew", method = RequestMethod.POST)
  273. public BaseResponse<List<TacCountDto>> countPblmInfoBySubNew(@RequestBody TacPblmInfoParam pblmInfoParam) {
  274. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  275. pblmInfoParam.setYear(Long.parseLong(pblmInfoParam.getYears()));
  276. List<TacCountDto> list = tacPblmInfoService.countPblmInfoBySubNew(pblmInfoParam);
  277. return buildSuccessResponse(list);
  278. }
  279. @ApiOperation(value = "稽察问题统计-- 行政区划")
  280. @RequestMapping(value = "/countPblmInfoByAdCode", method = RequestMethod.POST)
  281. public BaseResponse<List<TacCountDto>> countPblmInfoByAdCode(@RequestBody TacPblmInfoParam pblmInfoParam) {
  282. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  283. List<TacCountDto> list = tacPblmInfoService.countPblmInfoByAdCode(pblmInfoParam);
  284. return buildSuccessResponse(list);
  285. }
  286. @ApiOperation(value = "稽察问题统计新-- 所在省份地市(对应新阶段流程信息)")
  287. @RequestMapping(value = "/countPblmInfoByAdCodeNew", method = RequestMethod.POST)
  288. public BaseResponse<List<TacCountDto>> countPblmInfoByAdCodeNew(@RequestBody TacPblmInfoParam pblmInfoParam) {
  289. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  290. List<TacCountDto> list = tacPblmInfoService.countPblmInfoByAdCodeNew(pblmInfoParam);
  291. return buildSuccessResponse(list);
  292. }
  293. @ApiOperation(value = "稽察问题统计-- 标准库")
  294. @RequestMapping(value = "/countPblmInfoByStb", method = RequestMethod.POST)
  295. public BaseResponse<List<TacCountDto>> countPblmInfoByStb(@RequestBody TacPblmInfoParam pblmInfoParam) {
  296. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  297. List<TacCountDto> list = tacPblmInfoService.countPblmInfoByStb(pblmInfoParam);
  298. return buildSuccessResponse(list);
  299. }
  300. @ApiOperation(value = "批量修改问题")
  301. @RequestMapping(value = "/updatePblmInfoList", method = RequestMethod.POST)
  302. public BaseResponse updatePblmInfoList(@RequestBody TacPblmInfoDto dto) {
  303. int a = tacPblmInfoService.updatePblmInfoList(dto);
  304. return buildSuccessResponse();
  305. }
  306. @ApiOperation(value = "统计典型问题")
  307. @RequestMapping(value = "/countPblmInfoByCase", method = RequestMethod.POST)
  308. public BaseResponse<List<TacCountDto>> countPblmInfoByCase(@RequestBody TacPblmInfoParam pblmInfoParam) {
  309. List<TacCountDto> list = tacPblmInfoService.countPblmInfoByCase(pblmInfoParam);
  310. return buildSuccessResponse(list);
  311. }
  312. @Deprecated
  313. @ApiOperation(value = "统计问题发生频度")
  314. @RequestMapping(value = "/countPblmInfoByQlttv", method = RequestMethod.POST)
  315. public BaseResponse<List<TacCountDto>> countPblmInfoByQlttv(@RequestBody TacPblmInfoParam pblmInfoParam) {
  316. List<TacCountDto> list = tacPblmInfoService.countPblmInfoByQlttv(pblmInfoParam);
  317. return buildSuccessResponse(list);
  318. }
  319. @ApiOperation(value = "问题发生频度第一个接口,统计问题数或项目数")
  320. @RequestMapping(value = "/countPblmInfoByQt", method = RequestMethod.POST)
  321. public BaseResponse<List<TacCountDto>> countPblmInfoByQt(@RequestBody TacPblmInfoParam pblmInfoParam) {
  322. List<TacCountDto> list = tacPblmInfoService.countPblmInfoByQt(pblmInfoParam);
  323. return buildSuccessResponse(list);
  324. }
  325. @ApiOperation(value = "问题发生频度新第一个接口,统计问题数或项目数(对应新阶段流程信息)")
  326. @RequestMapping(value = "/countPblmInfoByQtNew", method = RequestMethod.POST)
  327. public BaseResponse<List<TacCountDto>> countPblmInfoByQtNew(@RequestBody TacPblmInfoParam pblmInfoParam) {
  328. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  329. List<TacCountDto> list = tacPblmInfoService.countPblmInfoByQtNew(pblmInfoParam);
  330. return buildSuccessResponse(list);
  331. }
  332. @ApiOperation(value = "问题发生频度第二个接口,统计问题数或项目数 问题分类最大值")
  333. @RequestMapping(value = "/countPblmInfoMaxByQt", method = RequestMethod.POST)
  334. public BaseResponse<List<TacCountDto>> countPblmInfoMaxByQt(@RequestBody TacPblmInfoParam pblmInfoParam) {
  335. List<TacCountDto> list = tacPblmInfoService.countPblmInfoMaxByQt(pblmInfoParam);
  336. return buildSuccessResponse(list);
  337. }
  338. @ApiOperation(value = "问题发生频度新第二个接口,统计问题数或项目数 问题分类最大值(对应新阶段流程信息)")
  339. @RequestMapping(value = "/countPblmInfoMaxByQtNew", method = RequestMethod.POST)
  340. public BaseResponse<List<TacCountDto>> countPblmInfoMaxByQtNew(@RequestBody TacPblmInfoParam pblmInfoParam) {
  341. pblmInfoParam.setProvince(olBisInspOrgService.getRlProvince(getCurrentOrgId()));
  342. List<TacCountDto> list = tacPblmInfoService.countPblmInfoMaxByQtNew(pblmInfoParam);
  343. return buildSuccessResponse(list);
  344. }
  345. @ApiOperation(value = "分页查询稽察问题清单")
  346. @RequestMapping(value = "/pageObjPblm", method = RequestMethod.POST)
  347. public BaseResponse<PageInfo<TacPblmInfo>> pageObjPblm(@RequestBody TacPblmInfoParam pblmInfoParam) {
  348. String province = olBisInspOrgService.getRlProvince(getCurrentOrgId());
  349. pblmInfoParam.setProvince(province);
  350. pblmInfoParam.setOrgId(getCurrentOrgId());
  351. PageInfo<TacPblmInfo> tacPawpRgstr = tacPblmInfoService.findPageInfoNew(pblmInfoParam);
  352. return buildSuccessResponse(tacPawpRgstr);
  353. }
  354. @ApiOperation(value = "分页查询稽察问题清单")
  355. @RequestMapping(value = "/pageProvincePblm", method = RequestMethod.POST)
  356. public BaseResponse<PageInfo<TacPblmInfo>> pageProvincePblm(@RequestBody TacPblmInfoParam pblmInfoParam) {
  357. String province = olBisInspOrgService.getRlProvince(getCurrentOrgId());
  358. pblmInfoParam.setProvince(province);
  359. pblmInfoParam.setOrgId(getCurrentOrgId());
  360. PageInfo<TacPblmInfo> tacPawpRgstr = tacPblmInfoService.findProvincePblmInfo(pblmInfoParam);
  361. return buildSuccessResponse(tacPawpRgstr);
  362. }
  363. @ApiOperation(value = "问题统计-工程项目")
  364. @RequestMapping(value = "/countPblmInfoByObj", method = RequestMethod.POST)
  365. public BaseResponse<List<TacCountDto>> countPblmInfoByObj(@RequestBody TacPblmInfoParam pblmInfoParam) {
  366. String province = olBisInspOrgService.getRlProvince(getCurrentOrgId());
  367. pblmInfoParam.setProvince(province);
  368. List<TacCountDto> tacCountDtos = tacPblmInfoService.countPblmInfoByObj(pblmInfoParam);
  369. return buildSuccessResponse(tacCountDtos);
  370. }
  371. @ApiOperation(value = "获取当前人员是否是当前问题所在组的组长")
  372. @RequestMapping(value = "/ifLeader/{id}", method = RequestMethod.GET)
  373. public BaseResponse<Boolean> ifLeader(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
  374. List<String> guids = tacPblmInfoService.getLeaderId(id);
  375. if(!CollectionUtils.isEmpty(guids) && guids.contains(getCurrentPersId())){
  376. return buildSuccessResponse(true);
  377. }
  378. return buildSuccessResponse(false);
  379. }
  380. }