|
|
@ -14,11 +14,6 @@ public class TransUtil {
|
|
|
|
|
|
|
|
|
|
|
|
private static final org.slf4j.Logger logger_24a1e280 = LoggerFactory.getLogger(TransUtil.class);
|
|
|
|
private static final org.slf4j.Logger logger_24a1e280 = LoggerFactory.getLogger(TransUtil.class);
|
|
|
|
|
|
|
|
|
|
|
|
private String tenantKey;
|
|
|
|
|
|
|
|
public TransUtil(){
|
|
|
|
|
|
|
|
this.tenantKey = tenantKey;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 根据选择框显示值 获取现在框value
|
|
|
|
* 根据选择框显示值 获取现在框value
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -69,8 +64,9 @@ public class TransUtil {
|
|
|
|
|
|
|
|
|
|
|
|
public Map<String,String> getDTtripMt(String workcode){
|
|
|
|
public Map<String,String> getDTtripMt(String workcode){
|
|
|
|
RecordSet rs = I18nContextUtil.getBean(RecordSet.class);
|
|
|
|
RecordSet rs = I18nContextUtil.getBean(RecordSet.class);
|
|
|
|
String poolname = CONN_TYPE.ebuilder.getType();
|
|
|
|
// String poolname = CONN_TYPE.ebuilder.getType();
|
|
|
|
rs.setTenantKey("t6kj9c07jr");//集团租户key
|
|
|
|
// rs.setTenantKey("t6kj9c07jr");//集团租户key
|
|
|
|
|
|
|
|
String poolname ="E10JTZH";
|
|
|
|
Map<String,String> map = new HashMap<>();
|
|
|
|
Map<String,String> map = new HashMap<>();
|
|
|
|
if("".equals(workcode)){
|
|
|
|
if("".equals(workcode)){
|
|
|
|
return map;
|
|
|
|
return map;
|
|
|
@ -89,13 +85,14 @@ public class TransUtil {
|
|
|
|
|
|
|
|
|
|
|
|
public Map<String,String> getResourceInfoByworkcode(String workcode ){
|
|
|
|
public Map<String,String> getResourceInfoByworkcode(String workcode ){
|
|
|
|
Map<String,String> info = new HashMap<>();
|
|
|
|
Map<String,String> info = new HashMap<>();
|
|
|
|
|
|
|
|
String tenantKey = "";
|
|
|
|
if("".equals(workcode)){
|
|
|
|
if("".equals(workcode)){
|
|
|
|
return info;
|
|
|
|
return info;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String sql = "SELECT a.id AS ryid, a.username AS lastname, a.job_num AS workcode, a.department AS departmentid, b.subcompanyid AS subcompanyid1 " +
|
|
|
|
String sql = " SELECT a.id AS ryid, a.username AS lastname, a.job_num AS workcode, a.department AS departmentid, b.subcompanyid AS subcompanyid1 " +
|
|
|
|
" , b.name AS departmentname, c.name AS subcompanyname ,a.position as jobtitle" +
|
|
|
|
" , b.name AS departmentname, c.name AS subcompanyname ,a.position as jobtitle" +
|
|
|
|
"FROM eteams.dbo.employee a, eteams.dbo.department b, eteams.dbo.department c " +
|
|
|
|
" FROM eteams.dbo.employee a, eteams.dbo.department b, eteams.dbo.department c " +
|
|
|
|
"WHERE a.department = b.id " +
|
|
|
|
" WHERE a.department = b.id " +
|
|
|
|
" AND c.id = b.subcompanyid " +
|
|
|
|
" AND c.id = b.subcompanyid " +
|
|
|
|
" AND a.job_num = "+workcode+" " +
|
|
|
|
" AND a.job_num = "+workcode+" " +
|
|
|
|
" AND a.delete_type = 0 " +
|
|
|
|
" AND a.delete_type = 0 " +
|
|
|
|