feat(p3.5): 审批代理增 Done/Cc 两端点(中心 done/cc 中转)
build / build-push (push) Failing after 10s

- SvcApprovalClient.doneTasks/ccMine:/oapi/flow/tasks/done、/oapi/flow/cc(中心按
  签名方应用过滤,出站不传 bizType——P2-02 接缝,双值双查不适用)
- SvcApprovalController GET Done/Cc:requireOperator+身份字段入参拒绝,信封透传
- 测试 +3(client 拼装 2+controller 透传与拒绝 1),全量 166/166 绿(Stage S5/P3.5)
This commit is contained in:
chenxing
2026-10-20 00:16:20 +08:00
parent 05d2143ce1
commit 6086c4374c
4 changed files with 103 additions and 0 deletions
@@ -195,6 +195,26 @@ class SvcApprovalControllerTest {
.andExpect(jsonPath("$.data.total").value(0));
}
@Test
@DisplayName("Done/Cc(P3.5):会话身份出站,信封透传,身份字段入参拒绝")
void doneAndCcEndpoints() throws Exception {
BoaUserContext.set(user(10006, 3));
Map<String, Object> data = new LinkedHashMap<>();
data.put("total", 0);
data.put("content", new java.util.ArrayList<>());
when(approvalClient.doneTasks(3, 10006, 1, 10)).thenReturn(data);
when(approvalClient.ccMine(3, 10006, 1, 10)).thenReturn(data);
mockMvc.perform(get("/api/apply/approval/Done"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.code").value(0));
mockMvc.perform(get("/api/apply/approval/Cc"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.code").value(0));
mockMvc.perform(get("/api/apply/approval/Done").param("assigneeId", "1"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.code").value(2));
}
@Test
@DisplayName("My:{total,list} → FlowPage{total,content,pageIndex,pageSize,totalPages,hasNext} 显式映射")
void myEnvelopeMapping() throws Exception {