From d03d65eb475a2e689fa30f3b8681e6d97177ae08 Mon Sep 17 00:00:00 2001
From: yanghui <2536613402@qq.com>
Date: 星期一, 05 十二月 2022 09:58:06 +0800
Subject: [PATCH] #feat 过滤可视化大屏的接口

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActRaffleRecordApi.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActRaffleRecordApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActRaffleRecordApi.java
index 9a34f86..fcfdc64 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActRaffleRecordApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActRaffleRecordApi.java
@@ -69,7 +69,7 @@
      */
     @GetMapping("{id}")
     public R selectOne(@PathVariable("id") Long id) {
-        return R.ok(this.comActRaffleRecordService.selectById(id));
+        return this.comActRaffleRecordService.selectById(id);
     }
 
     /**
@@ -93,6 +93,10 @@
      */
     @PostMapping("/update")
     public R update(@RequestBody ComActRaffleRecordVO comActRaffleRecordVO) {
+        ComActRaffleRecord comActRaffleRecord1=comActRaffleRecordService.getById(comActRaffleRecordVO.getId());
+        if(comActRaffleRecord1.getStatus()!=1){
+            return R.fail("核销失败");
+        }
         ComActRaffleRecord comActRaffleRecord=new ComActRaffleRecord();
         BeanUtils.copyProperties(comActRaffleRecordVO,comActRaffleRecord);
         return R.ok(this.comActRaffleRecordService.updateById(comActRaffleRecord));

--
Gitblit v1.7.1