weichaochao 5 lat temu
rodzic
commit
6753b006c8

+ 1
- 1
src/main/java/com/huiju/estateagents/controller/TaLiveActivityController.java Wyświetl plik

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

+ 2
- 2
src/main/resources/mapper/TaLiveActivityMapper.xml Wyświetl plik

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