2021年7月19日

Transaction silently rolled back because it has been marked as rollback-only

摘要: 参见 阅读全文

posted @ 2021-07-19 19:36 mylittlecabin 阅读(486) 评论(0) 推荐(0) 编辑

记一次insert on duplicate key update的使用

摘要: 基本需求描述:积分扣减/增加操作,记录每条积分明细的同时需要更新一下积分总数,积分不足扣减的时候需要返回异常提示信息。 初始方案: 1 @Modifying 2 @Query(value = "insert ignore into points_total(customer_id, phone_no 阅读全文

posted @ 2021-07-19 18:55 mylittlecabin 阅读(65) 评论(0) 推荐(0) 编辑

导航