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
-3
@@ -1,7 +1,5 @@
|
||||
package com.cf.imes.module.system.api.setting.dto;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
@@ -26,7 +24,7 @@ public class PackageConfigDTO {
|
||||
private Long userId;
|
||||
|
||||
|
||||
@Schema(description = "配置类型: 1 预打包,2 打包", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@Schema(description = "配置类型: 1 分堆,2 打包", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Integer type;
|
||||
|
||||
|
||||
|
||||
+2
-3
@@ -33,8 +33,7 @@ public class SettingController {
|
||||
|
||||
@PutMapping("/insert")
|
||||
@Operation(summary = "新增打包系统配置")
|
||||
@OperateLog(module="管理后台 - 系统打包配置",name = "新增打包/预打包系统配置",type = CREATE)
|
||||
//@PreAuthorize("@ss.hasPermission('system:data-source:query')")
|
||||
@OperateLog(module="管理后台 - 系统打包配置",name = "新增分堆/打包系统配置",type = CREATE)
|
||||
public CommonResult<Long> insertSetting( @RequestBody PackageConfigReqVO reqVO ) {
|
||||
|
||||
return success(settingService.insertSetting(reqVO));
|
||||
@@ -46,7 +45,7 @@ public class SettingController {
|
||||
|
||||
@PostMapping("/update")
|
||||
@Operation(summary = "更新打包系统配置")
|
||||
@OperateLog(module="管理后台 - 系统打包配置",name = "更新打包/预打包系统配置",type = UPDATE)
|
||||
@OperateLog(module="管理后台 - 系统打包配置",name = "更新分堆/打包系统配置",type = UPDATE)
|
||||
@PreAuthorize("@ss.hasAnyPermissions('manage:pack:pack-config','manage:pack:pre-pack-config')")
|
||||
public CommonResult<Long> updateSetting( @RequestBody PackageConfigReqVO reqVO ) {
|
||||
|
||||
|
||||
+1
-9
@@ -19,15 +19,7 @@ public class PackageConfigReqVO {
|
||||
private Long id;
|
||||
|
||||
|
||||
// @Schema(description = "组织ID")
|
||||
// private Long organId;
|
||||
//
|
||||
//
|
||||
// @Schema(description = "用户ID")
|
||||
// private Long userId;
|
||||
|
||||
|
||||
@Schema(description = "配置类型: 1 预打包,2 打包", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@Schema(description = "配置类型: 1 分堆,2 打包", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Integer type;
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ public class PackageConfigDO {
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 配置类型: 1 预打包,2 打包
|
||||
* 配置类型: 1 分堆,2 打包
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ public class SettingServiceImpl implements SettingService{
|
||||
// 更新
|
||||
PackageConfigDO packageConfigDO = packageConfigMapper.selectSetting(reqVO.getType(), loginUser.getId(), loginUser.getOrganId());
|
||||
if (packageConfigDO == null) {
|
||||
throw new ServiceException(CURRENTLY_NO_CONFIGURATION_AVAILABLE,reqVO.getType() == 1 ? UserSettingTypeEnum.PREPACKAGED.getName(): UserSettingTypeEnum.PACKAGED.getName());
|
||||
throw new ServiceException(CURRENTLY_NO_CONFIGURATION_AVAILABLE, reqVO.getType() == 1 ? UserSettingTypeEnum.HEAPSPLIT.getName() : UserSettingTypeEnum.PACKAGED.getName());
|
||||
}
|
||||
if(reqVO.getSetting() != null) {
|
||||
packageConfigDO.setSetting(JsonUtils.zipString(reqVO.getSetting().toJSONString()));
|
||||
|
||||
Reference in New Issue
Block a user