| | |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.vos.community.acid.ComActAcidRecordVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.entity.ComActAcidRecord; |
| | | import com.panzhihua.service_community.service.ComActAcidRecordService; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | */ |
| | | @PostMapping("/update") |
| | | public R update(@RequestBody ComActAcidRecordVO comActAcidRecordVO) { |
| | | ComActAcidRecord comActAcidRecord=new ComActAcidRecord(); |
| | | BeanUtils.copyProperties(comActAcidRecordVO,comActAcidRecord); |
| | | return R.ok(this.comActAcidRecordService.updateById(comActAcidRecord)); |
| | | return this.comActAcidRecordService.updateLocalCity(comActAcidRecordVO); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("fiveCountPlus") |
| | | public R fiveCountPlus(@RequestParam("date")String date){ |
| | | return this.comActAcidRecordService.fiveCountPlus(date); |
| | | public R fiveCountPlus(@RequestParam("date")String date,@RequestParam("localCity")String localCity){ |
| | | return this.comActAcidRecordService.fiveCountPlus(date,localCity); |
| | | } |
| | | |
| | | @GetMapping("/statics") |