浏览代码

eventType

胡轶钦 5 年前
父节点
当前提交
f9d794995e

+ 3
- 0
src/main/java/com/huiju/estateagents/mapper/TaEventPropertiesMapper.java 查看文件

4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.huiju.estateagents.entity.TaEventProperties;
5
 import com.huiju.estateagents.entity.TaEventProperties;
6
 import org.apache.ibatis.annotations.Mapper;
6
 import org.apache.ibatis.annotations.Mapper;
7
+import org.apache.ibatis.annotations.Param;
7
 
8
 
8
 /**
9
 /**
9
  * <p>
10
  * <p>
16
 @Mapper
17
 @Mapper
17
 public interface TaEventPropertiesMapper extends BaseMapper<TaEventProperties> {
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 查看文件

42
     @Select("select * from ta_person_visit_record where event = #{event} and person_id = #{personId}")
42
     @Select("select * from ta_person_visit_record where event = #{event} and person_id = #{personId}")
43
     List<TaPersonVisitRecord> selectEventAll(@Param("event") String event, @Param("personId") Integer personId);
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 查看文件

14
  */
14
  */
15
 public interface ITaEventPropertiesService extends IService<TaEventProperties> {
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 查看文件

16
  */
16
  */
17
 @Service
17
 @Service
18
 public class TaEventPropertiesServiceImpl extends ServiceImpl<TaEventPropertiesMapper, TaEventProperties> implements ITaEventPropertiesService {
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
 }