Skip to content

Instantly share code, notes, and snippets.

@blabadi
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blabadi/c0a1cc76b8c8646e05c6 to your computer and use it in GitHub Desktop.
Save blabadi/c0a1cc76b8c8646e05c6 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xxx.dao.mybatis.mapper.CustomAppUserMapper">
<select id="getUserIdByName" parameterType="java.lang.String" resultType="java.lang.Long">
SELECT id FROM app_user WHERE name = #{name}
</select>
</mapper>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment