소스 검색

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

duxin 7 달 전
부모
커밋
5ca22d015f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/jfw/modules/subscribepay/src/timetask/dataExportMail.go

+ 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, "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 {
 		log.Printf("SendDataExportMailForPayed not find Payed order")
 		return