首页 > 其他 > 详细

111

时间:2019-02-02 16:04:30      阅读:181      评论:0      收藏:0      [点我收藏+]

{
  "pk": "student_id",
  "sql": "select concat(‘#area_code#_‘,#pk#) as id,‘#area_code#‘ as area_code,#pk# as pk,‘t_base_student‘ as table_name,now() as report_time,t4.student_name,t4.xb_name,t4.create_time,t4.b_use,t4.bureau_id,t4.class_id,t4.identity_card,(select district_id from t_base_organization as t1 where t1.org_id=t4.bureau_id) as district_id,(select city_id from t_base_organization as t1 where t1.org_id=t4.bureau_id) as city_id,(select province_id from t_base_organization as t1 where t1.org_id=t4.bureau_id) as province_id,ifnull((select (case when t2.main_school_id=0 then t2.org_id else t2.main_school_id end)  from t_base_organization as t2 where t2.org_id=t4.bureau_id),t4.bureau_id) as main_school_id,ifnull((select stage_id from t_base_class as t3 where t3.class_id=t4.class_id),-1) as stage_id,ifnull((select entrance_year from t_base_class as t3 where t3.class_id=t4.class_id),-1) as entrance_year from t_base_student as t4 where t4.#pk#> #id# order by t4.#pk# #limit#"
}

111

原文:https://www.cnblogs.com/littlehb/p/10348550.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!