提交权限修改
This commit is contained in:
@@ -40,6 +40,7 @@ public class SysOperlogController extends BaseController
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysOperLog operLog)
|
||||
{
|
||||
operLog.setDeptId(getDeptId());
|
||||
startPage();
|
||||
List<SysOperLog> list = operLogService.selectOperLogList(operLog);
|
||||
return getDataTable(list);
|
||||
|
||||
@@ -89,6 +89,17 @@ public class SysDeptController extends BaseController
|
||||
return success(depts);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取机构列表
|
||||
*/
|
||||
@ApiOperation("获取机构列表")
|
||||
@GetMapping("/orgList")
|
||||
public AjaxResult orgList()
|
||||
{
|
||||
List<SysDept> depts = deptService.selectOrgList();
|
||||
return success(depts);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询机构列表(排除节点)
|
||||
*/
|
||||
|
||||
@@ -44,6 +44,7 @@ public class SysNoticeController extends BaseController
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SysNotice notice)
|
||||
{
|
||||
notice.setDeptId(getDeptId());
|
||||
startPage();
|
||||
List<SysNotice> list = noticeService.selectNoticeList(notice);
|
||||
return getDataTable(list);
|
||||
@@ -70,6 +71,7 @@ public class SysNoticeController extends BaseController
|
||||
public AjaxResult add(@Validated @RequestBody SysNotice notice)
|
||||
{
|
||||
notice.setCreateBy(getUsername());
|
||||
notice.setDeptId(getDeptId());
|
||||
return toAjax(noticeService.insertNotice(notice));
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.xinda.common.config.RuoYiConfig;
|
||||
import com.xinda.common.constant.UserConstants;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.core.domain.R;
|
||||
import com.xinda.common.core.domain.entity.SysUser;
|
||||
import com.xinda.common.core.domain.model.LoginUser;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
@@ -32,6 +33,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 个人信息 业务处理
|
||||
@@ -163,4 +165,7 @@ public class SysProfileController extends BaseController
|
||||
}
|
||||
return error(MessageUtils.message("user.upload.avatar.failed"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.xinda.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.system.domain.SysSms;
|
||||
import com.xinda.system.service.ISysSmsService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 系统消息Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-05-08
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/sms")
|
||||
@Api(tags = "系统消息")
|
||||
public class SysSmsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISysSmsService sysSmsService;
|
||||
|
||||
/**
|
||||
* 查询系统消息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sms:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询系统消息列表")
|
||||
public TableDataInfo list(SysSms sysSms)
|
||||
{
|
||||
startPage();
|
||||
List<SysSms> list = sysSmsService.selectSysSmsList(sysSms);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出系统消息列表
|
||||
*/
|
||||
@ApiOperation("导出系统消息列表")
|
||||
@PreAuthorize("@ss.hasPermi('system:sms:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysSms sysSms)
|
||||
{
|
||||
List<SysSms> list = sysSmsService.selectSysSmsList(sysSms);
|
||||
ExcelUtil<SysSms> util = new ExcelUtil<SysSms>(SysSms.class);
|
||||
util.exportExcel(response, list, "系统消息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取系统消息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sms:query')")
|
||||
@GetMapping(value = "/{smsId}")
|
||||
@ApiOperation("获取系统消息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("smsId") Long smsId)
|
||||
{
|
||||
return success(sysSmsService.selectSysSmsBySmsId(smsId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增系统消息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sms:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增系统消息")
|
||||
public AjaxResult add(@RequestBody SysSms sysSms)
|
||||
{
|
||||
return toAjax(sysSmsService.insertSysSms(sysSms));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改系统消息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sms:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改系统消息")
|
||||
public AjaxResult edit(@RequestBody SysSms sysSms)
|
||||
{
|
||||
return toAjax(sysSmsService.updateSysSms(sysSms));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除系统消息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('system:sms:remove')")
|
||||
@DeleteMapping("/{smsIds}")
|
||||
@ApiOperation("删除系统消息")
|
||||
public AjaxResult remove(@PathVariable Long[] smsIds)
|
||||
{
|
||||
return toAjax(sysSmsService.deleteSysSmsBySmsIds(smsIds));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user