|
@@ -89,44 +89,44 @@ func (dao *PersonnelDao) BatchExecInsert(ctx context.Context, in []*model.Person
|
|
|
payTime, _ = time.Parse(date.Date_Full_Layout, i.PayTime)
|
|
|
}
|
|
|
insertData = append(insertData, g.Map{
|
|
|
- "jy_trusted_id": i.JYTrustedId,
|
|
|
- "user_id": i.UserId,
|
|
|
- "position_id": i.PositionId,
|
|
|
- "phone": i.Phone,
|
|
|
- "ip": i.Ip,
|
|
|
- "platform": i.Platform,
|
|
|
- "os": i.Os,
|
|
|
- "os_version": i.OsVersion,
|
|
|
- "browser": i.Browser,
|
|
|
- "browser_version": i.BrowserVersion,
|
|
|
- "date": timeNow,
|
|
|
- "action_id": i.ActionId,
|
|
|
- "action_type": i.ActionType,
|
|
|
- "breaker_id": i.BreakerId,
|
|
|
- "breaker_name": i.BreakerName,
|
|
|
- "click_time": clickTime,
|
|
|
- "order_id": i.OrderId,
|
|
|
- "order_time": orderTIme,
|
|
|
- "pay_time": payTime,
|
|
|
- "pay_way": i.PayWay,
|
|
|
- "price": int32(i.Price),
|
|
|
- "product": i.Product,
|
|
|
- "product_name": i.ProductName,
|
|
|
- "page_id": i.PageId,
|
|
|
- "page_name": i.PageName,
|
|
|
- "bidding_id": i.BiddingId,
|
|
|
- "desc": i.Desc,
|
|
|
- "url": i.Url,
|
|
|
- "source": i.Source,
|
|
|
- "user_agent": i.UserAgent,
|
|
|
- "port": i.Port,
|
|
|
- "refer": i.Refer,
|
|
|
- "search_word": i.SearchWord,
|
|
|
- "filter": i.Filter,
|
|
|
- "appId": i.AppId,
|
|
|
- "breakData": i.BreakData,
|
|
|
- "appVersion": i.AppVersion,
|
|
|
- "miniProgramCode": i.MiniProgramCode,
|
|
|
+ "jy_trusted_id": i.JYTrustedId,
|
|
|
+ "user_id": i.UserId,
|
|
|
+ "position_id": i.PositionId,
|
|
|
+ "phone": i.Phone,
|
|
|
+ "ip": i.Ip,
|
|
|
+ "platform": i.Platform,
|
|
|
+ "os": i.Os,
|
|
|
+ "os_version": i.OsVersion,
|
|
|
+ "browser": i.Browser,
|
|
|
+ "browser_version": i.BrowserVersion,
|
|
|
+ "date": timeNow,
|
|
|
+ "action_id": i.ActionId,
|
|
|
+ "action_type": i.ActionType,
|
|
|
+ "breaker_id": i.BreakerId,
|
|
|
+ "breaker_name": i.BreakerName,
|
|
|
+ "click_time": clickTime,
|
|
|
+ "order_id": i.OrderId,
|
|
|
+ "order_time": orderTIme,
|
|
|
+ "pay_time": payTime,
|
|
|
+ "pay_way": i.PayWay,
|
|
|
+ "price": int32(i.Price),
|
|
|
+ "product": i.Product,
|
|
|
+ "product_name": i.ProductName,
|
|
|
+ "page_id": i.PageId,
|
|
|
+ "page_name": i.PageName,
|
|
|
+ "bidding_id": i.BiddingId,
|
|
|
+ "desc": i.Desc,
|
|
|
+ "url": i.Url,
|
|
|
+ "source": i.Source,
|
|
|
+ "user_agent": i.UserAgent,
|
|
|
+ "port": i.Port,
|
|
|
+ "refer": i.Refer,
|
|
|
+ "search_word": i.SearchWord,
|
|
|
+ "filter": i.Filter,
|
|
|
+ "app_id": i.AppId,
|
|
|
+ "break_data": i.BreakData,
|
|
|
+ "app_version": i.AppVersion,
|
|
|
+ "mini_program_code": i.MiniProgramCode,
|
|
|
})
|
|
|
}
|
|
|
_, err = g.DB().Model(dao.Model()).Data(insertData).Insert()
|
|
@@ -148,7 +148,7 @@ func (dao *PersonnelDao) ExecInsert(ctx context.Context, in model.PersonnelInser
|
|
|
dimSqlDML.WriteString(" (jy_trusted_id,user_id,position_id,phone,ip,platform,os,os_version,browser," +
|
|
|
"browser_version,date,action_id,action_type,breaker_id,breaker_name,click_time,order_id," +
|
|
|
"order_time,pay_time,pay_way,price,product,product_name,page_id,page_name,bidding_id,desc," +
|
|
|
- "url,source,user_agent,port,refer,search_word,filter,appId,breakData,appVersion,miniProgramCode) values ( ")
|
|
|
+ "url,source,user_agent,port,refer,search_word,filter,appId,break_data,app_version,mini_program_code) values ( ")
|
|
|
dimSqlDML.WriteString("'" + in.JYTrustedId + "'")
|
|
|
dimSqlDML.WriteString(",")
|
|
|
dimSqlDML.WriteString("'" + in.UserId + "'")
|