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