修复缺少用户UID
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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>
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user