|
@@ -31,9 +31,14 @@ class SitemapModel extends Model
|
31
|
31
|
'a.mcode=b.mcode',
|
32
|
32
|
'LEFT'
|
33
|
33
|
);
|
|
34
|
+ $where = [
|
|
35
|
+ 'a.scode NOT IN(13,19,26)',
|
|
36
|
+ 'a.pcode NOT IN(13,19,26)',
|
|
37
|
+ ];
|
34
|
38
|
$result = parent::table('ay_content_sort a')->field($fields)
|
35
|
39
|
->where('a.status=1')
|
36
|
40
|
->where("a.acode='" . get_lg() . "'")
|
|
41
|
+ ->where($where)
|
37
|
42
|
->join($join)
|
38
|
43
|
->order('a.pcode,a.sorting,a.id')
|
39
|
44
|
->select();
|
|
@@ -50,6 +55,8 @@ class SitemapModel extends Model
|
50
|
55
|
'c.type',
|
51
|
56
|
'c.urlname',
|
52
|
57
|
'b.scode',
|
|
58
|
+ 'b.scode as bscode',
|
|
59
|
+ 'b.pcode as bpcode',
|
53
|
60
|
'b.filename as sortfilename'
|
54
|
61
|
);
|
55
|
62
|
$join = array(
|
|
@@ -64,13 +71,14 @@ class SitemapModel extends Model
|
64
|
71
|
'LEFT'
|
65
|
72
|
)
|
66
|
73
|
);
|
67
|
|
-
|
|
74
|
+
|
68
|
75
|
$where = array(
|
|
76
|
+ 'b.scode NOT IN(13,19,26)',
|
|
77
|
+ 'b.pcode NOT IN(13,19,26)',
|
69
|
78
|
'a.status=1',
|
70
|
79
|
'c.type=2',
|
71
|
80
|
"a.date<'" . date('Y-m-d H:i:s') . "'"
|
72
|
81
|
);
|
73
|
|
-
|
74
|
82
|
return parent::table('ay_content a')->field($fields)
|
75
|
83
|
->where("a.scode='$scode'")
|
76
|
84
|
->where($where)
|