导入修复测试

This commit is contained in:
2024-12-04 13:08:26 +08:00
parent 27943f41a1
commit 3e5e83194e

View File

@@ -40,6 +40,8 @@ class ImportForm extends BaseModel
//西药导入
public function WestImport($data)
{
$success = [];
$errors = [];
if (empty($data)) {
throw new Exception('导入数据为空');
} else {
@@ -99,6 +101,8 @@ class ImportForm extends BaseModel
//导入中药
public function ChineseImport($data)
{
$success = [];
$errors = [];
if (empty($data)) {
throw new Exception('导入数据为空');
} else {
@@ -144,6 +148,8 @@ class ImportForm extends BaseModel
//颗粒配方
public function GranularImport($data)
{
$success = [];
$errors = [];
if (empty($data)) {
throw new Exception('导入数据为空');
} else {
@@ -191,6 +197,8 @@ class ImportForm extends BaseModel
//中成药导入
public function ImportZhongcheng($data)
{
$success = [];
$errors = [];
if (empty($data)) {
throw new Exception('导入数据为空');
} else {
@@ -247,6 +255,8 @@ class ImportForm extends BaseModel
public function DivisionImport($data)
{
$success = [];
$errors = [];
$user = \Yii::$app->user->identity;
$Platform_id = Platform::find()->select('id')->where([
'drugstore_id' => $user->drugstore,
@@ -314,6 +324,8 @@ class ImportForm extends BaseModel
public function ExportRealDrug($data)
{
$success = [];
$errors = [];
if (empty($data)) {
throw new Exception('导入数据为空');
} else {
@@ -351,6 +363,8 @@ class ImportForm extends BaseModel
public function ExportUpdateDrugPrice($data)
{
$success = [];
$errors = [];
if (empty($data)) {
throw new Exception('导入数据为空');
} else {