|
@@ -29,7 +29,7 @@ type base_power struct {
|
|
|
//查找我的权益
|
|
|
func (b *base_power) FindMyPower(appid, function_code string, user_id, ent_id int64) *[]*base_power {
|
|
|
now := NowFormat(Date_Full_Layout)
|
|
|
- list := Mysql_BaseService.SelectBySql(`select * from base_power where appid=? and function_code=? and ((power_type=1 and power_ofid=?) or (power_type=2 and power_ofid=?)) and end_time<? and status=1 order by power_type`, appid, function_code, user_id, ent_id, now)
|
|
|
+ list := Mysql_BaseService.SelectBySql(`select * from base_power where appid=? and function_code=? and ((power_type=1 and power_ofid=?) or (power_type=2 and power_ofid=?)) and end_time>? and status=1 order by power_type`, appid, function_code, user_id, ent_id, now)
|
|
|
return JsonUnmarshal(list, &[]*base_power{}).(*[]*base_power)
|
|
|
}
|
|
|
|