提交 a810bda5 作者: han

bug

上级 6f35950e
流水线 #7906 已失败 于阶段
in 2 分 23 秒
...@@ -129,6 +129,7 @@ public class UserPointsServiceImpl implements UserPointsService { ...@@ -129,6 +129,7 @@ public class UserPointsServiceImpl implements UserPointsService {
} }
UserPointsDO userPointsDO = userPointsDao.selectUserPoints(userId); UserPointsDO userPointsDO = userPointsDao.selectUserPoints(userId);
if (userPointsDO == null) { if (userPointsDO == null) {
userPointsDO = new UserPointsDO();
userPointsDO.setUserAccountId(userId); userPointsDO.setUserAccountId(userId);
userPointsDO.setTotalPoints(0); userPointsDO.setTotalPoints(0);
userPointsDao.insertPoints(userPointsDO); userPointsDao.insertPoints(userPointsDO);
......
...@@ -582,7 +582,7 @@ ...@@ -582,7 +582,7 @@
brief_introduction=#{briefIntroduction}, brief_introduction=#{briefIntroduction},
</if> </if>
</set> </set>
where id=#{id} where id=#{id} and is_deleted = 0
</update> </update>
<select id="selectUserAccount" resultType="java.lang.Integer" <select id="selectUserAccount" resultType="java.lang.Integer"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论