|
|
|
@ -24,11 +24,6 @@ import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
|
public class SchedulingResultsServiceImpl extends Service implements SchedulingResultsService {
|
|
|
|
|
private Map<String,Object> personGroupMap = PersongroupCommonUtil.getPersonGroup();
|
|
|
|
|
private Map<String,Object> departMentMap = PersongroupCommonUtil.getDepartMent();
|
|
|
|
|
private Map<String,Object> subCompanyMap = PersongroupCommonUtil.getSubCompany();
|
|
|
|
|
private Map<String,Object> classesInformationMap = PersongroupCommonUtil.getClassesInformation();
|
|
|
|
|
private Map<String,Object> candidateTeamMap = PersongroupCommonUtil.getCandidateTeam();
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> queryDataTable(Map<String, Object> params) {
|
|
|
|
@ -65,9 +60,6 @@ public class SchedulingResultsServiceImpl extends Service implements SchedulingR
|
|
|
|
|
}
|
|
|
|
|
dataTableList = dataTableList.subList(startindex,endindex);
|
|
|
|
|
}
|
|
|
|
|
for (Map<String, Object> map:dataTableList){
|
|
|
|
|
SetBrowSerName(map);
|
|
|
|
|
}
|
|
|
|
|
resultMap.put("data",dataTableList);
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
@ -76,61 +68,12 @@ public class SchedulingResultsServiceImpl extends Service implements SchedulingR
|
|
|
|
|
int total = Integer.valueOf(result.get("total").toString());
|
|
|
|
|
params.put("total",total);
|
|
|
|
|
resultMap = commandExecutor.execute(new GetDatatableCmd(params));
|
|
|
|
|
List<Map<String,Object>> dataTable = (List<Map<String,Object>>)resultMap.get("data");
|
|
|
|
|
for (Map<String,Object> map :dataTable){
|
|
|
|
|
SetBrowSerName(map);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
resultMap.put("total",total);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return resultMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 塞入 人员、人员分组、部门、分部、班次信息、候选班组浏览按钮显示值
|
|
|
|
|
* @param map
|
|
|
|
|
*/
|
|
|
|
|
public void SetBrowSerName(Map<String,Object> map){
|
|
|
|
|
log.debug("personGroupMap :{},departMentMap:{},subCompanyMap:{},classesInformationMap:{},candidateTeamMap:{}"
|
|
|
|
|
,personGroupMap.hashCode(),departMentMap.hashCode(),subCompanyMap.hashCode(),classesInformationMap.hashCode(),candidateTeamMap.hashCode());
|
|
|
|
|
String dxlx = Util.null2String(map.get("dxlx"));
|
|
|
|
|
if (dxlx.equals("0")){
|
|
|
|
|
//人员
|
|
|
|
|
String lastname = Util.null2String(map.get("lastname"));
|
|
|
|
|
String pbdxry = Util.null2String(map.get("pbdxry"));
|
|
|
|
|
pbdxry = pbdxry +"-"+lastname;
|
|
|
|
|
map.put("pbdxry",pbdxry);
|
|
|
|
|
|
|
|
|
|
}else if (dxlx.equals("1")){
|
|
|
|
|
//人员分组
|
|
|
|
|
String pbdxryfz = Util.null2String(map.get("pbdxryfz"));
|
|
|
|
|
pbdxryfz= pbdxryfz+"-"+personGroupMap.get(pbdxryfz);
|
|
|
|
|
map.put("pbdxryfz",pbdxryfz);
|
|
|
|
|
|
|
|
|
|
}else if (dxlx.equals("2")){
|
|
|
|
|
//部门
|
|
|
|
|
String pbdxbm = Util.null2String(map.get("pbdxbm"));
|
|
|
|
|
pbdxbm= pbdxbm+"-"+departMentMap.get(pbdxbm);
|
|
|
|
|
map.put("pbdxbm",pbdxbm);
|
|
|
|
|
|
|
|
|
|
}else if (dxlx.equals("3")){
|
|
|
|
|
//分部
|
|
|
|
|
String pbdxfb = Util.null2String(map.get("pbdxfb"));
|
|
|
|
|
pbdxfb= pbdxfb+"-"+subCompanyMap.get(pbdxfb);
|
|
|
|
|
map.put("pbdxfb",pbdxfb);
|
|
|
|
|
}
|
|
|
|
|
String bcxx = Util.null2String(map.get("bcxx"));
|
|
|
|
|
String hxbz = Util.null2String(map.get("hxbz"));
|
|
|
|
|
if (!"".equals(bcxx)){
|
|
|
|
|
bcxx = bcxx +"-"+classesInformationMap.get(bcxx);
|
|
|
|
|
map.put("bcxx",bcxx);
|
|
|
|
|
}
|
|
|
|
|
if (!"".equals(hxbz)){
|
|
|
|
|
hxbz = hxbz +"-"+candidateTeamMap.get(hxbz);
|
|
|
|
|
map.put("hxbz",hxbz);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, Object> queryDataTableActualUse(Map<String, Object> params) {
|
|
|
|
|