update 返回值优化
This commit is contained in:
parent
7ccc5d4dfb
commit
4012572b52
|
@ -17,9 +17,9 @@
|
|||
${ew.getCustomSqlSegment}
|
||||
</select>
|
||||
|
||||
<select id="addDownloadNum" resultType="int">
|
||||
<update id="addDownloadNum">
|
||||
update sys_oss_resource
|
||||
set download_num = download_num + 1
|
||||
where id = #{id}
|
||||
</select>
|
||||
</update>
|
||||
</mapper>
|
||||
|
|
|
@ -19,9 +19,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
${ew.getCustomSqlSegment}
|
||||
</select>
|
||||
|
||||
<select id="addDownloadNum" resultType="int">
|
||||
<update id="addDownloadNum">
|
||||
update sys_oss_textbook
|
||||
set download_num = download_num + 1
|
||||
where id = #{id}
|
||||
</select>
|
||||
</update>
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue