zhn-cloud/zhn-modules/zhn-system/target/classes/mappers/UserMapper.xml

23 lines
684 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.zhn.system.mapper.UserMapper">
<update id="updatemenoy">
update user
set balance = #{balance}
where username = #{username};
</update>
<!--namespace根据自己需要创建的的mapper的路径和名称填写-->
<select id="byphone" resultType="com.zhn.common.domain.User">
select *
from user
<where>
<if test="null!=phone and ''!=phone">
and phone =#{phone}
</if>
</where>
</select>
</mapper>