This commit is contained in:
parent
76c64903b8
commit
0edf22a5a5
|
|
@ -103,8 +103,7 @@ public class MaterialLeaseInfoServiceImpl implements MaterialLeaseInfoService {
|
||||||
public List<MaterialLeaseApplyInfo> selectLeaseApplyInfoList(MaterialLeaseApplyInfo leaseApplyInfo) {
|
public List<MaterialLeaseApplyInfo> selectLeaseApplyInfoList(MaterialLeaseApplyInfo leaseApplyInfo) {
|
||||||
String username = SecurityUtils.getLoginUser().getUsername();
|
String username = SecurityUtils.getLoginUser().getUsername();
|
||||||
// 根据用户名判断用户是否为班组长
|
// 根据用户名判断用户是否为班组长
|
||||||
BmTeam teamData = materialMachineMapper.getTeamData(username);
|
BmTeam teamData = materialMachineMapper.getTeamData(username);
|
||||||
/*
|
|
||||||
if (teamData == null) {
|
if (teamData == null) {
|
||||||
// 根据用户名查询项目部信息
|
// 根据用户名查询项目部信息
|
||||||
String departId = mapper.getDepartId(username);
|
String departId = mapper.getDepartId(username);
|
||||||
|
|
@ -113,7 +112,7 @@ public class MaterialLeaseInfoServiceImpl implements MaterialLeaseInfoService {
|
||||||
if (!CollectionUtils.isEmpty(projectIdList)) {
|
if (!CollectionUtils.isEmpty(projectIdList)) {
|
||||||
leaseApplyInfo.setProjectIdList(projectIdList);
|
leaseApplyInfo.setProjectIdList(projectIdList);
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
List<MaterialLeaseApplyInfo> list = materialLeaseInfoMapper.selectLeaseApplyInfoList(leaseApplyInfo);
|
List<MaterialLeaseApplyInfo> list = materialLeaseInfoMapper.selectLeaseApplyInfoList(leaseApplyInfo);
|
||||||
// 利用Stream API进行降序排序
|
// 利用Stream API进行降序排序
|
||||||
List<MaterialLeaseApplyInfo> sortedList = list.stream()
|
List<MaterialLeaseApplyInfo> sortedList = list.stream()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue