* Fixed the error of companyModel::getByID.

This commit is contained in:
wangxuepeng
2023-10-25 14:03:54 +08:00
parent ea448d39a8
commit a7b331b19f
+3 -1
View File
@@ -4,6 +4,8 @@ include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/company.class.php';
su('admin');
zdTable('company')->gen(1);
/**
title=测试companyModel->getByIDTest();
@@ -19,4 +21,4 @@ $companyIDList = array('0', '1');
$company = new companyTest();
r($company->getByIDTest($companyIDList[1])) && p('name') && e('易软天创网络科技有限公司'); // 根据id查询公司
r($company->getByIDTest($companyIDList[0])) && p() && e('0'); // 错误id查询
r($company->getByIDTest($companyIDList[0])) && p() && e('0'); // 错误id查询