|
@@ -579,7 +579,7 @@ func (e *EquityCode) ExchangeRecords() (*ExchangeRecords, error) {
|
|
|
}
|
|
|
|
|
|
//
|
|
|
-func (e *EquityCode) Submit(codes []string, productName, industryCode string, buyNum, number, timeType int) int {
|
|
|
+func (e *EquityCode) Submit(codes []string, disChannel, productName, industryCode string, buyNum, number, timeType int) int {
|
|
|
_id, comAccountId, positionId, userId := e.CreateUser("权益码兑换创建用户", codes[0])
|
|
|
if _id == "" || comAccountId <= 0 || positionId <= 0 {
|
|
|
return 0
|
|
@@ -668,7 +668,7 @@ func (e *EquityCode) Submit(codes []string, productName, industryCode string, bu
|
|
|
}
|
|
|
filter := fmt.Sprintf(`{"xcx_account_id":%d,"baseUserId":%d,"area_count":%d,"buyItemCode":["%s"],"industryCode":"%s","fromMiniCode":"%s","cycleCount":%d,"cycleUnit":%d,"originalAmount":0}`, comAccountId, userId, buyNum, strings.Join(codes, `","`), industryCode, codes[0], number, cycleUnit)
|
|
|
util.ActivityMysql.InsertBatchByTx(tx, "jianyu.dataexport_order", []string{"order_code", "pay_money", "order_money", "pay_time", "order_status", "create_time", "filter", "original_price", "product_type", "user_phone", "user_id", "vip_starttime", "vip_endtime", "discount_price", "sale_time", "order_channel", "distribution_channel", "audit_status"}, []interface{}{
|
|
|
- orderCode, 0, 0, nowFormat, 1, nowFormat, filter, 0, productName, e.Phone, positionId, FormatDate(&orderStartTime, Date_Full_Layout), FormatDate(&orderEndTime, Date_Full_Layout), 0, nowFormat, "xdqd05", "x045", 3})
|
|
|
+ orderCode, 0, 0, nowFormat, 1, nowFormat, filter, 0, productName, e.Phone, positionId, FormatDate(&orderStartTime, Date_Full_Layout), FormatDate(&orderEndTime, Date_Full_Layout), 0, nowFormat, "xdqd05", disChannel, 3})
|
|
|
return true
|
|
|
}) {
|
|
|
return 1
|