TaskStatisticsController.java 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. package com.ydtech.modules.admin.controller.taskStatistics;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.ydtech.core.page.HttpResult;
  4. import com.ydtech.modules.admin.model.dto.TaskStatisticsDto;
  5. import com.ydtech.modules.admin.model.dto.TaskStatisticsDtoNew;
  6. import com.ydtech.modules.admin.model.vo.BusinessAgentData;
  7. import com.ydtech.modules.admin.model.vo.KztGetDeptUtilsDto;
  8. import com.ydtech.modules.admin.model.vo.TaskStatisticsVo;
  9. import com.ydtech.modules.admin.service.TaskStatisticsService;
  10. import com.ydtech.modules.admin.utils.KztGetDeptUtils;
  11. import io.swagger.annotations.*;
  12. import org.apache.commons.lang3.ObjectUtils;
  13. import org.springframework.beans.factory.annotation.Autowired;
  14. import org.springframework.web.bind.annotation.PostMapping;
  15. import org.springframework.web.bind.annotation.RequestBody;
  16. import org.springframework.web.bind.annotation.RequestMapping;
  17. import org.springframework.web.bind.annotation.RestController;
  18. import javax.servlet.http.HttpServletRequest;
  19. import java.util.HashMap;
  20. import java.util.List;
  21. /**
  22. * @description: 任务统计
  23. * @author: whp
  24. * @date: 2024/7/25
  25. **/
  26. @Api(tags = "控制台-任务统计")
  27. @RequestMapping("/taskStatistics")
  28. @RestController
  29. public class TaskStatisticsController {
  30. @Autowired
  31. private TaskStatisticsService taskStatisticsService;
  32. /**
  33. * @description: 渠道任务统计查询
  34. * @author: whp
  35. * @date: 2024/7/25
  36. **/
  37. @PostMapping("queryPage")
  38. @ApiOperation(value = "控制台-渠道任务统计查询")
  39. public HttpResult<IPage<TaskStatisticsDto>> queryPage(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  40. try{
  41. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  42. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  43. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  44. if("1".equals(kztGetDeptUtilsDto.getType())){
  45. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  46. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  47. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  48. }
  49. }
  50. IPage<TaskStatisticsDto> result = taskStatisticsService.queryPage(taskStatisticsVo);
  51. return HttpResult.ok("查询数据成功", result);
  52. }catch (Exception e){
  53. return HttpResult.error("查询错误"+e.getMessage());
  54. }
  55. }
  56. /**
  57. * @description: 电销任务统计查询
  58. * @author: whp
  59. * @date: 2024/10/11
  60. **/
  61. @PostMapping("queryPageElectric")
  62. @ApiOperation(value = "控制台-电销任务统计查询")
  63. public HttpResult<IPage<TaskStatisticsDto>> queryPageElectric(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  64. try{
  65. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  66. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  67. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  68. if("1".equals(kztGetDeptUtilsDto.getType())){
  69. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  70. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  71. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  72. }
  73. }
  74. IPage<TaskStatisticsDto> result = taskStatisticsService.queryPageElectric(taskStatisticsVo);
  75. return HttpResult.ok("查询数据成功", result);
  76. }catch (Exception e){
  77. return HttpResult.error("查询错误"+e.getMessage());
  78. }
  79. }
  80. /**
  81. * @description: 保险公司统计查询
  82. * @author: whp
  83. * @date: 2024/7/25
  84. **/
  85. @PostMapping("insuranceCompanyQueryPage")
  86. @ApiOperation(value = "控制台-保险公司统计查询")
  87. public HttpResult<IPage<TaskStatisticsDto>> insuranceCompanyQueryPage(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  88. try{
  89. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  90. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  91. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  92. if("1".equals(kztGetDeptUtilsDto.getType())){
  93. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  94. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  95. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  96. }
  97. }
  98. IPage<TaskStatisticsDto> result = taskStatisticsService.insuranceCompanyQueryPage(taskStatisticsVo);
  99. return HttpResult.ok("查询数据成功", result);
  100. }catch (Exception e){
  101. return HttpResult.error("查询错误"+e.getMessage());
  102. }
  103. }
  104. /**
  105. * @description: 代理人统计查询
  106. * @author: whp
  107. * @date: 2024/7/26
  108. **/
  109. @PostMapping("agentStatisticsQueryPage")
  110. @ApiOperation(value = "控制台-代理人统计查询")
  111. public HttpResult<IPage<TaskStatisticsDto>> agentStatisticsQueryPage(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  112. try{
  113. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  114. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  115. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  116. if("1".equals(kztGetDeptUtilsDto.getType())){
  117. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  118. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  119. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  120. }
  121. }
  122. IPage<TaskStatisticsDto> result = taskStatisticsService.agentStatisticsQueryPage(taskStatisticsVo);
  123. return HttpResult.ok("查询数据成功", result);
  124. }catch (Exception e){
  125. return HttpResult.error("查询错误"+e.getMessage());
  126. }
  127. }
  128. /**
  129. * @description: 任务统计-代理人导出
  130. * @author: whp
  131. * @date: 2024/9/9
  132. **/
  133. @PostMapping("/agentExcel")
  134. @ApiOperation(value = "任务统计-代理人导出")
  135. public HttpResult channelAgentExcel(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  136. return this.taskStatisticsService.agentExcel(taskStatisticsVo);
  137. }
  138. /**
  139. * @description: 财务中心-费用校验
  140. * @author: whp
  141. * @date: 2024/7/29
  142. **/
  143. @PostMapping("costCenter")
  144. @ApiOperation(value = "控制台-财务中心-费用校验")
  145. public HttpResult<IPage<TaskStatisticsDto>> costCenter(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  146. try{
  147. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  148. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  149. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  150. if("1".equals(kztGetDeptUtilsDto.getType())){
  151. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  152. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  153. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  154. }
  155. }
  156. IPage<TaskStatisticsDto> result = taskStatisticsService.costCenter(taskStatisticsVo);
  157. return HttpResult.ok("查询数据成功", result);
  158. }catch (Exception e){
  159. return HttpResult.error("查询错误"+e.getMessage());
  160. }
  161. }
  162. /**
  163. * @description: 财务中心-费用校验-明细
  164. * @author: whp
  165. * @date: 2024/10/10
  166. **/
  167. @PostMapping("costCenterDetails")
  168. @ApiOperation(value = "控制台-财务中心-费用校验详情")
  169. public HttpResult<IPage<TaskStatisticsDto>> costCenterDetails(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  170. try{
  171. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  172. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  173. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  174. if("1".equals(kztGetDeptUtilsDto.getType())){
  175. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  176. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  177. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  178. }
  179. }
  180. IPage<TaskStatisticsDto> result = taskStatisticsService.costCenterDetails(taskStatisticsVo);
  181. return HttpResult.ok("查询数据成功", result);
  182. }catch (Exception e){
  183. return HttpResult.error("查询错误"+e.getMessage());
  184. }
  185. }
  186. /**
  187. * @description: 财务中心-费用校验-明细-查看
  188. * @author: whp
  189. * @date: 2024/10/10
  190. **/
  191. @PostMapping("costCenterDetailsLicense")
  192. @ApiOperation(value = "控制台-财务中心-费用校验详情-查看")
  193. public HttpResult<TaskStatisticsDtoNew> costCenterDetailsLicense(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  194. try{
  195. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  196. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  197. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  198. if("1".equals(kztGetDeptUtilsDto.getType())){
  199. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  200. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  201. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  202. }
  203. }
  204. TaskStatisticsDtoNew result = taskStatisticsService.costCenterDetailsLicense(taskStatisticsVo);
  205. return HttpResult.ok("查询数据成功", result);
  206. }catch (Exception e){
  207. return HttpResult.error("查询错误"+e.getMessage());
  208. }
  209. }
  210. /**
  211. * @description: 任务统计-保险公司-导出
  212. * @author: whp
  213. * @date: 2024/9/9
  214. **/
  215. @PostMapping("/costCenterDetailsExcel")
  216. @ApiOperation(value = "控制台-财务中心-费用校验详情-导出")
  217. public HttpResult costCenterDetailsExcel(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  218. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  219. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  220. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  221. if("1".equals(kztGetDeptUtilsDto.getType())){
  222. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  223. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  224. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  225. }
  226. }
  227. return this.taskStatisticsService.costCenterDetailsExcel(taskStatisticsVo);
  228. }
  229. /**
  230. * @description: 财务中心-费用校验-合计
  231. * @author: whp
  232. * @date: 2024/9/28
  233. **/
  234. @PostMapping("costCenterTotal")
  235. @ApiOperation(value = "财务中心-费用校验-合计")
  236. public HttpResult<HashMap<String,Object>> costCenterTotal(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  237. try{
  238. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  239. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  240. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  241. if("1".equals(kztGetDeptUtilsDto.getType())){
  242. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  243. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  244. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  245. }
  246. }
  247. HashMap<String,Object> result = taskStatisticsService.costCenterTotal(taskStatisticsVo);
  248. return HttpResult.ok("查询数据成功", result);
  249. }catch (Exception e){
  250. return HttpResult.error("查询错误"+e.getMessage());
  251. }
  252. }
  253. /**
  254. * @description: 保险公司统计总报价
  255. * @author: whp
  256. * @date: 2024/8/12
  257. **/
  258. @PostMapping("totalQuotation")
  259. @ApiOperation(value = "控制台-保险公司统计查询")
  260. public HttpResult<IPage<TaskStatisticsDto>> totalQuotation(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  261. try{
  262. IPage<TaskStatisticsDto> result = taskStatisticsService.totalQuotation(taskStatisticsVo);
  263. return HttpResult.ok("查询数据成功", result);
  264. }catch (Exception e){
  265. return HttpResult.error("查询错误"+e.getMessage());
  266. }
  267. }
  268. /**
  269. * @description: 任务统计-保险公司-导出
  270. * @author: whp
  271. * @date: 2024/9/9
  272. **/
  273. @PostMapping("/insuranceCompanyExcel")
  274. @ApiOperation(value = "任务统计-保险公司-导出")
  275. public HttpResult insuranceCompanyExcel(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  276. return this.taskStatisticsService.insuranceCompanyExcel(taskStatisticsVo);
  277. }
  278. /**
  279. * @description: 控制台-业务数据
  280. * @author: whp
  281. * @date: 2024/8/13
  282. **/
  283. @PostMapping("getBusinessData")
  284. @ApiOperation(value = "控制台-业务数据")
  285. public HttpResult<IPage<TaskStatisticsDto>> getBusinessData(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  286. try{
  287. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  288. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  289. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  290. if("1".equals(kztGetDeptUtilsDto.getType())){
  291. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  292. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  293. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  294. }
  295. }
  296. IPage<TaskStatisticsDto> result = taskStatisticsService.getBusinessData(taskStatisticsVo);
  297. return HttpResult.ok("查询数据成功", result);
  298. }catch (Exception e){
  299. return HttpResult.error("查询错误"+e.getMessage());
  300. }
  301. }
  302. /**
  303. * @description: 控制台-业务数据 - 保险分布
  304. * @author: whp
  305. * @date: 2024/8/13
  306. **/
  307. @PostMapping("getDistribution")
  308. @ApiOperation(value = "控制台-业务数据-保险分布")
  309. public HttpResult<List<TaskStatisticsDto>> getDistribution(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  310. try{
  311. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  312. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  313. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  314. if("1".equals(kztGetDeptUtilsDto.getType())){
  315. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  316. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  317. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  318. }
  319. }
  320. List<TaskStatisticsDto> result = taskStatisticsService.getDistribution(taskStatisticsVo);
  321. return HttpResult.ok("查询数据成功", result);
  322. }catch (Exception e){
  323. return HttpResult.error("查询错误"+e.getMessage());
  324. }
  325. }
  326. /**
  327. * @description: 任务统计-渠道导出
  328. * @author: whp
  329. * @date: 2024/8/13
  330. **/
  331. @PostMapping("/channelExcel")
  332. @ApiOperation(value = "任务统计-渠道导出")
  333. public HttpResult channelExcel(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  334. return this.taskStatisticsService.channelExcel(taskStatisticsVo);
  335. }
  336. /**
  337. * @description: 任控制台-业务数据-代理人
  338. * @author: whp
  339. * @date: 2024/09/09
  340. **/
  341. @PostMapping("getBusinessAgentData")
  342. @ApiOperation(value = "控制台-业务数据-代理人")
  343. public HttpResult<IPage<BusinessAgentData>> getBusinessAgentData(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  344. try{
  345. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  346. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  347. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  348. if("1".equals(kztGetDeptUtilsDto.getType())){
  349. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  350. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  351. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  352. }
  353. }
  354. IPage<BusinessAgentData> result = taskStatisticsService.getBusinessAgentData(taskStatisticsVo);
  355. return HttpResult.ok("查询数据成功", result);
  356. }catch (Exception e){
  357. return HttpResult.error("查询错误"+e.getMessage());
  358. }
  359. }
  360. /**
  361. * @description: 任控制台-业务数据-代理人-合计
  362. * @author: whp
  363. * @date: 2024/09/09
  364. **/
  365. @PostMapping("getBusinessAgentDataTotal")
  366. @ApiOperation(value = "控制台-业务数据-代理人-合计")
  367. public HttpResult<BusinessAgentData> getBusinessAgentDataTotal(@RequestBody TaskStatisticsVo taskStatisticsVo, HttpServletRequest httpServerRequest) {
  368. try{
  369. KztGetDeptUtils kztGetDeptUtils = new KztGetDeptUtils();
  370. KztGetDeptUtilsDto kztGetDeptUtilsDto = kztGetDeptUtils.KztGetDeptIds(httpServerRequest.getRequestURL().toString());
  371. if(ObjectUtils.isNotEmpty(kztGetDeptUtilsDto)){
  372. if("1".equals(kztGetDeptUtilsDto.getType())){
  373. taskStatisticsVo.setDeptIds(kztGetDeptUtilsDto.getIds());
  374. } else if ("2".equals(kztGetDeptUtilsDto.getType())) {
  375. taskStatisticsVo.setUserIds(kztGetDeptUtilsDto.getIds());
  376. }
  377. }
  378. BusinessAgentData result = taskStatisticsService.getBusinessAgentDataTotal(taskStatisticsVo);
  379. return HttpResult.ok("查询数据成功", result);
  380. }catch (Exception e){
  381. return HttpResult.error("查询错误"+e.getMessage());
  382. }
  383. }
  384. /**
  385. * @description: 任控制台-业务数据-代理人-详情
  386. * @author: whp
  387. * @date: 2024/09/10
  388. **/
  389. @PostMapping("getBusinessAgentDataDetails")
  390. @ApiOperation(value = "控制台-业务数据-代理人-详情")
  391. public HttpResult<IPage<BusinessAgentData>> getBusinessAgentDataDetails(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  392. try{
  393. IPage<BusinessAgentData> result = taskStatisticsService.getBusinessAgentDataDetails(taskStatisticsVo);
  394. return HttpResult.ok("查询数据成功", result);
  395. }catch (Exception e){
  396. return HttpResult.error("查询错误"+e.getMessage());
  397. }
  398. }
  399. /**
  400. *
  401. * @param taskStatisticsVo
  402. * @return 控制台任务统计 渠道代理人详情
  403. */
  404. @PostMapping("channelAgentDetails")
  405. @ApiOperation(value = "控制台任务统计 渠道代理人详情")
  406. public HttpResult<IPage<TaskStatisticsDto>> channelAgentDetails(@RequestBody TaskStatisticsVo taskStatisticsVo) {
  407. try{
  408. IPage<TaskStatisticsDto> result = taskStatisticsService.channelAgentDetails(taskStatisticsVo);
  409. return HttpResult.ok("查询数据成功", result);
  410. }catch (Exception e){
  411. return HttpResult.error("查询错误"+e.getMessage());
  412. }
  413. }
  414. }