fix:优化扩容

This commit is contained in:
zhangzq
2025-02-22 00:55:47 +08:00
parent c806ccf6d1
commit 4d845d4189

View File

@@ -1868,14 +1868,14 @@ 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);
if (StringUtils.isEmpty(result)){
throw new BadRequestException("一期扩容失败");
}
JSONObject toJSON = JSONObject.parseObject(result);
if (!toJSON.getString("status").equals("200")){
throw new BadRequestException(toJSON.getString("message"));
}
// String result = HttpUtil.get("http://127.0.0.1:8011/api/in/rawAssist/updateStructSect?layer_num=" + col_num);
// if (StringUtils.isEmpty(result)){
// throw new BadRequestException("一期扩容失败");
// }
// JSONObject toJSON = JSONObject.parseObject(result);
// if (!toJSON.getString("status").equals("200")){
// throw new BadRequestException(toJSON.getString("message"));
// }
SpringContextHolder.getBean(RawAssistIStorServiceImpl.class).updateStructSect(col_num);
struct_jo = autoDisMove2(whereJson);
}