| | |
| | | "FROM\n" + |
| | | "\t com_pb_member_role a \n" + |
| | | "WHERE\n" + |
| | | "\t a.phone = #{phone}") |
| | | Integer selectCountMemberRole(@Param("phone")String phone); |
| | | "\t a.phone = #{phone} and community_id=#{userCommunityId} ") |
| | | Integer selectCountMemberRole(@Param("phone")String phone, @Param("userCommunityId")Long userCommunityId); |
| | | |
| | | @Select("SELECT\n" + |
| | | "\t COUNT(a.id)\n" + |
| | | "FROM\n" + |
| | | "\t com_pb_service_team a \n" + |
| | | "WHERE\n" + |
| | | "\t a.phone = #{phone}") |
| | | Integer selectCountTeam(@Param("phone")String phone); |
| | | "\t a.phone = #{phone} and community_id=#{userCommunityId} ") |
| | | Integer selectCountTeam(@Param("phone")String phone, @Param("userCommunityId")Long userCommunityId); |
| | | |
| | | |
| | | @Update("update com_pb_member_role u set u.phone=#{newphone},is_reg=1 where u.phone=#{oldphone}") |