|
|
@ -113,7 +113,7 @@ class ExpressTemplateController extends Controller |
|
|
|
*/ |
|
|
|
public function actionDelete($id) |
|
|
|
{ |
|
|
|
if (Goods::find()->where(['express_template' => $id])->count() == 0) { |
|
|
|
if (Goods::find()->where(['express_template' => $id, 'is_delete' => Goods::IS_DELETE_NO])->count() == 0) { |
|
|
|
$expressTemplateModel = $this->findModel($id); |
|
|
|
ExpressArea::deleteAll(['express_template' => $expressTemplateModel->id]); |
|
|
|
$expressTemplateModel->delete(); |
|
|
|