mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
权限管理-标签新增,系统配置查询修改
This commit is contained in:
+1
@@ -38,6 +38,7 @@ public class PostRespVO {
|
|||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
@Schema(description = "备注", example = "快乐的备注")
|
@Schema(description = "备注", example = "快乐的备注")
|
||||||
|
@ExcelProperty("备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ public class LabelController {
|
|||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新标签")
|
@Operation(summary = "更新标签")
|
||||||
@PreAuthorize("@ss.hasAnyPermissions('sysTagDesignManager:update','sysTagDesignManager:save')")
|
@PreAuthorize("@ss.hasAnyPermissions('sysTagDesignManager:update','sysTagDesignManager:save','sysTagDesignManager:create')")
|
||||||
@OperateLog(enable = false)
|
@OperateLog(enable = false)
|
||||||
public CommonResult<Boolean> updateLabel(@Valid @RequestBody LabelSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateLabel(@Valid @RequestBody LabelSaveReqVO updateReqVO) {
|
||||||
labelService.updateLabel(updateReqVO);
|
labelService.updateLabel(updateReqVO);
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ public class LabelTemplateController {
|
|||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新标签模板")
|
@Operation(summary = "更新标签模板")
|
||||||
@PreAuthorize("@ss.hasAnyPermissions('system:label-template:update','system:label-template:save')")
|
@PreAuthorize("@ss.hasAnyPermissions('system:label-template:update','system:label-template:save','system:label-template:create')")
|
||||||
@OperateLog(enable = false)
|
@OperateLog(enable = false)
|
||||||
public CommonResult<Boolean> updateLabelTemplate(@Valid @RequestBody LabelTemplateSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateLabelTemplate(@Valid @RequestBody LabelTemplateSaveReqVO updateReqVO) {
|
||||||
labelTemplateService.updateLabelTemplate(updateReqVO);
|
labelTemplateService.updateLabelTemplate(updateReqVO);
|
||||||
|
|||||||
+2
-2
@@ -35,7 +35,7 @@ public class SystemConfigController {
|
|||||||
|
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
@Operation(summary = "获得系统配置的分页列表")
|
@Operation(summary = "获得系统配置的分页列表")
|
||||||
@PreAuthorize("@ss.hasAnyPermissions('system:base-setting:query','unplannedOrders:query','placeorder:query','manage:un-order-olan:create')")
|
// @PreAuthorize("@ss.hasAnyPermissions('system:base-setting:query','unplannedOrders:query','placeorder:query','manage:un-order-olan:create')")
|
||||||
public CommonResult<List<ConfigRespVO>> getSystemConfigPage(@Valid ConfigPageReqVO pageReqVO) {
|
public CommonResult<List<ConfigRespVO>> getSystemConfigPage(@Valid ConfigPageReqVO pageReqVO) {
|
||||||
List<SystemConfigDO> pageResult = systemConfigService.getSystemConfigList(pageReqVO);
|
List<SystemConfigDO> pageResult = systemConfigService.getSystemConfigList(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, ConfigRespVO.class));
|
return success(BeanUtils.toBean(pageResult, ConfigRespVO.class));
|
||||||
@@ -43,7 +43,7 @@ public class SystemConfigController {
|
|||||||
|
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
@Operation(summary = "根据id查询系统配置")
|
@Operation(summary = "根据id查询系统配置")
|
||||||
@PreAuthorize("@ss.hasAnyPermissions('system:base-setting:query','unplannedOrders:query','placeorder:query')")
|
// @PreAuthorize("@ss.hasAnyPermissions('system:base-setting:query','unplannedOrders:query','placeorder:query')")
|
||||||
public CommonResult<ConfigRespVO> getSystemConfig(@PathVariable("id") Long id,@RequestParam("type") Integer type) {
|
public CommonResult<ConfigRespVO> getSystemConfig(@PathVariable("id") Long id,@RequestParam("type") Integer type) {
|
||||||
SystemConfigDO systemConfigDO = systemConfigService.getSystemConfig(id,type);
|
SystemConfigDO systemConfigDO = systemConfigService.getSystemConfig(id,type);
|
||||||
return success(BeanUtils.toBean(systemConfigDO, ConfigRespVO.class));
|
return success(BeanUtils.toBean(systemConfigDO, ConfigRespVO.class));
|
||||||
|
|||||||
Reference in New Issue
Block a user