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.
37 lines
1.5 KiB
37 lines
1.5 KiB
select * from (
|
|
SELECT
|
|
cast( t1.`org_id` AS CHAR ( 36 ) charset utf8 ) AS `org_id`,
|
|
t1.`id_int` AS `id_int`,
|
|
t1.`org_code` AS `org_code`,
|
|
t1.`org_name` AS `org_name`,
|
|
cast( t1.`parent_id` AS CHAR ( 36 ) charset utf8 ) AS `parent_id`,
|
|
cast( t1.`bureau_id` AS CHAR ( 36 ) charset utf8 ) AS `bureau_id`,
|
|
t1.`org_type` AS `org_type`,
|
|
t1.`edu_assist_type` AS `edu_assist_type`,
|
|
t1.`main_school_type` AS `main_school_type`,
|
|
cast( t1.`main_school_id` AS CHAR ( 36 ) charset utf8 ) AS `main_school_id`,
|
|
cast( t1.`manage_org_id` AS CHAR ( 36 ) charset utf8 ) AS `manage_org_id`,
|
|
t1.`directly_under_type` AS `directly_under_type`,
|
|
t1.`xxbbm` AS `xxbbm`,
|
|
t1.`xxbxlxm` AS `xxbxlxm`,
|
|
t1.`szdcxlxm` AS `szdcxlxm`,
|
|
t1.`xxjbzm` AS `xxjbzm`,
|
|
cast( t1.`fzr` AS CHAR ( 36 ) charset utf8 ) AS `fzr`,
|
|
t1.`fddbr` AS `fddbr`,
|
|
t1.`fddbrdh` AS `fddbrdh`,
|
|
t1.`address` AS `address`,
|
|
t1.`lxdh` AS `lxdh`,
|
|
t1.`org_lng` AS `org_lng`,
|
|
t1.`org_lat` AS `org_lat`,
|
|
t1.`sort_id` AS `sort_id`,
|
|
cast( t1.`b_use` AS signed ) AS `b_use`,
|
|
t1.`province_code` AS `province_code`,
|
|
t1.`city_code` AS `city_code`,
|
|
t1.`district_code` AS `district_code`,
|
|
t1.`area_code` AS `area_code`,
|
|
DATE_FORMAT(t1.`last_updated_time`,'%Y/%m/%d %H:%i:%s') AS `last_updated_time`,
|
|
DATE_FORMAT(t1.`create_time`,'%Y/%m/%d %H:%i:%s') AS `create_time`,
|
|
case t1.`b_use` when -1 then 1 else 0 end AS `del_flag`
|
|
FROM
|
|
`t_base_organization` as t1 where t1.b_use=1
|
|
) as t1 |