update 返回值优化

This commit is contained in:
cjw 2024-06-19 14:19:40 +08:00
parent 7ccc5d4dfb
commit 4012572b52
2 changed files with 4 additions and 4 deletions

View File

@ -17,9 +17,9 @@
${ew.getCustomSqlSegment} ${ew.getCustomSqlSegment}
</select> </select>
<select id="addDownloadNum" resultType="int"> <update id="addDownloadNum">
update sys_oss_resource update sys_oss_resource
set download_num = download_num + 1 set download_num = download_num + 1
where id = #{id} where id = #{id}
</select> </update>
</mapper> </mapper>

View File

@ -19,9 +19,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
${ew.getCustomSqlSegment} ${ew.getCustomSqlSegment}
</select> </select>
<select id="addDownloadNum" resultType="int"> <update id="addDownloadNum">
update sys_oss_textbook update sys_oss_textbook
set download_num = download_num + 1 set download_num = download_num + 1
where id = #{id} where id = #{id}
</select> </update>
</mapper> </mapper>