Compare commits

..

No commits in common. "a772967bc5ce6b6d959563f683d0b9816cf05aff" and "ad2a450c9b5b24ee0de471f8ad7e245452641af6" have entirely different histories.

1 changed files with 1 additions and 3 deletions

View File

@ -7,13 +7,11 @@
SELECT
f.*,
c.CORP_NAME,
ifnull(pn.count,0) as POST_NUM,
tdic.NAME AS TRAININGTYPE_NAME
ifnull(pn.count,0) as POST_NUM
FROM
BUS_CLASS f
LEFT JOIN
`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
(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