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.
|
|
|
|
SELECT
|
|
|
|
|
t2.disciplines_id,
|
|
|
|
|
t2.disciplines_name,
|
|
|
|
|
t2.sub_discipline_id,
|
|
|
|
|
t2.sub_discipline_name,
|
|
|
|
|
t.id subject_id,
|
|
|
|
|
t.NAME subject_name,
|
|
|
|
|
t.visits,
|
|
|
|
|
t.status,
|
|
|
|
|
t.created_at,
|
|
|
|
|
t.updated_at,
|
|
|
|
|
t.stages_count,
|
|
|
|
|
t.stage_shixuns_count,
|
|
|
|
|
t.publish_time,
|
|
|
|
|
t.homepage_show,
|
|
|
|
|
t.repertoire_id,
|
|
|
|
|
t.score_count,
|
|
|
|
|
t.shixuns_count,
|
|
|
|
|
t1.study_count,
|
|
|
|
|
t1.course_study_count,
|
|
|
|
|
t1.initiative_study,
|
|
|
|
|
t1.passed_count,
|
|
|
|
|
t1.course_used_count,
|
|
|
|
|
t1.school_used_count,
|
|
|
|
|
t1.challenge_count,
|
|
|
|
|
t1.evaluate_count,
|
|
|
|
|
t1.initiative_school_used_count,
|
|
|
|
|
t1.initiative_passed_count,
|
|
|
|
|
t1.initiative_challenge_count,
|
|
|
|
|
t1.initiative_evaluate_count,
|
|
|
|
|
t1.video_study_time,
|
|
|
|
|
t1.initiative_video_study_time,
|
|
|
|
|
t1.study_pdf_attachment_count,
|
|
|
|
|
t1.initiative_study_pdf_attachment_count,
|
|
|
|
|
t2.tag_names,
|
|
|
|
|
ss2.averge_star
|
|
|
|
|
FROM
|
|
|
|
|
subjects t
|
|
|
|
|
LEFT JOIN subject_records t1 ON t.id = t1.subject_id
|
|
|
|
|
LEFT JOIN
|
|
|
|
|
(SELECT ssi.subject_id, ROUND(AVG(s.averge_star), 2) averge_star
|
|
|
|
|
FROM subject_shixun_infos ssi
|
|
|
|
|
LEFT JOIN shixuns s ON ssi.shixun_id = s.id
|
|
|
|
|
GROUP BY ssi.subject_id) ss2
|
|
|
|
|
ON ss2.subject_id = t.id
|
|
|
|
|
LEFT JOIN
|
|
|
|
|
(SELECT
|
|
|
|
|
tt.id,
|
|
|
|
|
tt.disciplines_id,
|
|
|
|
|
tt.disciplines_name,
|
|
|
|
|
tt.sub_discipline_id,
|
|
|
|
|
tt.sub_discipline_name,
|
|
|
|
|
GROUP_CONCAT(tt.tag_name SEPARATOR ' ') tag_names
|
|
|
|
|
FROM
|
|
|
|
|
(
|
|
|
|
|
SELECT
|
|
|
|
|
o.id,
|
|
|
|
|
o1.id sub_discipline_id,
|
|
|
|
|
o1.name sub_discipline_name,
|
|
|
|
|
o3.id disciplines_id,
|
|
|
|
|
o3.name disciplines_name,
|
|
|
|
|
o2.id tag_id,
|
|
|
|
|
o2.name tag_name
|
|
|
|
|
FROM subjects o
|
|
|
|
|
LEFT JOIN sub_disciplines o1 ON o.repertoire_id = o1.id
|
|
|
|
|
LEFT JOIN disciplines o3 ON o1.discipline_id = o3.id
|
|
|
|
|
LEFT JOIN tag_disciplines o2 ON o1.id = o2.sub_discipline_id
|
|
|
|
|
) tt
|
|
|
|
|
GROUP BY tt.id) t2
|
|
|
|
|
ON t.id = t2.id
|
|
|
|
|
WHERE t.hidden != 1
|
|
|
|
|
AND t.status = 2
|
|
|
|
|
AND t.name NOT IN (
|
|
|
|
|
'aa',
|
|
|
|
|
'lee',
|
|
|
|
|
'37Jg2',
|
|
|
|
|
'是的范德萨',
|
|
|
|
|
'java',
|
|
|
|
|
'python',
|
|
|
|
|
'认识',
|
|
|
|
|
'ccc+++',
|
|
|
|
|
'实训课程示例',
|
|
|
|
|
'Django',
|
|
|
|
|
'mysql',
|
|
|
|
|
'HTML',
|
|
|
|
|
'KP5LN',
|
|
|
|
|
'MBWV4',
|
|
|
|
|
'OFIFTH',
|
|
|
|
|
'1111',
|
|
|
|
|
'cur',
|
|
|
|
|
'te',
|
|
|
|
|
'新建课程',
|
|
|
|
|
'test',
|
|
|
|
|
'1',
|
|
|
|
|
'11',
|
|
|
|
|
'老龄化事实上',
|
|
|
|
|
'c++ ------python',
|
|
|
|
|
'软件测试',
|
|
|
|
|
'测试',
|
|
|
|
|
'ooo',
|
|
|
|
|
'居然可以新建实训吗',
|
|
|
|
|
'c',
|
|
|
|
|
'test-数据科学手册',
|
|
|
|
|
'python321',
|
|
|
|
|
'在大V从vdfvd',
|
|
|
|
|
'rh',
|
|
|
|
|
'实打实的擦',
|
|
|
|
|
'唐元皓',
|
|
|
|
|
'text',
|
|
|
|
|
'收费的',
|
|
|
|
|
'掉粉掉粉掉粉',
|
|
|
|
|
'123',
|
|
|
|
|
'1224',
|
|
|
|
|
'阿斯顿发送到发送',
|
|
|
|
|
'sf',
|
|
|
|
|
'测试实01',
|
|
|
|
|
'111',
|
|
|
|
|
'q',
|
|
|
|
|
'12313213213',
|
|
|
|
|
'名',
|
|
|
|
|
'weqrqwereewqrwqr',
|
|
|
|
|
'asd ',
|
|
|
|
|
'打发的撒发',
|
|
|
|
|
'不是白痴',
|
|
|
|
|
'创建课程',
|
|
|
|
|
'2607',
|
|
|
|
|
'rpa课程',
|
|
|
|
|
'pt、',
|
|
|
|
|
'jmeter',
|
|
|
|
|
'个人过',
|
|
|
|
|
'LEEJEJOON',
|
|
|
|
|
'TEST',
|
|
|
|
|
'1228-1',
|
|
|
|
|
'4',
|
|
|
|
|
'123213',
|
|
|
|
|
'冲',
|
|
|
|
|
'KAT9',
|
|
|
|
|
'"sadfasfsad"',
|
|
|
|
|
'C#课堂自学用',
|
|
|
|
|
'课程-001',
|
|
|
|
|
'C++',
|
|
|
|
|
'实践课程测试',
|
|
|
|
|
'实践课程--多类型实训',
|
|
|
|
|
'try',
|
|
|
|
|
'sadasda',
|
|
|
|
|
'python刷题',
|
|
|
|
|
'3333',
|
|
|
|
|
'没想到我还有个课堂',
|
|
|
|
|
'2',
|
|
|
|
|
'紫恩',
|
|
|
|
|
'的人都',
|
|
|
|
|
'6767',
|
|
|
|
|
'aaaa',
|
|
|
|
|
'12345',
|
|
|
|
|
'我自己的课程',
|
|
|
|
|
'这是一个课程',
|
|
|
|
|
'547657',
|
|
|
|
|
'哈哈哈哈',
|
|
|
|
|
'hua自学',
|
|
|
|
|
'wrwer',
|
|
|
|
|
'深V都是',
|
|
|
|
|
'分手分手费2',
|
|
|
|
|
'代码',
|
|
|
|
|
'大学计算机基础哈哈哈哈',
|
|
|
|
|
'我的课程',
|
|
|
|
|
'Ctest',
|
|
|
|
|
'wu',
|
|
|
|
|
'而威尔',
|
|
|
|
|
'仿真',
|
|
|
|
|
'是',
|
|
|
|
|
'树',
|
|
|
|
|
'1215',
|
|
|
|
|
'啦啦啦',
|
|
|
|
|
'dddd',
|
|
|
|
|
'hhhhhjhg',
|
|
|
|
|
'大数据1',
|
|
|
|
|
'asd',
|
|
|
|
|
'...',
|
|
|
|
|
'test授权',
|
|
|
|
|
'课程Test',
|
|
|
|
|
'Spring',
|
|
|
|
|
'test1',
|
|
|
|
|
'6月日',
|
|
|
|
|
'Verilog 入门',
|
|
|
|
|
'001',
|
|
|
|
|
'测试用实践',
|
|
|
|
|
'oracle dba',
|
|
|
|
|
'haha',
|
|
|
|
|
'asa',
|
|
|
|
|
'ccccc',
|
|
|
|
|
'自学',
|
|
|
|
|
'szw的test',
|
|
|
|
|
'离散数学,小号肝',
|
|
|
|
|
'1234',
|
|
|
|
|
'linux',
|
|
|
|
|
'Python',
|
|
|
|
|
'48967',
|
|
|
|
|
'ceshi',
|
|
|
|
|
'测试2',
|
|
|
|
|
'问问',
|
|
|
|
|
'py',
|
|
|
|
|
'test vis',
|
|
|
|
|
'固资申请',
|
|
|
|
|
'mmm',
|
|
|
|
|
'我的java',
|
|
|
|
|
'sss',
|
|
|
|
|
'基本',
|
|
|
|
|
'android-jzx',
|
|
|
|
|
'计组',
|
|
|
|
|
'Szsz',
|
|
|
|
|
'梅云',
|
|
|
|
|
'qq',
|
|
|
|
|
'计算机',
|
|
|
|
|
'OS',
|
|
|
|
|
'aazz',
|
|
|
|
|
'复杂网络',
|
|
|
|
|
'测试课程',
|
|
|
|
|
'测试代码',
|
|
|
|
|
'dd',
|
|
|
|
|
'daddada',
|
|
|
|
|
'x',
|
|
|
|
|
'但是过分过分的',
|
|
|
|
|
'509私人课堂',
|
|
|
|
|
'杂',
|
|
|
|
|
'c#实践',
|
|
|
|
|
'j',
|
|
|
|
|
'2111',
|
|
|
|
|
'自用',
|
|
|
|
|
'test 331',
|
|
|
|
|
'头',
|
|
|
|
|
'示例课程',
|
|
|
|
|
'我的实践课程',
|
|
|
|
|
'爱的方法',
|
|
|
|
|
'阿道夫大方',
|
|
|
|
|
'对方水电费',
|
|
|
|
|
'test_python',
|
|
|
|
|
'TanCeTiXi&ZhiHuiKongZhi',
|
|
|
|
|
'RE',
|
|
|
|
|
'HHC',
|
|
|
|
|
'ee',
|
|
|
|
|
'。',
|
|
|
|
|
'web-test',
|
|
|
|
|
'javaj',
|
|
|
|
|
'rruututu',
|
|
|
|
|
'test_matlab',
|
|
|
|
|
'My-Code',
|
|
|
|
|
'a',
|
|
|
|
|
'jjj',
|
|
|
|
|
'jjjjj',
|
|
|
|
|
'jaca',
|
|
|
|
|
'aaa',
|
|
|
|
|
'sv',
|
|
|
|
|
'pyton',
|
|
|
|
|
'fgfgfgf',
|
|
|
|
|
"te's't",
|
|
|
|
|
'sfsfsdfsd',
|
|
|
|
|
's',
|
|
|
|
|
'C-test',
|
|
|
|
|
'gsd',
|
|
|
|
|
'ww',
|
|
|
|
|
'C#',
|
|
|
|
|
',,,,,,,,,,,,,',
|
|
|
|
|
'web',
|
|
|
|
|
'abc',
|
|
|
|
|
'da',
|
|
|
|
|
'iuyo',
|
|
|
|
|
'LLLA',
|
|
|
|
|
'sdasd',
|
|
|
|
|
'as',
|
|
|
|
|
'keke',
|
|
|
|
|
'baigei',
|
|
|
|
|
'chengxu',
|
|
|
|
|
'test-one',
|
|
|
|
|
'SSM',
|
|
|
|
|
'dsafadsf',
|
|
|
|
|
'dasfdsaf',
|
|
|
|
|
'hgjghjg',
|
|
|
|
|
'testmooc',
|
|
|
|
|
'asdasdas',
|
|
|
|
|
'adsad',
|
|
|
|
|
'data',
|
|
|
|
|
'........',
|
|
|
|
|
'javatest',
|
|
|
|
|
'phython',
|
|
|
|
|
'idshdusabd',
|
|
|
|
|
'dsfdf',
|
|
|
|
|
'dfsdf',
|
|
|
|
|
'dsf',
|
|
|
|
|
"sa'd'fa's'f'sa'd",
|
|
|
|
|
'彭宇凡',
|
|
|
|
|
'测试学习统计',
|
|
|
|
|
'xjx test sj 1',
|
|
|
|
|
'test2新',
|
|
|
|
|
'1220',
|
|
|
|
|
'2021',
|
|
|
|
|
'1111111',
|
|
|
|
|
'20 金课',
|
|
|
|
|
'1222',
|
|
|
|
|
'2月24',
|
|
|
|
|
'测试1111',
|
|
|
|
|
'11学生',
|
|
|
|
|
'117-测试课程重复功能',
|
|
|
|
|
'12',
|
|
|
|
|
'12321312',
|
|
|
|
|
'6205',
|
|
|
|
|
'428',
|
|
|
|
|
'333',
|
|
|
|
|
'xjx test 9.4',
|
|
|
|
|
'xin',
|
|
|
|
|
'新建的一个实践课程',
|
|
|
|
|
'啊啊啊',
|
|
|
|
|
'20201215私有课程测试fdsa',
|
|
|
|
|
'测试3蔡蔡修改',
|
|
|
|
|
'精品课程测试精品课程测试精品课程测试精品课程测试精品课程测试精品课程测试精品课程测试精品课程测试精品课程测试---117'
|
|
|
|
|
)
|