Explorar o código

创建实体类

wanggangtao %!s(int64=5) %!d(string=hai) anos
pai
achega
371c983d27

+ 4 - 2
lib/table/table_index_csi300.class.php

@@ -11,8 +11,10 @@
 class Table_index_csi300 extends Table {
 
 	protected $table_name       = 'index_csi300';//表名,不带前缀,前缀在config中定义
-
-	//数据库结构
+    protected $table_id         = 'index_csi300_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+    //数据库结构
 	protected function struct(){
 		$attr = array();
 		

+ 3 - 1
lib/table/table_index_gem.class.php

@@ -11,7 +11,9 @@
 class Table_index_gem extends Table {
 
 	protected $table_name       = 'index_gem';//表名,不带前缀,前缀在config中定义
-
+    protected $table_id         = 'index_gem_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
 	//数据库结构
 	protected function struct(){
 		$attr = array();

+ 3 - 1
lib/table/table_index_kc50.class.php

@@ -11,7 +11,9 @@
 class Table_index_kc50 extends Table {
 
 	protected $table_name       = 'index_kc50';//表名,不带前缀,前缀在config中定义
-
+    protected $table_id         = 'index_kc50_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
 	//数据库结构
 	protected function struct(){
 		$attr = array();

+ 3 - 1
lib/table/table_index_scz.class.php

@@ -11,7 +11,9 @@
 class Table_index_scz extends Table {
 
 	protected $table_name       = 'index_scz';//表名,不带前缀,前缀在config中定义
-
+    protected $table_id         = 'index_scz_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
 	//数据库结构
 	protected function struct(){
 		$attr = array();

+ 3 - 1
lib/table/table_index_sh.class.php

@@ -11,7 +11,9 @@
 class Table_index_sh extends Table {
 
 	protected $table_name       = 'index_sh';//表名,不带前缀,前缀在config中定义
-
+    protected $table_id         = 'index_sh_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
 	//数据库结构
 	protected function struct(){
 		$attr = array();

+ 3 - 1
lib/table/table_index_sh50.class.php

@@ -11,7 +11,9 @@
 class Table_index_sh50 extends Table {
 
 	protected $table_name       = 'index_sh50';//表名,不带前缀,前缀在config中定义
-
+    protected $table_id         = 'index_sh50_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
 	//数据库结构
 	protected function struct(){
 		$attr = array();

+ 3 - 1
lib/table/table_st_log.class.php

@@ -11,7 +11,9 @@
 class Table_st_log extends Table {
 
 	protected $table_name       = 'st_log';//表名,不带前缀,前缀在config中定义
-
+    protected $table_id         = 'st_log_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
 	//数据库结构
 	protected function struct(){
 		$attr = array();

+ 3 - 1
lib/table/table_stock.class.php

@@ -11,7 +11,9 @@
 class Table_stock extends Table {
 
 	protected $table_name       = 'stock';//表名,不带前缀,前缀在config中定义
-
+    protected $table_id         = 'stock_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
 	//数据库结构
 	protected function struct(){
 		$attr = array();

+ 3 - 1
lib/table/table_xrxd_log.class.php

@@ -11,7 +11,9 @@
 class Table_xrxd_log extends Table {
 
 	protected $table_name       = 'xrxd_log';//表名,不带前缀,前缀在config中定义
-
+    protected $table_id         = 'xrxd_log_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
 	//数据库结构
 	protected function struct(){
 		$attr = array();