weichaochao 5 years ago
parent
commit
6753b006c8

+ 1
- 1
src/main/java/com/huiju/estateagents/controller/TaLiveActivityController.java View File

@@ -89,7 +89,7 @@ public class TaLiveActivityController extends BaseController {
89 89
      * @param id 实体ID
90 90
      */
91 91
     @ResponseBody
92
-    @RequestMapping(value = "/taLiveActivity", method = RequestMethod.DELETE)
92
+    @RequestMapping(value = "/admin/delTaLiveActivity", method = RequestMethod.PUT)
93 93
     public ResponseBean taLiveActivityDelete(@RequestBody List<TaLiveActivity> taLiveActivity, HttpServletRequest request) {
94 94
         ResponseBean responseBean = new ResponseBean();
95 95
         try {

+ 2
- 2
src/main/resources/mapper/TaLiveActivityMapper.xml View File

@@ -11,7 +11,7 @@
11 11
 
12 12
     <update id ="updateLiveActivityStatus" >
13 13
         UPDATE ta_live_activity t
14
-            SET t.`status` = 0,
14
+            SET t.`status` = -1,
15 15
         t.update_date = CURRENT_TIME
16 16
         WHERE
17 17
         t.org_id = #{orgId}
@@ -25,7 +25,7 @@
25 25
      select a.building_name,b.name as city_name, t.* From ta_live_activity t
26 26
      left join ta_building a on t.building_id = a.building_id
27 27
      LEFT JOIN td_city b on t.city_id = b.id
28
-     where t.org_id = #{orgId}
28
+     where t.org_id = #{orgId} and t.status != -1
29 29
      <if test="status != null and status != ''">
30 30
          and t.status = #{status}
31 31
      </if>