fix:优化扩容

This commit is contained in:
zhangzq
2025-02-22 01:08:35 +08:00
parent 9395e1745a
commit ec4fa32329

View File

@@ -13,6 +13,7 @@ import com.alibaba.fastjson.JSONObject;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.nl.b_lms.storage_manage.ios.enums.IOSEnum;
import org.nl.common.utils.SecurityUtils;
import org.nl.modules.common.exception.BadRequestException;
@@ -1868,7 +1869,10 @@ public class RawAssistIStorServiceImpl implements RawAssistIStorService {
if (ObjectUtil.isEmpty(struct_jo)) {
// 主存区类型更改成中转区类型:找一排主存区的更改中转区、把一排中转区的更改成主存区(只允许调用一次)
String result = HttpUtil.get("http://127.0.0.1:8013/api/in/rawAssist/updateStructSect?layer_num=" + col_num);
JSONObject toJSON = (JSONObject)JSONObject.toJSON(result);
if (StringUtils.isEmpty(result)){
throw new BadRequestException("扩容异常");
}
JSONObject toJSON = JSONObject.parseObject(result);
if (!toJSON.getString("status").equals("200")){
throw new BadRequestException(toJSON.getString("message"));
}