|
@@ -164,7 +164,8 @@ func GetLzProductList() (err error) {
|
|
fmt.Println("判断指标是否存在失败,Err:" + err.Error())
|
|
fmt.Println("判断指标是否存在失败,Err:" + err.Error())
|
|
return err
|
|
return err
|
|
}
|
|
}
|
|
- if count > 0 {
|
|
+ secNameCount, _ := models.GetLongzhonginfoBySecNameCount(v.ProUnitName)
|
|
|
|
+ if count > 0 || secNameCount > 0 {
|
|
lzProduct := new(models.Longzhonginfo)
|
|
lzProduct := new(models.Longzhonginfo)
|
|
lzProduct.SecName = v.ProUnitName
|
|
lzProduct.SecName = v.ProUnitName
|
|
lzProduct.Frequency = v.LzType
|
|
lzProduct.Frequency = v.LzType
|