|
@@ -31,10 +31,10 @@ import (
|
|
|
//}
|
|
|
|
|
|
//func init() {
|
|
|
-// //UpdateRaiServeCompany() //1
|
|
|
-// //UpdateCygxRaiServeBillByCompanyIds() //2
|
|
|
-// //UpdateCygxRaiServeBillWeekTask() // 3
|
|
|
-// //UpdateWeekAvg() // 4
|
|
|
+// UpdateRaiServeCompany() //1
|
|
|
+// UpdateCygxRaiServeBillByCompanyIds() //2
|
|
|
+// UpdateCygxRaiServeBillWeekTask() // 3
|
|
|
+// UpdateWeekAvg() // 4
|
|
|
//}
|
|
|
|
|
|
// 定时任务处理权益服务公司
|
|
@@ -462,13 +462,13 @@ func UpdateCygxRaiServeBillByCompanyIds() (err error) {
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
|
|
|
- condition = " AND company_id IN (" + utils.GetOrmInReplace(lencompanyId) + ") AND create_time > ? "
|
|
|
+ condition = " AND art.company_id IN (" + utils.GetOrmInReplace(lencompanyId) + ") AND art.create_time > ? "
|
|
|
pars = append(pars, companyIds, startWeekDate)
|
|
|
|
|
|
fmt.Println("startWeekDate", startWeekDate)
|
|
|
//研选专栏阅读记录内容
|
|
|
{
|
|
|
- listYanxuanSpecialRecord, e := models.GetCygxYanxuanSpecialRecordRespListAll(condition+" GROUP BY user_id, yanxuan_special_id ORDER BY create_time ASC ", pars)
|
|
|
+ listYanxuanSpecialRecord, e := models.GetCygxYanxuanSpecialRecordRespListAll(condition+" GROUP BY art.user_id, art.yanxuan_special_id ORDER BY art.create_time ASC ", pars)
|
|
|
if e != nil {
|
|
|
err = errors.New("GetCygxYanxuanSpecialRecordRespListAll, Err: " + e.Error())
|
|
|
return
|