浏览代码

修改死锁问题,加了唯一索引

zouxuan 5 月之前
父节点
当前提交
39f1bf00ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/UserMusicCompareCampDayDataMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/UserMusicCompareCampDayDataMapper.xml

@@ -8,6 +8,6 @@
         a.train_time_ = a.train_time_ + #{playTime}
         where a.user_id_ = #{userId}
         and a.camp_id_ = #{campId}
-        and a.day_ = date_format(now(), '%Y-%m-%d')
+        and a.day_ = CURDATE()
     </update>
 </mapper>