|
@@ -42,7 +42,7 @@
|
|
|
from user
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</select>
|
|
|
- <select id="selectByUser" resultType="com.book.dao.cps.pojo.User" parameterType="com.book.dao.cps.pojo.User">
|
|
|
+ <select id="selectByUser" resultMap="BaseResultMap" parameterType="com.book.dao.cps.pojo.User">
|
|
|
|
|
|
select id from user
|
|
|
<trim prefix="WHERE" prefixOverrides="AND | OR">
|
|
@@ -62,7 +62,7 @@
|
|
|
|
|
|
|
|
|
</select>
|
|
|
- <select id="selectByOpenId" resultType="com.book.dao.cps.pojo.User">
|
|
|
+ <select id="selectByOpenId" resultMap="BaseResultMap">
|
|
|
SELECT * from user WHERE openid = #{openid}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|