WH01243 před 2 roky
rodič
revize
d948d5c762
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1 2
      src/order/orderManageController.go

+ 1 - 2
src/order/orderManageController.go

@@ -1,7 +1,6 @@
 package order
 
 import (
-	"app.yhyue.com/moapp/jybase/common"
 	"config"
 	"encoding/json"
 	"errors"
@@ -3703,7 +3702,7 @@ func EntLicense(entId, empowerCount, provinceCount, orderId, userCount int, prod
 			util.JysqlDB.Insert("entniche_order", inData)
 			if userCount > 0 {
 				if user != nil && len(*user) > 0 {
-					sql := "SELECT  COUNT(1)  FROM  entniche_power a  INNER JOIN entniche_wait_empower b ON a.wait_empower_id = b.id  where  a.entId=" + common.InterfaceToStr(entId) + " and a.ent_user_id=" + common.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.entId=" + qutil.InterfaceToStr(entId) + " and a.ent_user_id=" + qutil.InterfaceToStr((*user)["id"]) + " and  a.`status`=1 and  b.product_type='" + productType + "'"
 					if number := util.JysqlDB.CountBySql("entniche_power", sql); number == 0 {
 						util.JysqlDB.Insert("entniche_power", map[string]interface{}{"wait_empower_id": id,
 							"ent_id": entId, "ent_user_id": (*user)["id"], "status": 1, "update_time": time.Now(), "create_time": time.Now()})