Commit 598722cf authored by wxl's avatar wxl

no message

parent 2f6a03bd
...@@ -601,6 +601,10 @@ class GoodsController extends AbstractActionController ...@@ -601,6 +601,10 @@ class GoodsController extends AbstractActionController
if($goodsInfo) { if($goodsInfo) {
$array['state'] = 'ok'; $array['state'] = 'ok';
$array['goods_number'] = $goodsInfo->getgoodsNumber() +1; $array['goods_number'] = $goodsInfo->getgoodsNumber() +1;
}else{
$goodsCategory = $this->entityManager->getRepository(GoodsCategory::class)->findOneBy(['goodsCategoryId' => $goodsCategoryId]);
$array['state'] = 'ok';
$array['goods_number'] = $goodsCategory->getgoodsCategoryCode() ."01";
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment