This commit is contained in:
lihao 2025-11-20 13:26:13 +08:00
parent 5899b6049a
commit b46333b113
1 changed files with 10 additions and 0 deletions

View File

@ -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():"";
}
}