Files
brapi-java/docs/dev/04-germplasm/01-breeding_method.md
2026-05-28 11:56:17 +08:00

38 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 04 Germplasm / Seed - breeding_method 表录入说明
来源:`docs/architecture/04-germplasm-seed-data-flow.md`
## 录入目标
`breeding_method` 是育种方法字典,用来说明 germplasm 是通过什么方式形成的例如杂交选育、回交、自交系选育、诱变、DH、克隆选择等。
## 上下游关系
| 类型 | 内容 |
| --- | --- |
| 表 | `breeding_method` |
| Java 实体 | `BreedingMethodEntity` |
| 前置依赖 | 无 |
| 下游引用 | `germplasm.breeding_method_id` |
| API | `/brapi/v2/breedingmethods` |
## 字段录入
| 字段 | 业务意义 | 录入方式 | 校验规则 |
| --- | --- | --- | --- |
| `id` | 育种方法主键 | 系统生成;导入可指定 | 必填、唯一 |
| `auth_user_id` | 数据所属用户 | 登录上下文自动写入 | 不允许前端手填 |
| `name` | 方法名称 | 用户录入 | 必填,建议唯一 |
| `abbreviation` | 方法缩写 | 用户录入 | 可选,建议唯一 |
| `description` | 方法说明 | 多行文本 | 可选 |
## 页面与交互
- 列表页展示 name、abbreviation、description、引用 germplasm 数。
- 新增/编辑页为简单字典表单。
## 关键校验
1. `name` 必填。
2. 已被 `germplasm` 引用时不允许物理删除,只允许停用或提示引用关系。