...
|
...
|
@@ -165,6 +165,21 @@ func (p *OptionOpportunity) MergeObject(jsonString string) error { |
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
//-- 进行新旧数据兼容处理 ---
|
|
|
if obj.Check == OpportunityCheckLv3 {
|
|
|
for i := range obj.CheckOption.Departments {
|
|
|
obj.CheckOption.Departments[i].OpenAll = 1
|
|
|
obj.CheckOption.Departments[i].OpenDepart = 1
|
|
|
obj.CheckOption.Departments[i].Wait = 1
|
|
|
}
|
|
|
}
|
|
|
if obj.Check == OpportunityCheckLv5 {
|
|
|
for i := range obj.CheckOption.Departments {
|
|
|
obj.CheckOption.Departments[i].NotPass = 1
|
|
|
}
|
|
|
}
|
|
|
//--- 进行新旧数据兼容处理 结束--
|
|
|
|
|
|
if p.CheckMap == nil {
|
|
|
p.CheckMap = make(map[int]int)
|
|
|
}
|
...
|
...
|
|