You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							57 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							57 lines
						
					
					
						
							1.1 KiB
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								include_once SERVER_ROOT . '/data/dBase.php';
							 | 
						|
								
							 | 
						|
								/*
							 | 
						|
								 * 药方相关
							 | 
						|
								 * @package data
							 | 
						|
								 */
							 | 
						|
								
							 | 
						|
								class dFormula extends dBase {
							 | 
						|
								    protected $fieldlist = array(
							 | 
						|
								        'tcm_formula' => array(
							 | 
						|
								            'id',
							 | 
						|
								            'uid',
							 | 
						|
								            'name',
							 | 
						|
								            'source',
							 | 
						|
								            'original',
							 | 
						|
								            'method',
							 | 
						|
								            'sort',
							 | 
						|
								            'is_delete',
							 | 
						|
								            'create_time',
							 | 
						|
								        ),
							 | 
						|
								        'tcm_formula_herb' => array(
							 | 
						|
								            'id',
							 | 
						|
								            'formula_id',
							 | 
						|
								            'herb_id',
							 | 
						|
								            'num',
							 | 
						|
								            'sort',
							 | 
						|
								        ),
							 | 
						|
								        'tcm_herb' => array(
							 | 
						|
								            'id',
							 | 
						|
								            'uid',
							 | 
						|
								            'name',
							 | 
						|
								            'desc',
							 | 
						|
								        ),
							 | 
						|
								        'tcm_collect_log' => array(
							 | 
						|
								            'id',
							 | 
						|
								            'collect_msg',
							 | 
						|
								            'collect_time',
							 | 
						|
								        ),
							 | 
						|
								        'tcm_formula_use_log' => array(
							 | 
						|
								            'id',
							 | 
						|
								            'uid',
							 | 
						|
								            'formula_id',
							 | 
						|
								            'use_num',
							 | 
						|
								        ),
							 | 
						|
								    );
							 | 
						|
								
							 | 
						|
								    protected $primary_keys = array(
							 | 
						|
								        'tcm_formula' => 'id',
							 | 
						|
								        'tcm_formula_herb' => 'id',
							 | 
						|
								        'tcm_herb' => 'id',
							 | 
						|
								        'tcm_collect_log' => 'id',
							 | 
						|
								        'tcm_formula_use_log' => 'id',
							 | 
						|
								    );
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								
							 |