4 changed files with 51 additions and 9 deletions
@ -0,0 +1,7 @@ |
|||
package com.ccsens.ptos_open.persist.dao; |
|||
|
|||
public interface UserDao { |
|||
String getUserNameById(Long userId); |
|||
|
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
<?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.ccsens.ptos_open.persist.dao.UserDao"> |
|||
|
|||
|
|||
<select id="getUserNameById" resultType="java.lang.String"> |
|||
SELECT |
|||
`name` |
|||
FROM |
|||
t_sys_user |
|||
|
|||
WHERE |
|||
id = #{userId} |
|||
and rec_status = 0 |
|||
|
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue