This commit is contained in:
2025-12-04 10:21:17 +08:00
18 changed files with 330 additions and 83 deletions

View File

@@ -71,6 +71,9 @@ public class KeyResultReq extends BaseReq {
@Schema(description = "文件")
private MultipartFile file;
@Schema(description = "是否仅曲线上传文件")
private boolean onlyFile;
/**
* -------------------------------------------------上传交付物使用参数------------------------------------------------
*/

View File

@@ -158,7 +158,7 @@ public class DemandServiceImpl extends BaseService implements IDemandService {
SdmResponse response = dataClientFeignClient.createDir(createDirReq);
log.info("创建需求时,调用创建文件夹的返回值为:{}", response);
return SdmResponse.success(demandId);
return SdmResponse.success(req.getUuid());
}
@Transactional

View File

@@ -746,7 +746,7 @@ public class SimulationRunServiceImpl extends ServiceImpl<SimulationRunMapper, S
@Override
@Transactional(rollbackFor = Exception.class)
public SdmResponse addSimulationKeyResult(KeyResultReq req) {
if (KeyResultTypeEnum.CURVE.getKeyResultType().equals(req.getKeyResultType())) {
if (KeyResultTypeEnum.CURVE.getKeyResultType().equals(req.getKeyResultType()) && req.isOnlyFile()) {
CurveParamDto curveParamDto = getCurveParamsFromUpload(req.getFile(), 2);
return SdmResponse.success(curveParamDto);
}

View File

@@ -53,7 +53,8 @@
#{it.tag3,typeHandler=com.sdm.project.handler.ListStringTypeHandler},#{it.tag4,typeHandler=com.sdm.project.handler.ListStringTypeHandler},
#{it.tag5,typeHandler=com.sdm.project.handler.ListStringTypeHandler},#{it.tag6,typeHandler=com.sdm.project.handler.ListStringTypeHandler},
#{it.tag7,typeHandler=com.sdm.project.handler.ListStringTypeHandler},#{it.tag8,typeHandler=com.sdm.project.handler.ListStringTypeHandler},
#{it.tag9,typeHandler=com.sdm.project.handler.ListStringTypeHandler},#{it.tag10,typeHandler=com.sdm.project.handler.ListStringTypeHandler}),#{it.imageFileId}
#{it.tag9,typeHandler=com.sdm.project.handler.ListStringTypeHandler},#{it.tag10,typeHandler=com.sdm.project.handler.ListStringTypeHandler},
#{it.imageFileId})
</foreach>
</insert>