13 lines
3.4 KiB
Java
13 lines
3.4 KiB
Java
CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `course_information_center_jeecg_db`.`kc_jieci_view` AS select `kc_jieci`.`id` AS `id`,concat('第',`kc_jieci`.`jieci`,'节') AS `jieciname`,`kc_jieci`.`jieci` AS `jieci`,`kc_jieci`.`hhks` AS `hhks`,`kc_jieci`.`hhjs` AS `hhjs` from `kc_jieci` where (length(`kc_jieci`.`jieci`) > 2) ;
|
|
|
|
CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `course_information_center_jeecg_db`.`kc_kkdw_view` AS select `kc_kkdw`.`id` AS `id`,`kc_kkdw`.`kkdw` AS `kkdw`,`kc_kkdw`.`dwjc` AS `dwjc`,`kc_kkdw`.`dwbh` AS `dwbh`,`kc_kkdw`.`xsid` AS `xsid`,`kc_kkdw`.`xsmc` AS `xsmc` from `kc_kkdw` order by `kc_kkdw`.`id` ;
|
|
|
|
CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `skip-grants user`@`skip-grants host` SQL SECURITY DEFINER VIEW `course_information_center_jeecg_db`.`testevaluation` AS select `evaluations`.`up_date` AS `评价日期`,`evaluations`.`up_time` AS `评价时间`,`evaluations`.`upuser` AS `评价人`,`ketangbiao`.`kcmc` AS `课程名称`,`ketangbiao`.`skjs` AS `授课教师`,`ketangbiao`.`kkdw` AS `开课单位`,`ketangbiao`.`skrq` AS `上课日期`,`evaluationque`.`content` AS `问题`,concat(ifnull(`evaluationans`.`content`,''),`evaluations`.`textanscontent`) AS `答案`,`evaluationans`.`score` AS `分数`,`evaluations`.`evaluationid` AS `evaluationid`,`evaluationque`.`id` AS `id` from (((`evaluations` join `ketangbiao` on((`evaluations`.`ketangbiaoid` = `ketangbiao`.`id`))) join `evaluationque` on((`evaluations`.`queid` = `evaluationque`.`id`))) left join `evaluationans` on((`evaluations`.`ansid` = `evaluationans`.`id`))) where (`evaluationque`.`evaluationver` = 2) order by `evaluations`.`id` desc ;
|
|
|
|
CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `course_information_center_jeecg_db`.`tkrszdw_view` AS select distinct `kc_casusers`.`college` AS `college` from `kc_casusers` order by `kc_casusers`.`college` ;
|
|
|
|
CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `skip-grants user`@`skip-grants host` SQL SECURITY DEFINER VIEW `course_information_center_jeecg_db`.`xsxkb` AS select group_concat(distinct `kt`.`id` separator ',') AS `ids`,`kt`.`kcmc` AS `kcmc`,`kt`.`skjs` AS `skjs`,`kt`.`zc` AS `zc`,`kt`.`rwbh` AS `rwbh`,`kt`.`kkdw` AS `kkdw`,group_concat(distinct `kt`.`hh` separator ',') AS `hh`,concat(`kt`.`skrq`,' ',min(`kt`.`hhks`)) AS `kssj`,concat(`kt`.`skrq`,' ',max(`kt`.`hhjs`)) AS `jssj`,`kt`.`week` AS `week`,`kt`.`jgh` AS `jgh`,group_concat(concat('"',`xk`.`XH`,'"') separator ',') AS `xh`,`kt`.`skrq` AS `skrq` from (`ketangbiao` `kt` join `xxhbxsxkb` `xk`) where (`kt`.`rwbh` = `xk`.`KCAPZBBH`) group by `kt`.`kcmc`,`kt`.`skjs`,`kt`.`zc`,`kt`.`rwbh`,`kt`.`kkdw`,`kt`.`week`,`kt`.`jgh`,`kt`.`skrq` ;
|
|
|
|
CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `skip-grants user`@`skip-grants host` SQL SECURITY DEFINER VIEW `course_information_center_jeecg_db`.`zongtipingjiapingjunfen` AS select `kt`.`kechengbiaoid` AS `kechengbiaoid`,cast(avg(if((`ev`.`evaluationver` = '1'),floor((`ea`.`score` / 2)),`ea`.`score`)) as decimal(10,2)) AS `avgscore` from ((((`evaluation` `ev` join `evaluations` `evs`) join `evaluationque` `eq`) join `evaluationans` `ea`) join `ketangbiao` `kt`) where ((`kt`.`id` = `evs`.`ketangbiaoid`) and (`ev`.`id` = `evs`.`evaluationid`) and (`ev`.`evaluationver` = `eq`.`evaluationver`) and (`ea`.`id` = `evs`.`ansid`) and (`evs`.`queid` = `eq`.`id`) and (`ea`.`queid` = `eq`.`id`) and (`eq`.`genre` = 0)) group by `kt`.`kechengbiaoid` ;
|
|
|