Browse Source

feat:修改时间

wangchuanjin 3 năm trước cách đây
mục cha
commit
6b2c25dd55
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      public/entity/base_power.go

+ 1 - 1
public/entity/base_power.go

@@ -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)
 }