修复缺少用户UID

This commit is contained in:
liaozetao
2024-02-06 17:50:22 +08:00
parent 258b4514f6
commit 3d0d35a2dc
3 changed files with 4 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ public interface ActUserTaskDao extends BaseMapper<ActUserTask> {
*
* @param activityCode
* @param taskCode
* @param uid
* @param exchangeValue
*/
void updateExchangeValue(@Param("activityCode") String activityCode, @Param("taskCode") String taskCode, @Param("exchangeValue") Integer exchangeValue);
void updateExchangeValue(@Param("activityCode") String activityCode, @Param("taskCode") String taskCode, @Param("uid") Long uid, @Param("exchangeValue") Integer exchangeValue);
}

View File

@@ -3,6 +3,6 @@
<mapper namespace="com.accompany.business.mapper.ActUserTaskDao">
<update id="updateExchangeValue">
update act_user_task set exchange_value = exchange_value + #{exchangeValue} where activity_code =
#{activityCode} and task_code = #{taskCode}
#{activityCode} and task_code = #{taskCode} and uid = #{uid}
</update>
</mapper>

View File

@@ -171,7 +171,7 @@ public class ActUserTaskServiceImpl extends ServiceImpl<ActUserTaskDao, ActUserT
}
}
//更新兑换值
baseMapper.updateExchangeValue(activityCode, taskCode, (int) (num * conditionValue));
baseMapper.updateExchangeValue(activityCode, taskCode, uid, (int) (num * conditionValue));
}
private ActivityTask buildActivityTask(ActTask actTask) {