集成CID仿真评审流

This commit is contained in:
daiqy88
2025-11-03 19:18:12 +08:00
parent eece39f06e
commit 18c12a3a22
3 changed files with 2 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
* @since 2025-09-22
*/
@RestController
@RequestMapping("/systemApprove")
@RequestMapping("/system/systemApprove")
@Tag(name = "系统评审")
public class SystemApproveController {

View File

@@ -22,22 +22,7 @@ public interface SimulationApproveMapper {
@Update("UPDATE simulation_approve_flow SET replyStatus=#{replyStatus} WHERE cidFlowid=#{cidFlowId}")
int updateSimulationApproveFlowReplyStatus(@Param("cidFlowId") String cidFlowId,@Param("replyStatus") int replyStatus);
@Select("SELECT * FROM simulation_approve_flow WHERE innerFlowId=#{flowId}")
ApproveFlowBean querySimulationApproveFlowByInnerFlowId(@Param("flowId") int flowId);
@Select("SELECT * FROM simulation_approve_flow WHERE cidFlowId=#{flowId} LIMIT 1")
ApproveFlowBean querySimulationApproveFlowByCidFlowId(@Param("flowId") String flowId);
@Insert("INSERT INTO simulation_approve_config(approveType,cidFlowTemplate,url,creator) VALUES (#{config.approveType},#{config.cidFlowTemplate},#{config.url},#{config.creator})")
int addSimulationApproveConfig(@Param("config")ApproveConfigBean config);
@Select("SELECT * FROM simulation_approve_config WHERE approveType=#{approveType} LIMIT 1")
ApproveConfigBean querySimulationApproveConfig(@Param("approveType") int approveType);
@Delete("DELETE FROM simulation_approve_config WHERE id=#{id}")
int deleteSimulationApproveConfig(@Param("id") int id);
@Update("UPDATE simulation_approve_config SET cidFlowTemplate=#{config.cidFlowTemplate},url=#{config.url}")
int updateSimulationApproveConfig(@Param("config")ApproveConfigBean config);
}

View File

@@ -160,7 +160,7 @@ public class SimulationApproveServiceImpl implements ISimulatinoApprovalService
else {
JSONObject paramJson = new JSONObject();
paramJson.put("processInstanceId", flowBean.cidFlowId);
paramJson.put("userId", flowBean.creator);
paramJson.put("userId", flowBean.userId);
try
{
String url = cidUrl+stopFlowPath;