魏超 5 年前
父节点
当前提交
86a7823ff6

+ 1
- 1
src/main/java/com/huiju/estateagents/controller/TaLiveActivityController.java 查看文件

@@ -186,7 +186,7 @@ public class TaLiveActivityController extends BaseController {
186 186
     public ResponseBean taLiveActivityGet(@PathVariable Integer id) {
187 187
         ResponseBean responseBean = new ResponseBean();
188 188
         try {
189
-            responseBean.addSuccess(iTaLiveActivityService.getById(id));
189
+            responseBean.addSuccess(iTaLiveActivityService.getDetailById(id));
190 190
         } catch (Exception e) {
191 191
             e.printStackTrace();
192 192
             logger.error("taLiveActivityDelete -=- {}", e.toString());

+ 8
- 0
src/main/java/com/huiju/estateagents/entity/TdLiveDict.java 查看文件

@@ -1,5 +1,7 @@
1 1
 package com.huiju.estateagents.entity;
2 2
 
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
3 5
 import lombok.Data;
4 6
 import lombok.EqualsAndHashCode;
5 7
 import lombok.experimental.Accessors;
@@ -22,6 +24,12 @@ public class TdLiveDict implements Serializable {
22 24
 
23 25
     private static final long serialVersionUID = 1L;
24 26
 
27
+    /**
28
+     * 认筹记录表
29
+     */
30
+    @TableId(value = "id", type = IdType.AUTO)
31
+    private Integer id;
32
+
25 33
     /**
26 34
      * 直播平台名称
27 35
      */

+ 1
- 1
src/main/java/com/huiju/estateagents/mapper/TaLiveActivityMapper.java 查看文件

@@ -39,5 +39,5 @@ public interface TaLiveActivityMapper extends BaseMapper<TaLiveActivity> {
39 39
      */
40 40
     void updateLiveActivityStatus(@Param("orgId") Integer orgId, @Param("taLiveActivityList") List<TaLiveActivity> taLiveActivityList);
41 41
 
42
-
42
+    TaLiveActivity getDetailById(@Param("id")Integer id);
43 43
 }

+ 2
- 0
src/main/java/com/huiju/estateagents/service/ITaLiveActivityService.java 查看文件

@@ -60,4 +60,6 @@ public interface ITaLiveActivityService extends IService<TaLiveActivity> {
60 60
     ResponseBean getLiveActivityDetailById(String id,Integer orgId);
61 61
 
62 62
     ResponseBean delLiveActivityList(Integer orgId, List<TaLiveActivity> liveActivityList);
63
+
64
+    ResponseBean getDetailById(Integer id);
63 65
 }

+ 7
- 0
src/main/java/com/huiju/estateagents/service/impl/TaLiveActivityServiceImpl.java 查看文件

@@ -186,4 +186,11 @@ public class TaLiveActivityServiceImpl extends ServiceImpl<TaLiveActivityMapper,
186 186
         taLiveActivityMapper.updateLiveActivityStatus(orgId, liveActivityList);
187 187
         return responseBean;
188 188
     }
189
+
190
+    @Override
191
+    public ResponseBean getDetailById(Integer id) {
192
+        ResponseBean responseBean = new ResponseBean();
193
+        responseBean.addSuccess(taLiveActivityMapper.getDetailById(id));
194
+        return responseBean;
195
+    }
189 196
 }

+ 5
- 0
src/main/resources/mapper/TaLiveActivityMapper.xml 查看文件

@@ -47,5 +47,10 @@
47 47
     </if>
48 48
         order by t.weight desc
49 49
     </select>
50
+    <select id="getDetailById" resultType="com.huiju.estateagents.entity.TaLiveActivity">
51
+        select t.*,a.live_plat_name as liveAppName From ta_live_activity t
52
+        left join td_live_dict a on t.live_app = a.id
53
+        where t.live_activity_id = #{id}
54
+    </select>
50 55
 
51 56
 </mapper>

+ 1
- 1
src/main/resources/mapper/TaRaiseRecordMapper.xml 查看文件

@@ -114,7 +114,7 @@
114 114
             AND t.tel like CONCAT('%',#{bo.tel} , '%')
115 115
         </if>
116 116
         <if test="bo.personTel != null and bo.personTel != ''">
117
-            AND t5.tel like CONCAT('%',#{bo.personTel}  , '%')
117
+            AND t.tel like CONCAT('%',#{bo.personTel}  , '%')
118 118
         </if>
119 119
         <if test="bo.payStatus != null and bo.payStatus != ''">
120 120
             AND t.pay_status = #{bo.payStatus}