原预打包配置部分描述修改为分堆

This commit is contained in:
gaoqr
2026-03-20 15:18:03 +08:00
parent b600e18132
commit afe7ba3e4e
6 changed files with 7 additions and 18 deletions
@@ -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;
@@ -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 ) {
@@ -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;
@@ -29,7 +29,7 @@ public class PackageConfigDO {
private Long userId;
/**
* 配置类型: 1 预打包2 打包
* 配置类型: 1 分堆2 打包
*/
private Integer type;
@@ -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()));