mybatis-plus 注解 @Update 内<script> 注意小写 大写则报错
@Mapper
public interface StatusDao extends BaseMapper<StatusEntity> {
@Update("<script> update status set" +
" current_status = #{currentStatus},update_time = #{updateTime}" +
" where 1 = 1" +
" <if test=\"appId != null and appId != ''\">" +
" and app_id = #{appId}\n" +
" </if>" +
" <if test=\"action != null and action != ''\">" +
" and action = #{action}\n" +
" </if>" +
"</script> ")

浙公网安备 33010602011771号