暂降事件
This commit is contained in:
@@ -21,4 +21,6 @@ public interface CsEventUserPOService extends IService<CsEventUserPO>{
|
||||
Integer queryEventCount(CsEventUserQueryParam csEventUserQueryParam);
|
||||
|
||||
List<EventDetailVO> queryUserEventList(CsEventUserQueryParam csEventUserQueryParam);
|
||||
}
|
||||
|
||||
void updateStatus(CsEventUserQueryParam csEventUserQueryParam);
|
||||
}
|
||||
|
||||
@@ -49,4 +49,15 @@ public class CsEventUserPOServiceImpl extends ServiceImpl<CsEventUserPOMapper, C
|
||||
List<EventDetailVO> list = this.getBaseMapper().queryUserEventList(csEventUserQueryParam);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateStatus(CsEventUserQueryParam csEventUserQueryParam) {
|
||||
if(CollectionUtil.isEmpty(csEventUserQueryParam.getEventIds())){
|
||||
return;
|
||||
}
|
||||
csEventUserQueryParam.setUserId(RequestUtil.getUserIndex());
|
||||
this.lambdaUpdate().in(CsEventUserPO::getEventId,csEventUserQueryParam.getEventIds()).
|
||||
eq(CsEventUserPO::getUserId,csEventUserQueryParam.getUserId()).
|
||||
set(CsEventUserPO::getStatus,1).update();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user