zengh
2021-08-19 8b464ee379c5b35ac8b22b4e5dde25c4f6fb75cf
src/main/java/org/springblade/modules/desk/controller/NoticeController.java
@@ -21,6 +21,7 @@
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import io.swagger.annotations.*;
import lombok.AllArgsConstructor;
import org.springblade.common.utils.arg;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.launch.constant.AppConstant;
import org.springblade.core.mp.support.Condition;
@@ -94,7 +95,7 @@
   @ApiOperation(value = "分页", notes = "传入notice")
   public R<IPage<NoticeVO>> page(@ApiIgnore NoticeVO notice, Query query) {
      //通过deptId获取组织机构信息
      Dept dept = iDeptService.getById(notice.getDeptId());
//      Dept dept = iDeptService.getById(notice.getDeptId());
//      if (dept.getDeptCategory() == 1) {
//         notice.setCategory(1);
//      } else {
@@ -130,7 +131,7 @@
   @PostMapping("/submit")
   @ApiOperationSupport(order = 6)
   @ApiOperation(value = "新增或修改", notes = "传入notice")
   public R submit(@RequestBody Notice notice) {
   public R submit(@RequestBody Notice notice) throws Exception {
      return R.status(noticeService.saveOrUpdate(notice));
   }
@@ -140,7 +141,7 @@
   @PostMapping("/remove")
   @ApiOperationSupport(order = 7)
   @ApiOperation(value = "逻辑删除", notes = "传入notice")
   public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) {
   public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) throws Exception {
      boolean temp = noticeService.deleteLogic(Func.toLongList(ids));
      return R.status(temp);
   }