软件工程师和算法工程师速来!正在直播:如何使用英特尔oneAPI工具实现PyTorch 优化>>>
动态sql如下:
<update id="updateCoverFront" parameterType="com.iflytek.ichang.dc.domain.cover.Cover">
update Cover
<trim prefix="SET" suffixOverrides=",">
<if test="coverfrontid != null and coverfrontid != ''">
CoverFrontID=#{coverfrontid},
</if>
<if test="playstyleid != null and playstyleid != ''">
PlayStyleID=#{playstyleid}
</if>
</trim>
where CoverID=#{coverid}
</update>
运行程序执行上述动态SQL更新不成功,但是没报错。烦请各位帮我看看使用trim+if方式组装动态sql,像上面这样写有没有问题,请指点!谢谢