|
|
@@ -30,25 +30,24 @@ func GetLvUser(engine *xorm.Engine, CommissionParam md2.CommissionFirstParam, oi |
|
|
|
} |
|
|
|
|
|
|
|
CommOrderRelateInsert(engine, oid, CommissionParam.Provider, int(time.Now().Unix()), lvUser, mapData) |
|
|
|
sql := `SELECT id from user_virtual_coin_flow where ord_id='%d'` |
|
|
|
sql = fmt.Sprintf(sql, oid) |
|
|
|
nativeString, _ := db2.QueryNativeString(engine, sql) |
|
|
|
has := false |
|
|
|
if len(nativeString) > 0 && utils.StrToInt(nativeString[0]["id"]) > 0 { |
|
|
|
has = true |
|
|
|
} |
|
|
|
sql1 := `SELECT id from fin_user_flow where ord_id='%d'` |
|
|
|
sql1 = fmt.Sprintf(sql1, oid) |
|
|
|
nativeString1, _ := db2.QueryNativeString(engine, sql1) |
|
|
|
has1 := false |
|
|
|
if len(nativeString1) > 0 && utils.StrToInt(nativeString1[0]["id"]) > 0 { |
|
|
|
has1 = true |
|
|
|
} |
|
|
|
fmt.Println("===========任务4=============", masterId, CommissionParam.Uid, oid, has, has1) |
|
|
|
if has == false && has1 == false { |
|
|
|
fmt.Println("===========任务5=============", masterId, CommissionParam.Uid, oid, has, has1) |
|
|
|
SettleDone(engine, CommissionParam.Provider, oid, masterId, mapData) |
|
|
|
} |
|
|
|
//sql := `SELECT id from user_virtual_coin_flow where ord_id='%d'` |
|
|
|
//sql = fmt.Sprintf(sql, oid) |
|
|
|
//nativeString, _ := db2.QueryNativeString(engine, sql) |
|
|
|
//has := false |
|
|
|
//if len(nativeString) > 0 && utils.StrToInt(nativeString[0]["id"]) > 0 { |
|
|
|
// has = true |
|
|
|
//} |
|
|
|
//sql1 := `SELECT id from fin_user_flow where ord_id='%d'` |
|
|
|
//sql1 = fmt.Sprintf(sql1, oid) |
|
|
|
//nativeString1, _ := db2.QueryNativeString(engine, sql1) |
|
|
|
//has1 := false |
|
|
|
//if len(nativeString1) > 0 && utils.StrToInt(nativeString1[0]["id"]) > 0 { |
|
|
|
// has1 = true |
|
|
|
//} |
|
|
|
//fmt.Println("===========任务4=============", masterId, CommissionParam.Uid, oid, has, has1) |
|
|
|
//if has == false && has1 == false { |
|
|
|
SettleDone(engine, CommissionParam.Provider, oid, masterId, mapData) |
|
|
|
//} |
|
|
|
} |
|
|
|
|
|
|
|
// 分佣表插入获取到的数据 |
|
|
|