weaver-hrm-organization/src/com/engine/organization/transmethod/WorkRelationTransMethod.java

27 lines
692 B
Java
Raw Normal View History

package com.engine.organization.transmethod;
import weaver.conn.RecordSet;
import weaver.general.Util;
/**
* @description:
* @author:wangj
* @createTime: 2025/02/28
* @version: 1.0
*/
public class WorkRelationTransMethod {
public static String getSpanById(String Id) {
RecordSet rs = new RecordSet();
String names = "/";
if (!"".equals(Id)) {
String sql = "select selectvalue,selectname from cus_selectitem where fieldid = 10 and selectvalue = '" + Id + "'";
rs.execute(sql);
while (rs.next()) {
names = Util.null2String(rs.getString("selectname"));
}
}
return names;
}
}