You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?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.epmet.dao.UserDao">
|
|
|
|
<!-- 根据手机号查询运营人员信息-->
|
|
|
|
<select id="selectOperUserByPhone" resultType="com.epmet.dto.result.PasswordLoginUserInfoResultDTO">
|
|
|
|
SELECT
|
|
|
|
ou.USER_ID AS userId,
|
|
|
|
PASSWORD AS PASSWORD
|
|
|
|
FROM
|
|
|
|
oper_user ou
|
|
|
|
WHERE
|
|
|
|
ou.DEL_FLAG = '0'
|
|
|
|
AND ou.STATUS = '1'
|
|
|
|
AND ou.PHONE = #{phone}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 查询用户注册时间 -->
|
|
|
|
<select id="createdTimeByUserId" resultType="com.epmet.dto.result.CreatedTimeByUserIdResultDTO">
|
|
|
|
SELECT
|
|
|
|
UNIX_TIMESTAMP( created_time ) AS registerTime
|
|
|
|
FROM
|
|
|
|
user
|
|
|
|
WHERE
|
|
|
|
id = #{userId}
|
|
|
|
AND del_flag = 0
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|