jiangshuai
2023-10-17 c1a8ce6295acdad1b7163059978b86697b5efdfb
初始化字段补充
2个文件已修改
10 ■■■■■ 已修改文件
model/index.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/quotationStatus.go 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/index.go
@@ -120,7 +120,7 @@
        NewFaultTypeSearch(),
        NewRepositorySearch(),
        NewSaleStageSearch(),
        //NewQuotationStatusSearch(),
        NewQuotationStatusSearch(),
    }
    for _, model := range models {
model/quotationStatus.go
@@ -105,9 +105,11 @@
        return
    }
    records := []*QuotationStatus{
        //{1, "顺丰"},
        //{2, "德邦"},
        //{3, "中远海运"},
        {1, "已创建"},
        {2, "已发送"},
        {3, "已审批"},
        {4, "已拒绝"},
        {5, "已接受"},
    }
    err := slf.CreateBatch(records)