| | |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZSelfNote; |
| | | import com.ruoyi.service.ZSelfNoteDownloadService; |
| | | import com.ruoyi.service.ZSelfNoteService; |
| | | import com.ruoyi.service.ZSelfNoteShareService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.websocket.server.PathParam; |
| | | import java.util.Arrays; |
| | |
| | | public class ZSelfNoteController extends BaseController { |
| | | @Autowired |
| | | private ZSelfNoteService zSelfNoteService; |
| | | |
| | | @Autowired |
| | | private ZSelfNoteShareService zSelfNoteShareService; |
| | | |
| | | @Autowired |
| | | private ZSelfNoteDownloadService zSelfNoteDownloadService; |
| | | |
| | | |
| | | /** |
| | | * 查询所有记录 |
| | |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | if (! (zSelfNoteDownloadService.deleteData(ids) && zSelfNoteShareService.deleteByContentId(ids) ) ){ |
| | | return AjaxResult.error(); |
| | | } |
| | | return toAjax(zSelfNoteService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |