胡轶钦 5 anos atrás
pai
commit
f9d794995e

+ 3
- 0
src/main/java/com/huiju/estateagents/mapper/TaEventPropertiesMapper.java Ver arquivo

@@ -4,6 +4,7 @@ package com.huiju.estateagents.mapper;
4 4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5 5
 import com.huiju.estateagents.entity.TaEventProperties;
6 6
 import org.apache.ibatis.annotations.Mapper;
7
+import org.apache.ibatis.annotations.Param;
7 8
 
8 9
 /**
9 10
  * <p>
@@ -16,4 +17,6 @@ import org.apache.ibatis.annotations.Mapper;
16 17
 @Mapper
17 18
 public interface TaEventPropertiesMapper extends BaseMapper<TaEventProperties> {
18 19
 
20
+    Integer isEventExist(@Param("targetId") String targetId, @Param("eventType") String eventType, @Param("activity") String activity);
21
+
19 22
 }

+ 2
- 0
src/main/java/com/huiju/estateagents/mapper/TaPersonVisitRecordMapper.java Ver arquivo

@@ -42,4 +42,6 @@ public interface TaPersonVisitRecordMapper extends BaseMapper<TaPersonVisitRecor
42 42
     @Select("select * from ta_person_visit_record where event = #{event} and person_id = #{personId}")
43 43
     List<TaPersonVisitRecord> selectEventAll(@Param("event") String event, @Param("personId") Integer personId);
44 44
 
45
+
46
+
45 47
 }

+ 2
- 0
src/main/java/com/huiju/estateagents/service/ITaEventPropertiesService.java Ver arquivo

@@ -14,4 +14,6 @@ import com.huiju.estateagents.entity.TaEventProperties;
14 14
  */
15 15
 public interface ITaEventPropertiesService extends IService<TaEventProperties> {
16 16
 
17
+    Integer isEventExist(String targetId,String eventType,String activity);
18
+
17 19
 }

+ 4
- 0
src/main/java/com/huiju/estateagents/service/impl/TaEventPropertiesServiceImpl.java Ver arquivo

@@ -16,5 +16,9 @@ import org.springframework.stereotype.Service;
16 16
  */
17 17
 @Service
18 18
 public class TaEventPropertiesServiceImpl extends ServiceImpl<TaEventPropertiesMapper, TaEventProperties> implements ITaEventPropertiesService {
19
+    @Override
20
+    public Integer isEventExist(String targetId,String eventType,String activity){
21
+        return 1;
22
+    }
19 23
 
20 24
 }