zhangchuanxing hai 5 días
pai
achega
4efb700fcc
Modificáronse 1 ficheiros con 21 adicións e 0 borrados
  1. 21 0
      controllers/statistic_company_merge.go

+ 21 - 0
controllers/statistic_company_merge.go

@@ -2472,6 +2472,27 @@ func init16_1_04() {
 //	fmt.Println("end")
 //}
 
+func init16_1_06() {
+	var condition string
+	var pars []interface{}
+
+	condition = "  AND  product_id = 2    "
+
+	listProduct, e := company.GetCompanyProductList(condition, pars)
+	if e != nil {
+		fmt.Println(e)
+		return
+	}
+	for _, v := range listProduct {
+		e = company.UpdateCompanyProductSellerUnexpiredInitinit16_1_05(v.SellerId, v.SellerName, v.CompanyId)
+		if e != nil {
+			fmt.Println(e)
+			return
+		}
+	}
+	fmt.Println("end")
+}
+
 //更新权益销客户后一个正式的销售为当前销售
 //func init(){
 //	SELECT * FROM company_product  WHERE 1= 1  AND  product_id =2   AND  share_seller_id > 0 ;