SystemAdminMapper.xml
954 字节
<?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.sibu.orderHelper.integral.web.dao.SystemAdminDao">
<!-- <cache type="org.mybatis.caches.ehcache.EhcacheCache"/> -->
<select id="login" resultMap="resultSystemAdminBean" parameterType="java.lang.String" >
SELECT admin_id,username,password,phone,wechat,type_id,login_dt from system_admin where phone = #{phone} and delete_flag = 1 limit 1
</select>
<resultMap type="SystemAdminBean" id="resultSystemAdminBean">
<result column="admin_id" property="adminId" />
<result column="username" property="username" />
<result column="password" property="password" />
<result column="phone" property="phone" />
<result column="wechat" property="wechat" />
<result column="type_id" property="typeId" />
<result column="login_dt" property="loginDt" />
</resultMap>
</mapper>