优化笔记删除
This commit is contained in:
parent
2e49061caa
commit
cdd5cbcfd9
@ -17,6 +17,7 @@ import com.dd.admin.business.upNotes.domain.UpNotesVo;
|
|||||||
import com.dd.admin.business.upNotes.service.UpNotesService;
|
import com.dd.admin.business.upNotes.service.UpNotesService;
|
||||||
import com.dd.admin.common.aop.operationLog.aop.OperLog;
|
import com.dd.admin.common.aop.operationLog.aop.OperLog;
|
||||||
import com.dd.admin.common.aop.operationLog.aop.OperType;
|
import com.dd.admin.common.aop.operationLog.aop.OperType;
|
||||||
|
import com.dd.admin.common.exception.ApiException;
|
||||||
import com.dd.admin.common.model.result.ResultBean;
|
import com.dd.admin.common.model.result.ResultBean;
|
||||||
import com.dd.admin.common.security.SecurityUtil;
|
import com.dd.admin.common.security.SecurityUtil;
|
||||||
import com.dd.admin.common.security.jwt.JwtTokenUtil;
|
import com.dd.admin.common.security.jwt.JwtTokenUtil;
|
||||||
@ -103,7 +104,9 @@ public class ApiController {
|
|||||||
noteDto.setFollowId(followId);
|
noteDto.setFollowId(followId);
|
||||||
}
|
}
|
||||||
NoteVo noteVo = noteService.selectNoteDetail(noteDto);
|
NoteVo noteVo = noteService.selectNoteDetail(noteDto);
|
||||||
|
if(noteVo==null){
|
||||||
|
throw new ApiException("笔记不存在");
|
||||||
|
}
|
||||||
NoteImgDto noteImgDto = new NoteImgDto();
|
NoteImgDto noteImgDto = new NoteImgDto();
|
||||||
noteImgDto.setNoteId(noteVo.getNoteId());
|
noteImgDto.setNoteId(noteVo.getNoteId());
|
||||||
List<NoteImgVo> noteImgVos = noteImgService.selectNoteImgList(noteImgDto);
|
List<NoteImgVo> noteImgVos = noteImgService.selectNoteImgList(noteImgDto);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user