活动-用户相关功能
This commit is contained in:
parent
7ca5b4099a
commit
f07e466538
BIN
.idea/.cache/.Apifox_Helper/.toolWindow.db
generated
BIN
.idea/.cache/.Apifox_Helper/.toolWindow.db
generated
Binary file not shown.
@ -114,8 +114,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
||||
@Override
|
||||
public ActivityInfo activityInfo(Long activityId) {
|
||||
QueryWrapper queryWrapper = QueryWrapper.create()
|
||||
.select(ACTIVITY.ALL_COLUMNS)
|
||||
.where(ACTIVITY.ACTIVITY_ID.eq(activityId));
|
||||
ActivityInfo activityInfo = activityMapper.selectObjectByQueryAs(queryWrapper, ActivityInfo.class);
|
||||
ActivityInfo activityInfo = activityMapper.selectOneByQueryAs(queryWrapper, ActivityInfo.class);
|
||||
if (activityInfo == null) {
|
||||
throw new RuntimeException("该活动不存在");
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user