mybatis使用多参数查询

repository接口写法:

Subject getSubject_By_Oname_Userlevel(@Param("userLevel") Integer userLevel, @Param("organization_name") String organization_name);

Mapper层配置文件写法:
注意:resultmap是结果集,select为查询语句。其中,#{…}中的名字要和@Param注解中的参数名对应


你可能感兴趣的:(java,mybatis,java,数据库)