| | |
| | | "from sys_user u\n" + |
| | | "left join com_act a on u.community_id=a.community_id\n" + |
| | | " where\n" + |
| | | "u.type=1\n" + |
| | | "u.type=1 and u.community_id is not null \n" + |
| | | "<if test='pageUserAppletsBackstageDTO.phone != null and pageUserAppletsBackstageDTO.phone.trim() != ""'>" + |
| | | "and u.phone=#{pageUserAppletsBackstageDTO.phone}\n" + |
| | | " </if> " + |
| | |
| | | "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}") |