Commit 7125ddd7 authored by 李健华's avatar 李健华

更新事务

parent 7df0a875
......@@ -81,6 +81,7 @@ public interface IWeChatUserRepository extends JpaRepository<WechatUserInfo, Lon
* @param unionId
* @return
*/
@Transactional(rollbackFor = Exception.class)
@Modifying
@Query(value = "update wechat_userinfo set union_id=?3 where user_id=?1 and app_name=?2", nativeQuery = true)
int updateUserUnionId(Long userId, String appName, String unionId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment