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.
dsMin/dsBaseRpc/Sql/t_base_teacher_org.sql

17 lines
571 B

SELECT
t1.`id` AS `id`,
t1.`id_int` AS `id_int`,
t1.`person_id` AS `person_id`,
t1.`bureau_id` AS `bureau_id`,
t1.`org_id` AS `org_id`,
t1.`province_code` AS `province_code`,
t1.`city_code` AS `city_code`,
cast( t1.`b_use` AS signed ) AS `b_use`,
t1.`district_code` as district_code,
t1.`main_school_id` as main_school_id,
t1.`sort_id` as sort_id,
t1.`is_main` as is_main,
case t1.`b_use` when -2 then 1 else 0 end AS `del_flag`,
DATE_FORMAT(t1.`last_updated_time`,'%Y/%m/%d %H:%i:%s') AS `last_updated_time`
FROM
`t_base_teacher_org` as t1