|
@@ -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 ;
|