Explorar o código

权益查询修改

WH01243 hai 1 ano
pai
achega
81337c8de9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/order/orderManageService.go

+ 1 - 1
src/order/orderManageService.go

@@ -4173,7 +4173,7 @@ func EntServiceOpen(entId int, phone, productType string, st int64) (bool, int)
 	if user == nil {
 		return false, 0
 	}
-	sql := "SELECT  COUNT(1)  FROM  entniche_power a  INNER JOIN entniche_wait_empower b ON a.wait_empower_id = b.id  where  a.ent_id=" + qutil.InterfaceToStr(entId) + " and a.ent_user_id=" + qutil.InterfaceToStr((*user)["id"]) + " and  a.`status`=1"
+	sql := "SELECT  COUNT(1)  FROM  entniche_power a  INNER JOIN entniche_wait_empower b ON a.wait_empower_id = b.id  and   where  a.ent_id=" + qutil.InterfaceToStr(entId) + " and  b.end_time > now() and  a.ent_user_id=" + qutil.InterfaceToStr((*user)["id"]) + " and  a.`status`=1"
 	number := util.JysqlDB.CountBySql(sql)
 	if number == 0 {
 		return true, 1