WH01243 2 年 前
コミット
be3843f6b5
2 ファイル変更2 行追加2 行削除
  1. 1 1
      src/order/orderManageController.go
  2. 1 1
      src/order/orderManageService.go

+ 1 - 1
src/order/orderManageController.go

@@ -3713,7 +3713,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.ent_id=" + fmt.Sprint(qutil.Int64All(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=" + fmt.Sprint(entId) + " and a.ent_user_id=" + qutil.InterfaceToStr((*user)["id"]) + " and  a.`status`=1 and  b.product_type='" + productType + "'"
 					number := util.JysqlDB.CountBySql(sql)
 					if number == 0 {
 						util.JysqlDB.Insert("entniche_power", map[string]interface{}{"wait_empower_id": id,

+ 1 - 1
src/order/orderManageService.go

@@ -3930,7 +3930,7 @@ func NewBigOrder(subStatus, dateType int, startdate, enddate time.Time, userId,
 					}
 				} else {
 					insert := map[string]interface{}{
-						"s_userid":     fmt.Sprint(qutil.Int64All((paramOrder["user_id"]))),
+						"s_userid":     fmt.Sprint((paramOrder["user_id"])),
 						"s_smainid":    mainId,
 						"s_serviceid":  serverId,
 						"i_frequency":  frequency,