month1010/bwie-modules/bwie-system/target/classes/mapper/UserMapper.xml

15 lines
537 B
XML

<?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.bwie.system.mapper.UserMapper">
<select id="findByUserName" resultType="com.bwie.common.domain.response.UserResponse">
select *from t_user where user_name=#{userName}
</select>
<select id="findByUserId" resultType="com.bwie.common.domain.response.UserResponse">
select *from t_user where id=#{id}
</select>
</mapper>