|
@@ -49,6 +49,7 @@ import cn.com.qmth.examcloud.common.uac.annotation.Uac;
|
|
|
import cn.com.qmth.examcloud.common.uac.entity.AccessUser;
|
|
|
import cn.com.qmth.examcloud.common.uac.enums.RoleMeta;
|
|
|
import cn.com.qmth.examcloud.common.uac.enums.UacPolicy;
|
|
|
+import cn.com.qmth.examcloud.common.util.ErrorMsg;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
/**
|
|
@@ -551,7 +552,7 @@ public class PaperController {
|
|
|
Paper oldpaper = paperRepo.findOne(paperIdArray[i]);
|
|
|
boolean result = paperService.checkPaperName(oldpaper.getName(), PaperType.GENERATE,user.getRootOrgId()+"");
|
|
|
if(!result){
|
|
|
- return new ResponseEntity("考试试卷:"+oldpaper.getName()+"已经存在",HttpStatus.OK);
|
|
|
+ return new ResponseEntity(new ErrorMsg("考试试卷:"+oldpaper.getName()+"已经存在"),HttpStatus.OK);
|
|
|
}
|
|
|
}
|
|
|
paperService.useBasePaper(paperIds, user.getName());
|