bug fix in commodity insert
This commit is contained in:
parent
902d3f4829
commit
6ad49b2d12
|
@ -283,7 +283,8 @@ class CommodityController extends AbstractController
|
||||||
return $this->json(['result' => 3]);
|
return $this->json(['result' => 3]);
|
||||||
if ($code == 0) {
|
if ($code == 0) {
|
||||||
$data = $entityManager->getRepository(Commodity::class)->findOneBy([
|
$data = $entityManager->getRepository(Commodity::class)->findOneBy([
|
||||||
'name' => $params['name']
|
'name' => $params['name'],
|
||||||
|
'bid'=> $acc['bid']
|
||||||
]);
|
]);
|
||||||
//check exist before
|
//check exist before
|
||||||
if ($data)
|
if ($data)
|
||||||
|
|
Loading…
Reference in a new issue