huminmin
6 天以前 7a8827c634b53bb1cb861ebc1fd4ac6d1ae6cb5a
src/main/java/com/ruoyi/collaborativeApproval/controller/NoticeTypeController.java
@@ -5,6 +5,8 @@
import com.ruoyi.basic.pojo.SupplierManage;
import com.ruoyi.collaborativeApproval.pojo.NoticeType;
import com.ruoyi.collaborativeApproval.service.NoticeTypeService;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
@@ -33,6 +35,7 @@
     * @return
     */
    @PostMapping("/add")
    @Log(title = "新增通知公告的公告类型", businessType = BusinessType.INSERT)
    public AjaxResult add(@RequestBody NoticeType noticeType) {
        return AjaxResult.success(noticeTypeService.saveOrUpdate(noticeType));
    }
@@ -43,6 +46,7 @@
     * @return
     */
    @DeleteMapping("/del")
    @Log(title = "删除通知公告的公告类型", businessType = BusinessType.DELETE)
    public AjaxResult delNoticeType(@RequestBody List<Integer> ids) {
        if(CollectionUtils.isEmpty(ids)){
            return AjaxResult.error("请选择至少一条数据");
@@ -55,6 +59,7 @@
     * @return
     */
    @GetMapping("/list")
    @Log(title = "查询通知公告的公告类型", businessType = BusinessType.OTHER)
    public AjaxResult noticeTypeList() {
        return AjaxResult.success(noticeTypeService.list());
    }