|
@@ -123,7 +123,7 @@ public class TpActivitySignUpServiceImpl extends ServiceImpl<TpActivitySignUpMap
|
123
|
123
|
}
|
124
|
124
|
|
125
|
125
|
tpActivitySignUpMapper.deleteById(tpActivitySignUp);
|
126
|
|
- TpActivity tpActivity = tpActivityMapper.selectById(tpActivitySignUp.getId());
|
|
126
|
+ TpActivity tpActivity = tpActivityMapper.selectById(tpActivitySignUp.getActivityId());
|
127
|
127
|
if (tpActivity.getSignUpCount().intValue() > 0) {
|
128
|
128
|
tpActivity.setSignUpCount(tpActivity.getSignUpCount() - 1);
|
129
|
129
|
tpActivityMapper.updateById(tpActivity);
|