Merge branch 'main' of http://192.168.65.198:3000/toolchaintechnologycenter/spdm-backend
This commit is contained in:
@@ -71,6 +71,9 @@ public class KeyResultReq extends BaseReq {
|
||||
@Schema(description = "文件")
|
||||
private MultipartFile file;
|
||||
|
||||
@Schema(description = "是否仅曲线上传文件")
|
||||
private boolean onlyFile;
|
||||
|
||||
/**
|
||||
* -------------------------------------------------上传交付物使用参数------------------------------------------------
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user