2017-08-15 09:47:18 +07:00
|
|
|
<?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" >
|
2017-08-18 16:08:27 +07:00
|
|
|
<mapper namespace="io.spring.infrastructure.mybatis.readservice.UserReadService">
|
|
|
|
<select id="findByUsername" resultType="io.spring.application.data.UserData">
|
2017-08-15 09:47:18 +07:00
|
|
|
select * from users where username = #{username}
|
|
|
|
</select>
|
2017-08-18 16:08:27 +07:00
|
|
|
<select id="findById" resultType="io.spring.application.data.UserData">
|
|
|
|
select * from users where id = #{id}
|
|
|
|
</select>
|
2017-08-15 09:47:18 +07:00
|
|
|
</mapper>
|