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

fix:定时任务退款查询修改

duxin 7 сар өмнө
parent
commit
5ca22d015f

+ 2 - 1
src/jfw/modules/subscribepay/src/timetask/dataExportMail.go

@@ -24,7 +24,8 @@ func SendDataExportMailForPayed() {
 	}()
 	}()
 
 
 	//unServiceList := util.Mysql.Find("dataexport_order", map[string]interface{}{"product_type": "历史数据", "order_status": 1, "service_status": 0}, "download_url,user_mail,data_count,pay_time,order_code", "", -1, -1)
 	//unServiceList := util.Mysql.Find("dataexport_order", map[string]interface{}{"product_type": "历史数据", "order_status": 1, "service_status": 0}, "download_url,user_mail,data_count,pay_time,order_code", "", -1, -1)
-	unServiceList := util.Mysql.Find("dataexport_order", map[string]interface{}{"product_type": "历史数据", "order_status": 1, "service_status": 0, "refund_status": 0}, "download_url,user_mail,data_count,pay_time,order_code", "", -1, -1)
+	unServiceList := util.Mysql.SelectBySql(`SELECT download_url,user_mail,data_count,pay_time,order_code,refund_status FROM dataexport_order WHERE product_type = '历史数据' and  order_status = 1 and service_status = 0 and (refund_status = 0 or refund_status is null) `)
+	//unServiceList := util.Mysql.Find("dataexport_order", map[string]interface{}{"product_type": "历史数据", "order_status": 1, "service_status": 0, "refund_status": 0}, "download_url,user_mail,data_count,pay_time,order_code", "", -1, -1)
 	if unServiceList == nil || len(*unServiceList) == 0 {
 	if unServiceList == nil || len(*unServiceList) == 0 {
 		log.Printf("SendDataExportMailForPayed not find Payed order")
 		log.Printf("SendDataExportMailForPayed not find Payed order")
 		return
 		return