This commit is contained in:
parent
5899b6049a
commit
b46333b113
|
|
@ -211,5 +211,15 @@ public class MyHelper {
|
|||
}
|
||||
return value.toString().trim();
|
||||
}
|
||||
public static String getUserId(String userId) throws DAOException {
|
||||
String sql = "select cuserid from sm_user where user_code = '" + userId + "' ";
|
||||
String Erpuser = (String) dao.executeQuery(sql, new ColumnProcessor());
|
||||
if(Erpuser == null) {
|
||||
String bipsql = " select cuserid from sm_user where user_code = 'BIP' and dr = 0";
|
||||
Erpuser = (String) dao.executeQuery(bipsql, new ColumnProcessor());
|
||||
}
|
||||
return Erpuser!=null?Erpuser.trim():"";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue