浏览代码

使用数量不在加1

xuzhiheng 2 年之前
父节点
当前提交
e558fd19e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/order/orderManageService.go

+ 1 - 1
src/order/orderManageService.go

@@ -4088,7 +4088,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 and  b.product_type='" + productType + "'"
+	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"
 	number := util.JysqlDB.CountBySql(sql)
 	if number == 0 {
 		return true, 1