考勤,出勤津贴数据生成功能中人员范围ids获取逻辑增加日志记录

zm_dev
sy 1 year ago
parent 50bbacf3e8
commit 0110b41c3f

@ -292,6 +292,7 @@ public class CommonUtil {
}
}
//人员类型
log.info("empIdInfos : " + empIdInfos);
for (Map<String, String> map : empIdInfos) {
String id = map.get("id");
String minSecurityLevel = map.get("minSecurityLevel");
@ -305,11 +306,13 @@ public class CommonUtil {
querySql = querySql + " and seclevel <= " +maxSecurityLevel;
}
Map<String,Object> data = DbTools.getSqlToMap(querySql);
log.info("querySql : " + querySql);
if (data.size() > 0) {
empIdList.add(id);
}
}
//人员分组类型
log.info("empGroupIdInfos : " + empGroupIdInfos);
for (Map<String, String> map : empGroupIdInfos) {
String id = map.get("id");
String minSecurityLevel = map.get("minSecurityLevel");
@ -327,12 +330,15 @@ public class CommonUtil {
querySql = querySql + " and seclevel <= " +maxSecurityLevel;
}
List<Map<String,Object>> datas = DbTools.getSqlToList(querySql);
log.info("querySql : " + querySql);
if (datas.size() > 0) {
log.info("datas : " + datas);
datas.forEach(f -> empIdList.add(f.get("id").toString()));
}
}
}
//部门类型
log.info("depIdInfos : " + depIdInfos);
for (Map<String, String> map : depIdInfos) {
String id = map.get("id");
String minSecurityLevel = map.get("minSecurityLevel");
@ -346,11 +352,14 @@ public class CommonUtil {
querySql = querySql + " and seclevel <= " +maxSecurityLevel;
}
List<Map<String,Object>> datas = DbTools.getSqlToList(querySql);
log.info("querySql : " + querySql);
if (datas.size() > 0) {
log.info("datas : " + datas);
datas.forEach(f -> empIdList.add(f.get("id").toString()));
}
}
//分部类型
log.info("subCompanyIdInfos : " + subCompanyIdInfos);
for (Map<String, String> map : subCompanyIdInfos) {
String id = map.get("id");
String minSecurityLevel = map.get("minSecurityLevel");
@ -364,7 +373,9 @@ public class CommonUtil {
querySql = querySql + " and seclevel <= " +maxSecurityLevel;
}
List<Map<String,Object>> datas = DbTools.getSqlToList(querySql);
log.info("querySql : " + querySql);
if (datas.size() > 0) {
log.info("datas : " + datas);
datas.forEach(f -> empIdList.add(f.get("id").toString()));
}
}

Loading…
Cancel
Save