# 流程列表执行利率展示后端实施计划

> **For agentic workers:** REQUIRED: Use superpowers:executing-plans to implement this plan in this repository. Do not use subagents. Steps use checkbox (`- [ ]`) syntax for tracking.

**Goal:** 确认流程列表执行利率展示需求无需后端代码改动，并完成后端链路验证与留档。

**Architecture:** 当前后端列表接口直接返回 `LoanPricingWorkflow` 实体，而实体已包含 `executeRate` 字段。本次后端计划不引入接口变更，只做链路确认、边界验证和实施记录，确保执行阶段不会误改接口或字段语义。

**Tech Stack:** Spring Boot、MyBatis Plus、Maven、RuoYi 后端工程

---

### Task 1: 确认后端列表链路已具备执行利率返回能力

**Files:**
- Modify: `doc/implementation-report-2026-03-28-workflow-execute-rate-display-backend.md`
- Reference: `ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/domain/entity/LoanPricingWorkflow.java`
- Reference: `ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/controller/LoanPricingWorkflowController.java`
- Reference: `ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/service/impl/LoanPricingWorkflowServiceImpl.java`

- [ ] **Step 1: 确认实体包含 `executeRate` 字段**

Run: `rg -n 'private String executeRate' ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/domain/entity/LoanPricingWorkflow.java`
Expected: 能定位到 `executeRate` 字段定义。

- [ ] **Step 2: 确认列表接口直接返回 `LoanPricingWorkflow`**

Run: `sed -n '60,90p' ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/controller/LoanPricingWorkflowController.java`
Expected: 能看到 `/loanPricing/workflow/list` 直接返回 `LoanPricingWorkflow` 分页结果。

- [ ] **Step 3: 确认分页查询未对 `executeRate` 做截断或替换**

Run: `sed -n '100,150p' ruoyi-loan-pricing/src/main/java/com/ruoyi/loanpricing/service/impl/LoanPricingWorkflowServiceImpl.java`
Expected: 能看到分页查询直接返回实体分页记录，无额外字段转换逻辑。

- [ ] **Step 4: 形成后端结论并写入实施记录**

将以下内容写入实施记录：

```markdown
- 后端实体已包含 `executeRate`
- 列表接口已直接返回 `LoanPricingWorkflow`
- 本次需求无需后端代码改动
```

建议记录文件：`doc/implementation-report-2026-03-28-workflow-execute-rate-display-backend.md`

### Task 2: 完成后端验证边界说明

**Files:**
- Modify: `doc/implementation-report-2026-03-28-workflow-execute-rate-display-backend.md`

- [ ] **Step 1: 说明本次明确不改后端接口和数据库结构**

将以下说明加入实施记录：

```markdown
- 不修改 `/loanPricing/workflow/list` 接口结构
- 不修改 `loanRate` 字段业务含义
- 不修改数据库表结构和 SQL
```

- [ ] **Step 2: 如执行了后端本地验证，结束相关进程**

Run: `ps -ef | rg 'RuoYiApplication|java'`
Expected: 若本次任务为验证启动了后端进程，验证完成后主动停止本次启动的进程。

- [ ] **Step 3: 提交后端留档改动**

Run: `git add doc/implementation-report-2026-03-28-workflow-execute-rate-display-backend.md && git commit -m "补充执行利率展示后端实施记录"`
Expected: 生成仅包含后端留档内容的中文提交。
