feat: 支持采购任务追溯并安全重新创建 (#186)
This commit is contained in:
@@ -1197,6 +1197,17 @@ func sybOrderViewFor(context repository.SybOrderContext) SybOrderView {
|
||||
return v
|
||||
}
|
||||
|
||||
// GetSybOrderView 按稳定明细 ID 读取一行完整视图,供任务来源深链接在分页之外
|
||||
// 准备采购确认数据。查不到返回 (nil, nil)。
|
||||
func GetSybOrderView(db *sql.DB, sybID string) (*SybOrderView, error) {
|
||||
context, err := repository.GetSybOrderContext(db, strings.TrimSpace(sybID))
|
||||
if err != nil || context == nil {
|
||||
return nil, err
|
||||
}
|
||||
view := sybOrderViewFor(*context)
|
||||
return &view, nil
|
||||
}
|
||||
|
||||
// SybProcessingDetail 是顺运宝“下一步”弹窗第一阶段需要的上下文。
|
||||
type SybProcessingDetail struct {
|
||||
SybID string
|
||||
|
||||
Reference in New Issue
Block a user