|
@@ -213,7 +213,8 @@ func makeSearchPid(position int, row int) (pid int) { |
|
|
func FindWaitForDealUsers(engine *xorm.Engine, page, pageSize int) (err error, resp []int) { |
|
|
func FindWaitForDealUsers(engine *xorm.Engine, page, pageSize int) (err error, resp []int) { |
|
|
now := time.Now().Format("2006-01-02") |
|
|
now := time.Now().Format("2006-01-02") |
|
|
lists, err := db.UserPublicPlatoonRelationFindByParamsByPage(engine, map[string]interface{}{ |
|
|
lists, err := db.UserPublicPlatoonRelationFindByParamsByPage(engine, map[string]interface{}{ |
|
|
"wait_for_settlement_date": now, |
|
|
|
|
|
|
|
|
"key": "wait_for_settlement_date", |
|
|
|
|
|
"value": now, |
|
|
}, page, pageSize) |
|
|
}, page, pageSize) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return |
|
|
return |
|
@@ -245,6 +246,7 @@ func DealCommonWealthReward(engine *xorm.Engine, uid int, isCompleteReward bool) |
|
|
_ = zhios_order_relate_logx.Error(err) |
|
|
_ = zhios_order_relate_logx.Error(err) |
|
|
} |
|
|
} |
|
|
}() |
|
|
}() |
|
|
|
|
|
session.Begin() |
|
|
|
|
|
|
|
|
//1、查询出 `user_public_platoon_amount` 中相关记录 |
|
|
//1、查询出 `user_public_platoon_amount` 中相关记录 |
|
|
params, err := db.UserPublicPlatoonAmountFindByParams(engine, map[string]interface{}{ |
|
|
params, err := db.UserPublicPlatoonAmountFindByParams(engine, map[string]interface{}{ |
|
@@ -340,6 +342,8 @@ func DealCommonWealthPunish(engine *xorm.Engine, uid int, reason string) (err er |
|
|
_ = zhios_order_relate_logx.Error(err) |
|
|
_ = zhios_order_relate_logx.Error(err) |
|
|
} |
|
|
} |
|
|
}() |
|
|
}() |
|
|
|
|
|
session.Begin() |
|
|
|
|
|
|
|
|
//1、查找 `user_public_platoon_setting` 基础设置 |
|
|
//1、查找 `user_public_platoon_setting` 基础设置 |
|
|
userPublicPlatoonSetting, err := db.UserPublicPlatoonSettingGetOneByParams(engine, map[string]interface{}{ |
|
|
userPublicPlatoonSetting, err := db.UserPublicPlatoonSettingGetOneByParams(engine, map[string]interface{}{ |
|
|
"key": "is_open", |
|
|
"key": "is_open", |
|
|