From ccd28a0c35e8fff74da6ef63042fb8a896d78f7f Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期三, 29 六月 2022 09:45:52 +0800 Subject: [PATCH] 单位服务统计 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActAcidRecordApi.java | 48 ++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 40 insertions(+), 8 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActAcidRecordApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActAcidRecordApi.java index 2e67981..93bf0bf 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActAcidRecordApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActAcidRecordApi.java @@ -59,6 +59,17 @@ } /** + * 分页查询所有数据 + * + * @param comActAcidRecordDTO 查询实体 + * @return 所有数据 + */ + @PostMapping("exportNew") + public R exportNew(@RequestBody ComActAcidRecordDTO comActAcidRecordDTO) { + return this.comActAcidRecordService.exportNew(comActAcidRecordDTO); + } + + /** * 通过主键查询单条数据 * * @param id 主键 @@ -66,7 +77,7 @@ */ @GetMapping("{id}") public R selectOne(@PathVariable("id") Long id) { - return R.ok(this.comActAcidRecordService.getById(id)); + return this.comActAcidRecordService.detailByCommunity(id); } /** @@ -88,13 +99,20 @@ */ @PostMapping("/update") public R update(@RequestBody ComActAcidRecordVO comActAcidRecordVO) { - ComActAcidRecord comActAcidRecord=new ComActAcidRecord(); - BeanUtils.copyProperties(comActAcidRecordVO,comActAcidRecord); - if(StringUtils.isNotEmpty(comActAcidRecord.getLocalCity())){ - this.comActAcidRecordService.updateById(comActAcidRecord); - } - return R.ok(); + return this.comActAcidRecordService.updateLocalCity(comActAcidRecordVO); } + + /** + * 小程序修改填报记录 + * + * @param comActAcidRecordVO 实体对象 + * @return 修改结果 + */ + @PostMapping("/updateApplets") + public R updateApplets(@RequestBody ComActAcidRecordVO comActAcidRecordVO) { + return this.comActAcidRecordService.updateApplets(comActAcidRecordVO); + } + /** * 删除数据 @@ -104,7 +122,7 @@ */ @GetMapping("del") public R delete(@RequestParam("id") Long id) { - return R.ok(this.comActAcidRecordService.removeById(id)); + return this.comActAcidRecordService.delete(id); } /** @@ -125,8 +143,22 @@ return this.comActAcidRecordService.fiveCountPlus(date,localCity); } + /** + * 图标统计 + * @return + */ + @GetMapping("charts") + public R charts(@RequestParam("date")String date,@RequestParam("localCity")String localCity){ + return this.comActAcidRecordService.charts(date,localCity); + } + @GetMapping("/statics") public R statics(@RequestParam("date")String date){ return this.comActAcidRecordService.statics(date); } + + @GetMapping("/detailByApp") + public R detailByApp(@RequestParam("id")Long id,@RequestParam("localCity")String localCity){ + return this.comActAcidRecordService.detailByApp(id,localCity); + } } -- Gitblit v1.7.1