main
rong.liu 11 months ago
parent 06b46226b7
commit a454ec4f00
  1. 6
      competition/src/main/java/com/huoran/competition/service/impl/CompetitionRegistrationServiceImpl.java

@ -33,6 +33,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
@ -86,6 +87,11 @@ public class CompetitionRegistrationServiceImpl extends ServiceImpl<CompetitionR
Page<RegistrationVO> page = new Page<RegistrationVO>(req.getPageNum(), req.getPageSize()); Page<RegistrationVO> page = new Page<RegistrationVO>(req.getPageNum(), req.getPageSize());
IPage<RegistrationVO> pageList = baseMapper.selectRegistrationByCondition(page, req); IPage<RegistrationVO> pageList = baseMapper.selectRegistrationByCondition(page, req);
//默认设置后台
if (ObjectUtils.isEmpty(req.getQuerySource())){
req.setQuerySource(2);
}
if (req.getQuerySource() == 1) { if (req.getQuerySource() == 1) {
pageList pageList
.getRecords().forEach(registrationVO -> { .getRecords().forEach(registrationVO -> {

Loading…
Cancel
Save