wangpengfei
2023-08-17 f5e2c16e70ef2fa62ba2daa1addefe7720dadf13
Merge remote-tracking branch 'origin/master'
8个文件已修改
52 ■■■■ 已修改文件
model/courierCompany.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/index.go 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/invoiceStatus.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/invoiceType.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/priorityLevel.go 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/serviceType.go 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/severity.go 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/timeSpent.go 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/courierCompany.go
@@ -135,6 +135,10 @@
    if total != 0 {
        return nil
    }
    records := []*CourierCompany{}
    records := []*CourierCompany{
        {1, "顺丰"},
        {2, "德邦"},
        {3, "中远海运"},
    }
    return slf.CreateBatch(records)
}
model/index.go
@@ -103,6 +103,9 @@
        NewPriorityLevelSearch(),
        NewSeveritySearch(),
        NewTimeSpentSearch(),
        NewInvoiceTypeSearch(),
        NewInvoiceStatusSearch(),
        NewCourierCompanySearch(),
    }
    for _, model := range models {
        if id, ok := model.(InitDefaultData); ok {
model/invoiceStatus.go
@@ -135,6 +135,10 @@
    if total != 0 {
        return nil
    }
    records := []*InvoiceStatus{}
    records := []*InvoiceStatus{
        {1, "已创建"},
        {2, "已寄送"},
        {3, "自动创建"},
    }
    return slf.CreateBatch(records)
}
model/invoiceType.go
@@ -135,6 +135,10 @@
    if total != 0 {
        return nil
    }
    records := []*InvoiceType{}
    records := []*InvoiceType{
        {1, "增票6%"},
        {2, "增票16%"},
        {3, "增票17%"},
    }
    return slf.CreateBatch(records)
}
model/priorityLevel.go
@@ -130,6 +130,11 @@
    if total != 0 {
        return nil
    }
    records := []*PriorityLevel{}
    records := []*PriorityLevel{
        {1, "低"},
        {2, "一般"},
        {3, "高"},
        {4, "紧急"},
    }
    return slf.CreateBatch(records)
}
model/serviceType.go
@@ -130,6 +130,12 @@
    if total != 0 {
        return nil
    }
    records := []*ServiceType{}
    records := []*ServiceType{
        {1, "电话"},
        {2, "远程"},
        {3, "送修"},
        {4, "上门"},
        {5, "其他"},
    }
    return slf.CreateBatch(records)
}
model/severity.go
@@ -130,6 +130,11 @@
    if total != 0 {
        return nil
    }
    records := []*Severity{}
    records := []*Severity{
        {1, "轻"},
        {2, "严重"},
        {3, "较严重"},
        {4, "特严重"},
    }
    return slf.CreateBatch(records)
}
model/timeSpent.go
@@ -130,6 +130,13 @@
    if total != 0 {
        return nil
    }
    records := []*TimeSpent{}
    records := []*TimeSpent{
        {1, "1小时"},
        {2, "2小时"},
        {3, "0.5个工作日"},
        {4, "1个工作日"},
        {5, "2个工作日"},
        {6, "2个工作日以上"},
    }
    return slf.CreateBatch(records)
}