Эх сурвалжийг харах

Merge branch 'fix_2021_10_14_10_40' of hongze/hongze_task into master

hongze 3 жил өмнө
parent
commit
2eb3a9225f

+ 2 - 2
services/data_source_longzhong.go

@@ -1147,7 +1147,7 @@ func GetLzSurveyProductData(cont context.Context) (err error) {
 					//	msg = "获取隆众调研指标数据失败:err " + err.Error()
 					//	msg = "获取隆众调研指标数据失败:err " + err.Error()
 					//	return err
 					//	return err
 					//}
 					//}
-					if findItem, ok := existMap[shouldDateTimeStr]; !ok {
+					if findItem, ok := existMap[shouldDateTimeStr]; !ok && n.InputValue != "0" {
 						item := new(models.LongzhongSurveyData)
 						item := new(models.LongzhongSurveyData)
 						item.SurveyProductId = v.SurveyProductId
 						item.SurveyProductId = v.SurveyProductId
 						item.ProjectQuotaId = n.ProjectQuotaID
 						item.ProjectQuotaId = n.ProjectQuotaID
@@ -1185,7 +1185,7 @@ func GetLzSurveyProductData(cont context.Context) (err error) {
 							return err
 							return err
 						}
 						}
 					} else {
 					} else {
-						if findItem.InputValue != n.InputValue {
+						if findItem.InputValue != n.InputValue && n.InputValue != "0" {
 							models.ModifyLzSurveyData(n.InputValue,findItem.SurveyDataId)
 							models.ModifyLzSurveyData(n.InputValue,findItem.SurveyDataId)
 						}
 						}
 						fmt.Println("exist:", shouldDateTimeStr)
 						fmt.Println("exist:", shouldDateTimeStr)