Browse Source

打印机数量

shish 3 years ago
parent
commit
1836a7a473
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app-ghs/controllers/ShopExtController.php

+ 2 - 0
app-ghs/controllers/ShopExtController.php

@@ -95,9 +95,11 @@ class ShopExtController extends BaseController
         }
         if (isset($ext->wcPrintSn2) && !empty($ext->wcPrintSn2)) {
             PurchaseOrderClass::updateByCondition(['mainId' => $this->mainId], ['wcPrintNum' => 2]);
+            ShopExtClass::updateByCondition(['shopId' => $this->shopId], ['wcPrintNum' => 2]);
         }
         if (isset($ext->wcPrintSn3) && !empty($ext->wcPrintSn3)) {
             PurchaseOrderClass::updateByCondition(['mainId' => $this->mainId], ['wcPrintNum' => 3]);
+            ShopExtClass::updateByCondition(['shopId' => $this->shopId], ['wcPrintNum' => 3]);
         }
         if ($hasFail == 1) {
             util::success(['hasFail' => 1], '出现添加失败的情况');