Kaynağa Gözat

通知列表

change 3 yıl önce
ebeveyn
işleme
cdc4155805

+ 1 - 23
zhongzheng-admin/src/main/java/com/zhongzheng/controller/inform/InformRemindController.java

@@ -54,18 +54,6 @@ public class InformRemindController extends BaseController {
         return getDataTable(list);
     }
 
-    /**
-     * 导出提醒设置列表
-     */
-    @ApiOperation("导出提醒设置列表")
-    @PreAuthorize("@ss.hasPermi('system:remind:export')")
-    @Log(title = "提醒设置", businessType = BusinessType.EXPORT)
-    @GetMapping("/export")
-    public AjaxResult<InformRemindVo> export(InformRemindQueryBo bo) {
-        List<InformRemindVo> list = iInformRemindService.queryList(bo);
-        ExcelUtil<InformRemindVo> util = new ExcelUtil<InformRemindVo>(InformRemindVo.class);
-        return util.exportExcel(list, "提醒设置");
-    }
 
     /**
      * 获取提醒设置详细信息
@@ -94,19 +82,9 @@ public class InformRemindController extends BaseController {
     @ApiOperation("修改提醒设置")
     @PreAuthorize("@ss.hasPermi('system:remind:edit')")
     @Log(title = "提醒设置", businessType = BusinessType.UPDATE)
-    @PutMapping()
+    @PostMapping("/edit")
     public AjaxResult<Void> edit(@RequestBody InformRemindEditBo bo) {
         return toAjax(iInformRemindService.updateByEditBo(bo) ? 1 : 0);
     }
 
-    /**
-     * 删除提醒设置
-     */
-    @ApiOperation("删除提醒设置")
-    @PreAuthorize("@ss.hasPermi('system:remind:remove')")
-    @Log(title = "提醒设置" , businessType = BusinessType.DELETE)
-    @DeleteMapping("/{ids}")
-    public AjaxResult<Void> remove(@PathVariable Long[] ids) {
-        return toAjax(iInformRemindService.deleteWithValidByIds(Arrays.asList(ids), true) ? 1 : 0);
-    }
 }

+ 3 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/inform/mapper/InformCourseMapper.java

@@ -4,6 +4,8 @@ import com.zhongzheng.modules.inform.domain.InformCourse;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.zhongzheng.modules.inform.vo.InformCourseVo;
 
+import java.util.List;
+
 /**
  * 【请填写功能名称】Mapper接口
  *
@@ -12,5 +14,5 @@ import com.zhongzheng.modules.inform.vo.InformCourseVo;
  */
 public interface InformCourseMapper extends BaseMapper<InformCourse> {
 
-    InformCourseVo queryCourse(Long informId);
+    List<InformCourseVo> queryCourse(Long informId);
 }

+ 3 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/inform/mapper/InformExamMapper.java

@@ -4,6 +4,8 @@ import com.zhongzheng.modules.inform.domain.InformExam;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.zhongzheng.modules.inform.vo.InformExamVo;
 
+import java.util.List;
+
 /**
  * 【请填写功能名称】Mapper接口
  *
@@ -12,5 +14,5 @@ import com.zhongzheng.modules.inform.vo.InformExamVo;
  */
 public interface InformExamMapper extends BaseMapper<InformExam> {
 
-    InformExamVo queryExam(Long informId);
+    List<InformExamVo> queryExam(Long informId);
 }

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/inform/service/IInformCourseService.java

@@ -50,5 +50,5 @@ public interface IInformCourseService extends IService<InformCourse> {
 	 */
 	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
 
-    InformCourseVo queryCourse(Long informId);
+    List<InformCourseVo> queryCourse(Long informId);
 }

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/inform/service/IInformExamService.java

@@ -50,5 +50,5 @@ public interface IInformExamService extends IService<InformExam> {
 	 */
 	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
 
-    InformExamVo queryExam(Long informId);
+	List<InformExamVo> queryExam(Long informId);
 }

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/inform/service/impl/InformCourseServiceImpl.java

@@ -102,7 +102,7 @@ public class InformCourseServiceImpl extends ServiceImpl<InformCourseMapper, Inf
     }
 
     @Override
-    public InformCourseVo queryCourse(Long informId) {
+    public List<InformCourseVo> queryCourse(Long informId) {
         return baseMapper.queryCourse(informId);
     }
 }

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/inform/service/impl/InformExamServiceImpl.java

@@ -103,8 +103,8 @@ public class InformExamServiceImpl extends ServiceImpl<InformExamMapper, InformE
     }
 
     @Override
-    public InformExamVo queryExam(Long informId) {
-        InformExamVo informExamVo = baseMapper.queryExam(informId);
+    public List<InformExamVo> queryExam(Long informId) {
+        List<InformExamVo> informExamVo = baseMapper.queryExam(informId);
         return informExamVo;
     }
 }

+ 3 - 3
zhongzheng-system/src/main/java/com/zhongzheng/modules/inform/vo/InformVo.java

@@ -8,7 +8,7 @@ import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 import java.util.Date;
-
+import java.util.List;
 
 
 /**
@@ -108,12 +108,12 @@ public class InformVo {
 	/** 绑定试卷*/
 	@Excel(name = "绑定试卷")
 	@ApiModelProperty("绑定试卷")
-	private InformExamVo informExamVo;
+	private List<InformExamVo> informExamVo;
 
 	/** 绑定课程*/
 	@Excel(name = "绑定课程")
 	@ApiModelProperty("绑定课程")
-	private InformCourseVo informCourseVo;
+	private List<InformCourseVo> informCourseVo;
 
 }