|
@@ -4,6 +4,8 @@ package com.community.huiju.dao;
|
4
|
4
|
import com.community.huiju.model.TaUserVerify;
|
5
|
5
|
import org.apache.ibatis.annotations.Mapper;
|
6
|
6
|
import org.apache.ibatis.annotations.Param;
|
|
7
|
+import org.apache.ibatis.annotations.ResultMap;
|
|
8
|
+import org.apache.ibatis.annotations.Select;
|
7
|
9
|
|
8
|
10
|
import java.util.List;
|
9
|
11
|
|
|
@@ -29,14 +31,68 @@ public interface TaUserVerifyMapper {
|
29
|
31
|
List<TaUserVerify> selectByUserId(@Param("userId") Integer userId);
|
30
|
32
|
|
31
|
33
|
/**
|
32
|
|
- * 根据 用户id、小区id 、 小区、期、栋、单元、楼层、户号 进行条件查询
|
|
34
|
+ * 根据 用户id、小区id 、 期、栋、单元、楼层、户号、审核状态 进行条件查询
|
33
|
35
|
* @param communityId
|
34
|
36
|
* @param phaseId
|
35
|
37
|
* @param buildingId
|
36
|
38
|
* @param unitId
|
37
|
39
|
* @param levelId
|
38
|
40
|
* @param roomNoId
|
|
41
|
+ * @param verifyStatus
|
39
|
42
|
* @return
|
40
|
43
|
*/
|
41
|
|
- TaUserVerify selectCommunityAndAddress(Integer userId,Integer communityId,Integer phaseId,Integer buildingId, Integer unitId,Integer levelId,Integer roomNoId);
|
|
44
|
+ List<TaUserVerify> selectCommunityAndAddress(@Param("userId") Integer userId,
|
|
45
|
+ @Param("communityId") Integer communityId,
|
|
46
|
+ @Param("phaseId") Integer phaseId,
|
|
47
|
+ @Param("buildingId") Integer buildingId,
|
|
48
|
+ @Param("unitId") Integer unitId,
|
|
49
|
+ @Param("levelId") Integer levelId,
|
|
50
|
+ @Param("roomNoId") Integer roomNoId,
|
|
51
|
+ @Param("verifyStatus") Integer verifyStatus);
|
|
52
|
+
|
|
53
|
+ /**
|
|
54
|
+ * 根据 小区id 、 期、栋、单元、楼层、户号, 角色id(业主), 审核通过(值为1) 进行条件查询
|
|
55
|
+ * @param communityId
|
|
56
|
+ * @param phaseId
|
|
57
|
+ * @param buildingId
|
|
58
|
+ * @param unitId
|
|
59
|
+ * @param levelId
|
|
60
|
+ * @param roomNoId
|
|
61
|
+ * @return
|
|
62
|
+ */
|
|
63
|
+ @ResultMap("BaseResultMap")
|
|
64
|
+ @Select("select * from ta_user_verify where community_id=#{communityId}" +
|
|
65
|
+ " and phase_id=#{phaseId} and building_id=#{buildingId}" +
|
|
66
|
+ " and unit_id=#{unitId} and level_id=#{levelId}" +
|
|
67
|
+ " and room_no_id=#{roomNoId} and role_id=1 and verify_status=1")
|
|
68
|
+ TaUserVerify selectCommunityAndAddressAndRoleId(@Param("communityId") Integer communityId,
|
|
69
|
+ @Param("phaseId") Integer phaseId,
|
|
70
|
+ @Param("buildingId") Integer buildingId,
|
|
71
|
+ @Param("unitId") Integer unitId,
|
|
72
|
+ @Param("levelId") Integer levelId,
|
|
73
|
+ @Param("roomNoId") Integer roomNoId);
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+ /**
|
|
77
|
+ * 根据 用户id、小区id 、 期、栋、单元、楼层、户号、审核状态(不等于2) 进行条件查询
|
|
78
|
+ * @param communityId
|
|
79
|
+ * @param phaseId
|
|
80
|
+ * @param buildingId
|
|
81
|
+ * @param unitId
|
|
82
|
+ * @param levelId
|
|
83
|
+ * @param roomNoId
|
|
84
|
+ * @return
|
|
85
|
+ */
|
|
86
|
+ @ResultMap("BaseResultMap")
|
|
87
|
+ @Select("select * from ta_user_verify where user_id=#{userId} and community_id=#{communityId}" +
|
|
88
|
+ " and phase_id=#{phaseId} and building_id=#{buildingId}" +
|
|
89
|
+ " and unit_id=#{unitId} and level_id=#{levelId}" +
|
|
90
|
+ " and room_no_id=#{roomNoId} and verify_status != 2")
|
|
91
|
+ List<TaUserVerify> selectCommunityAndAddressAndNotVerifyStatus2(@Param("userId") Integer userId,
|
|
92
|
+ @Param("communityId") Integer communityId,
|
|
93
|
+ @Param("phaseId") Integer phaseId,
|
|
94
|
+ @Param("buildingId") Integer buildingId,
|
|
95
|
+ @Param("unitId") Integer unitId,
|
|
96
|
+ @Param("levelId") Integer levelId,
|
|
97
|
+ @Param("roomNoId") Integer roomNoId);
|
42
|
98
|
}
|