feat:仿真策划审批

This commit is contained in:
2026-01-27 18:02:24 +08:00
parent e4c8a2c16b
commit 779c42bdac
14 changed files with 381 additions and 16 deletions

View File

@@ -7,7 +7,8 @@ public enum ApproveTypeEnum {
FLOW_TEMPLATE_APPROVE(3, "流程模板评审"),
DELIVERABLE_APPROVE(4, "交付物评审"),
PARAM_APPROVE(5, "仿真参数库评审"),
REPORT_TEMPLATE_APPROVE(6, "报告模板评审")
REPORT_TEMPLATE_APPROVE(6, "报告模板评审"),
DESIGN_APPROVE(7, "仿真策划评审")
;
private final int code;

View File

@@ -0,0 +1,31 @@
package com.sdm.common.feign.impl.project;
import com.sdm.common.common.SdmResponse;
import com.sdm.common.entity.req.system.LaunchApproveReq;
import com.sdm.common.feign.inter.project.ISimulationProjectFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class SimulationProjectFeignClientImpl implements ISimulationProjectFeignClient {
@Autowired
ISimulationProjectFeignClient simulationProjectFeignClient;
@Override
public SdmResponse receiveApproveNotice(LaunchApproveReq req) {
try {
SdmResponse response = simulationProjectFeignClient.receiveApproveNotice(req);
if (!response.isSuccess()){
return SdmResponse.failed("仿真策划评审回调失败");
}
return response;
} catch (Exception e) {
log.error("仿真策划评审回调失败", e);
return SdmResponse.failed("仿真策划评审回调失败");
}
}
}

View File

@@ -0,0 +1,16 @@
package com.sdm.common.feign.inter.project;
import com.sdm.common.common.SdmResponse;
import com.sdm.common.entity.req.system.LaunchApproveReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(name = "project",contextId = "projectFeignClient")
public interface ISimulationProjectFeignClient {
@PostMapping(value = "/project/approveHandleNotice")
SdmResponse receiveApproveNotice(@RequestBody LaunchApproveReq req);
}