@@ -34,45 +45,177 @@ func (a *ZyCronService) ZyDiscount(goodsId string) {
start=(i-1)*page_size
}
sql:="select goods_id from lie_goods where self_supplier_type = 1 and stock >0 limit "+common.MyIntToStr(page_size)+","+common.MyIntToStr(start);
ifgoodsId!=""{
sql="select goods_id from lie_goods where self_supplier_type = 1 and stock >0 limit "+goodsId;
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);
ifcheckGoodsId!=""{
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 "+checkGoodsId;