Files
brapi-java/docs/dev/04-germplasm/13-cross_pollination_event.md
2026-05-28 17:25:32 +08:00

42 lines
1.4 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 - cross_pollination_event 表录入说明
来源:`docs/architecture/04-germplasm-seed-data-flow.md`
## 录入目标
`cross_pollination_event` 记录实际杂交过程中的授粉事件,包括授粉编号、时间和是否成功。
## 上下游关系
| 类型 | 内容 |
| --- | --- |
| 表 | `cross_pollination_event` |
| Java 实体 | `CrossPollinationEventEntity` |
| 前置依赖 | `cross_entity` |
| 下游引用 | Cross 过程追踪 |
## 字段录入
| 字段 | 业务意义 | 录入方式 | 校验规则 |
| --- | --- | --- | --- |
| `id` | 授粉事件主键 | 系统生成 | 必填、唯一 |
| `cross_id` | 所属 cross | Cross 选择器/详情页带出 | 必选,必须存在 |
| `pollination_number` | 授粉编号 | 用户录入/自动生成 | 可选,建议同一 cross 下唯一 |
| `pollination_successful` | 是否授粉成功 | 开关 | 可选 |
| `pollination_time_stamp` | 授粉时间 | 日期时间选择器 | 可选 |
## 页面与交互
- 在 Cross 详情页 Pollination Events Tab 内维护。
- 可以按授粉时间排序展示。
## 关键校验
1. `cross_id` 必须存在。
2. 同一 cross 下 `pollination_number` 不建议重复。
3. 删除授粉事件不应删除 cross 主数据。
---
**状态:已完成**(页面:实际 Cross 详情 → Pollination Events TabBrAPI `PUT /crosses` pollinationEvents