瀏覽代碼

feat:修改时间

wangchuanjin 3 年之前
父節點
當前提交
6b2c25dd55
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 }