|
@@ -1,10 +1,7 @@
|
1
|
1
|
package com.community.huiju.dao;
|
2
|
2
|
|
3
|
3
|
import com.community.huiju.model.TpBuildingOwnerInfo;
|
4
|
|
-import org.apache.ibatis.annotations.Mapper;
|
5
|
|
-import org.apache.ibatis.annotations.Param;
|
6
|
|
-import org.apache.ibatis.annotations.ResultMap;
|
7
|
|
-import org.apache.ibatis.annotations.Select;
|
|
4
|
+import org.apache.ibatis.annotations.*;
|
8
|
5
|
|
9
|
6
|
import java.util.List;
|
10
|
7
|
|
|
@@ -76,4 +73,14 @@ public interface TpBuildingOwnerInfoMapper {
|
76
|
73
|
@ResultMap("BaseResultMap")
|
77
|
74
|
@Select("select * from tp_building_owner_info where ta_user_verify_id = #{userVerifyId}")
|
78
|
75
|
TpBuildingOwnerInfo selectByUserVerifyId(@Param("userVerifyId") Integer userVerifyId);
|
|
76
|
+
|
|
77
|
+ /**
|
|
78
|
+ * 根据手机号更新手机号
|
|
79
|
+ * @param oldPhone
|
|
80
|
+ * @param newPhone
|
|
81
|
+ * @return
|
|
82
|
+ */
|
|
83
|
+ @ResultType(Integer.class)
|
|
84
|
+ @Update("update tp_building_owner_info set owner_tel = #{newPhone} where owner_tel = #{oldPhone}")
|
|
85
|
+ Integer updateAllByPhone(String oldPhone, String newPhone);
|
79
|
86
|
}
|