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.
26 lines
828 B
26 lines
828 B
-- 字典命名空间
|
|
#namespace("login")
|
|
|
|
#sql("getPersonInfoByPersonId")
|
|
select person_id,person_name,identity_id,login_name,b_use,city_id,area_id,main_school_id,bureau_id
|
|
from t_sys_loginperson where person_id=?
|
|
#end
|
|
|
|
-- 获取整个单位类型与职务+分管信息树数据
|
|
#sql("getLoginInfoByUserName")
|
|
select person_id,person_name,pwd,ifnull(wx_openid,0) as wx_openid,ifnull(qq_openid,0) as qq_openid,identity_id,bureau_id,city_id,area_id
|
|
from t_sys_loginperson where b_use = 1 and login_name =?
|
|
#end
|
|
|
|
-- 修改密码
|
|
#sql("updatePwd")
|
|
update t_sys_loginperson set pwd = ? where person_id = ?
|
|
#end
|
|
|
|
|
|
-- 根据全局变量的KEY获取VALUE
|
|
#sql("getGlobalValueByKey")
|
|
select ifnull(global_value,'') as global_value from t_base_global where global_code = ?
|
|
#end
|
|
|
|
#end |