代码去除
This commit is contained in:
parent
8000e6e4f8
commit
012d6be506
|
|
@ -617,17 +617,17 @@ public class MaterialMachineServiceImpl implements MaterialMachineService {
|
|||
}
|
||||
}
|
||||
List<MaterialRetainedTeamTotalVo> teamNumList = materialMachineMapper.getTeamNumList(bean);
|
||||
for (MaterialRetainedTeamTotalVo materialRetainedEquipmentInfo : teamNumList) {
|
||||
// 根据班组名称查询分包单位
|
||||
String subUnitName = iwsTeamUserMapper.getTeamName(materialRetainedEquipmentInfo.getTeamName());
|
||||
materialRetainedEquipmentInfo.setSubUnitName(subUnitName);
|
||||
}
|
||||
if(bean.getSubUnitName()!=null && !bean.getSubUnitName().equals("") && !teamNumList.isEmpty()){
|
||||
// 根据传入的SubUnitName过滤列表
|
||||
teamNumList = teamNumList.stream()
|
||||
.filter(item -> StringUtils.equals(item.getSubUnitName(), bean.getSubUnitName()))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
// for (MaterialRetainedTeamTotalVo materialRetainedEquipmentInfo : teamNumList) {
|
||||
// // 根据班组名称查询分包单位
|
||||
// String subUnitName = iwsTeamUserMapper.getTeamName(materialRetainedEquipmentInfo.getTeamName());
|
||||
// materialRetainedEquipmentInfo.setSubUnitName(subUnitName);
|
||||
// }
|
||||
// if(bean.getSubUnitName()!=null && !bean.getSubUnitName().equals("") && !teamNumList.isEmpty()){
|
||||
// // 根据传入的SubUnitName过滤列表
|
||||
// teamNumList = teamNumList.stream()
|
||||
// .filter(item -> StringUtils.equals(item.getSubUnitName(), bean.getSubUnitName()))
|
||||
// .collect(Collectors.toList());
|
||||
// }
|
||||
if (!hasSpecialRole) {
|
||||
if (CollectionUtil.isNotEmpty(iwsTeamUserVos)) {
|
||||
if (CollectionUtil.isNotEmpty(teamNumList)) {
|
||||
|
|
@ -649,6 +649,8 @@ public class MaterialMachineServiceImpl implements MaterialMachineService {
|
|||
}
|
||||
return teamNumList;
|
||||
}
|
||||
|
||||
|
||||
// public List<MaterialRetainedTeamTotalVo> getTeamNumList(MaterialRetainedEquipmentInfo bean) {
|
||||
// String username = SecurityUtils.getLoginUser().getUsername();
|
||||
// // 根据用户名查询项目部信息
|
||||
|
|
|
|||
Loading…
Reference in New Issue