forked from integrated_whb/integrated_whb
Compare commits
2 Commits
ad2a450c9b
...
a772967bc5
Author | SHA1 | Date |
---|---|---|
WL | a772967bc5 | |
WL | d4fe31cf10 |
|
@ -7,11 +7,13 @@
|
||||||
SELECT
|
SELECT
|
||||||
f.*,
|
f.*,
|
||||||
c.CORP_NAME,
|
c.CORP_NAME,
|
||||||
ifnull(pn.count,0) as POST_NUM
|
ifnull(pn.count,0) as POST_NUM,
|
||||||
|
tdic.NAME AS TRAININGTYPE_NAME
|
||||||
FROM
|
FROM
|
||||||
BUS_CLASS f
|
BUS_CLASS f
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
`qa-traffic-prevention`.`bus_corp_info` c ON c.CORPINFO_ID = f.CORPINFO_ID
|
`qa-traffic-prevention`.`bus_corp_info` c ON c.CORPINFO_ID = f.CORPINFO_ID
|
||||||
|
LEFT JOIN BUS_TRAINING_TYPE tdic ON f.TRAINTYPE = tdic.TRAININGTYPE_ID
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
(SELECT COUNT(1) count,p.CLASS_ID FROM bus_class_post p WHERE p.ISDELETE = 0 GROUP BY p.CLASS_ID) pn ON
|
(SELECT COUNT(1) count,p.CLASS_ID FROM bus_class_post p WHERE p.ISDELETE = 0 GROUP BY p.CLASS_ID) pn ON
|
||||||
pn.CLASS_ID=f.CLASS_ID
|
pn.CLASS_ID=f.CLASS_ID
|
||||||
|
|
Loading…
Reference in New Issue