This commit is contained in:
邓皓元 2019-06-06 14:08:13 +08:00
parent 163e3d2130
commit 46e410defa

View File

@ -80,7 +80,7 @@ class CompanyService extends Service
$maxSn = Company::withTrashed()->max('sn');
$maxSn = intval(str_replace('No', '', $maxSn));
$attributes['sn'] = CommonService::stringifyCompanyId($maxSn);
$attributes['sn'] = CommonService::stringifyCompanyId($maxSn + 1);
$node = $this->companyRepository->create($attributes);
}