shish 2 лет назад
Родитель
Сommit
ac6cececd8
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      biz-ghs/custom/classes/CustomClass.php

+ 3 - 0
biz-ghs/custom/classes/CustomClass.php

@@ -4,6 +4,7 @@ namespace bizGhs\custom\classes;
 
 use biz\ghs\classes\GhsClass;
 use biz\sj\classes\MerchantClass;
+use bizGhs\custom\models\Custom;
 use bizGhs\shop\classes\MainClass;
 use bizGhs\shop\classes\TotalDebtChangeClass;
 use common\components\business;
@@ -59,6 +60,8 @@ class CustomClass extends BaseClass
 
     public static function createSeatSn($mainId)
     {
+        $max = Custom::find(['mainId' => $mainId])->max('seatSn');
+        echo $max;die;
         $info = self::getByCondition(['mainId' => $mainId], true, 'seatSn DESC');
         $new = 1;
         if (!empty($info)) {