|
@@ -10,6 +10,7 @@ import com.ym.mec.common.exception.BizException;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -53,6 +54,10 @@ public class SysExamSongController extends BaseController {
|
|
@ApiOperation(value = "分页查询")
|
|
@ApiOperation(value = "分页查询")
|
|
@GetMapping("/queryPage")
|
|
@GetMapping("/queryPage")
|
|
public Object queryPage(SysExamSongQueryInfo queryInfo) {
|
|
public Object queryPage(SysExamSongQueryInfo queryInfo) {
|
|
|
|
+ String type = queryInfo.getType();
|
|
|
|
+ if(StringUtils.isEmpty(type)){
|
|
|
|
+ queryInfo.setType("ALL");
|
|
|
|
+ }
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
if(sysUser == null){
|
|
if(sysUser == null){
|
|
throw new BizException("请登录");
|
|
throw new BizException("请登录");
|