main
黄海 2 years ago
parent 6e7204e0a7
commit 39cd040e68

@ -43,7 +43,7 @@ public class BaseModel {
* 2018-11-22
*/
public List<Record> getOrgTypePrincipalshipById(String id) {
SqlPara sp = Db.getSqlPara("Base.getOrgTypePrincipalshipById",Integer.parseInt(id));
SqlPara sp = Db.getSqlPara("Base.getOrgTypePrincipalshipById", Integer.parseInt(id));
return Db.find(sp);
}
@ -389,6 +389,8 @@ public class BaseModel {
public Record getPersonInfo(String teacher_id) {
String sql = "select t1.*,t2.org_name as bureau_name from t_sys_loginperson as t1 left join t_base_organization as t2 on t1.bureau_id=t2.org_id where t1.person_id=?";
Record record = Db.findFirst(sql, teacher_id);
if (record.getStr("telephone").trim().equals("-1")) record.set("telephone", "");
if (record.getStr("email").trim().equals("-1")) record.set("email", "");
return record;
}
@ -452,7 +454,7 @@ public class BaseModel {
* @return
*/
public Map getLoginInfoByUserName(String userName) {
Map<String,Object> loginMap = new HashMap<>();
Map<String, Object> loginMap = new HashMap<>();
String sql = Db.getSql("Base.getLoginInfoByUserName");
List<Record> list = Db.find(sql, userName);
if (list.size() > 0) {

Loading…
Cancel
Save