|
@@ -1093,13 +1093,13 @@ func GetLzSurveyProductData(cont context.Context) (err error) {
|
|
|
endDate := time.Now().AddDate(utils.DATA_END_DATE_LIMIT, 0, 0).UnixNano() / 1e6
|
|
|
|
|
|
for k, v := range priceInfoList {
|
|
|
- existList, err := data_manage.GetLzSurveyDataExistByTradeCode(v.SurveyProductId)
|
|
|
- existMap := make(map[string]*data_manage.LongzhongSurveyData)
|
|
|
- for _, v := range existList {
|
|
|
- key := strconv.Itoa(int(v.QuotaSampleId)) + v.DataTime
|
|
|
- existMap[key] = v
|
|
|
- }
|
|
|
- fmt.Println(existMap)
|
|
|
+ //existList, err := data_manage.GetLzSurveyDataExistByTradeCode(v.SurveyProductId)
|
|
|
+ //existMap := make(map[string]*data_manage.LongzhongSurveyData)
|
|
|
+ //for _, v := range existList {
|
|
|
+ // key := strconv.Itoa(int(v.QuotaSampleId)) + v.DataTime
|
|
|
+ // existMap[key] = v
|
|
|
+ //}
|
|
|
+ //fmt.Println(existMap)
|
|
|
pageIndex := 1
|
|
|
//if v.EndDate != "" {
|
|
|
// endDateTime, _ := time.Parse(utils.FormatDate, v.EndDate)
|