field($fields) ->where("a.acode='" . get_lg() . "'") ->where('a.status=1') ->join($join) ->order('a.pcode,a.sorting,a.id') ->select(); return $result; } // 指定列表内容 public function getList($scode) { $fields = array( 'a.id', 'a.filename', 'a.date', 'c.type' ); $join = array( array( 'ay_content_sort b', 'a.scode=b.scode', 'LEFT' ), array( 'ay_model c', 'b.mcode=c.mcode', 'LEFT' ) ); $where = array( "a.acode='" . get_lg() . "'", 'a.status=1', 'c.type=2' ); return parent::table('ay_content a')->field($fields) ->where("a.scode='$scode'") ->where($where) ->join($join) ->select(); } }