sql="select goods_id from lie_goods where self_supplier_type = 1 and stock >0 limit "+goodsId;
page_size:=1000//查数据库每页大小
}
OuterLoop:
goodsInfos,err:=dbSpu.QueryString(sql)
fori=1;i<=1000;i++{
iferr!=nil||len(goodsInfos)==0{
start:=0;
fmt.Print("查询没有数据")
ifi==1{
break;
start=0;
}
}else{
for_,info:=rangegoodsInfos{
start=(i-1)*page_size
now_goods_id:=info["goods_id"]
}
/********开始计算系数******/
fmt.Println("开始计算系数"+goodsIdTemp)
sql:="select goods_id,class_id,brand_id,cost,ladder_price from lie_goods where self_supplier_type = 1 and stock >0 and status=1 limit "+common.MyIntToStr(page_size)+","+common.MyIntToStr(start);