" <if test='creationTime!=null and endTime!=null and endTime!=\"\" and creationTime!=\"\" '> and u.creationTime between #{creationTime} and #{endTime}</if>",
"GROUP BY u.creationTime desc",
"GROUP BY u.userId order by u.creationTime desc",
"</script> "})
List<UserM>queryUser(UserMuser);
@ -147,6 +147,9 @@ public interface UserMapper {
@Select("SELECT u.* from user u where isdel=0 and phone = #{phone} and password = #{password}")
UserMlogins(UserMuser);
@Select("SELECT u.* from user u where isdel=0 and phone = #{phone}")
UserMqueryPhone(Stringphone);
@Select({"<script>",
"SELECT u.*,d.disciplineName,p.professionalName,pc.professionalClassName,schoolName from user u,discipline d,professional p,professional_class pc,school s where u.isdel = 0 and u.disciplineId = d.disciplineId and u.professionalId = p.professionalId and u.professionalClassId = pc.professionalClassId and u.schoolId = s.schoolId and u.userId = #{userId}",
"</script> "})
@ -166,6 +169,19 @@ public interface UserMapper {
})
voidaddUserM(@Param("users")List<UserM>users);
//修改用户头像
@Update("update user set userAvatars=#{userAvatars} where userId=#{userId}")