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