This commit is contained in:
parent
72755dec3c
commit
e470aea24c
|
|
@ -173,7 +173,6 @@ public class ArchivesController extends BaseController {
|
|||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "下载电子档案右侧详情")
|
||||
@PreventRepeatSubmit
|
||||
//@RequiresPermissions("archives:type:download")
|
||||
@GetMapping("/download")
|
||||
public AjaxResult download(ArchivesVo archivesVo, HttpServletRequest request, HttpServletResponse response)
|
||||
|
|
|
|||
|
|
@ -178,8 +178,8 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
leaseApplyInfo.setUserId(SecurityUtils.getUserId());
|
||||
List<LeaseApplyInfo> list = leaseApplyInfoMapper.selectLeaseApplyInfoList(leaseApplyInfo);
|
||||
// 如果statusList包含3、4、5,则为领料出库查询,需查询领用出库数据,进行拼接
|
||||
if (leaseApplyInfo.getStatusList() != null && leaseApplyInfo.getStatusList().contains(3)
|
||||
|| leaseApplyInfo.getStatusList().contains(4) || leaseApplyInfo.getStatusList().contains(5)) {
|
||||
if (!CollectionUtils.isEmpty(leaseApplyInfo.getStatusList())) {
|
||||
if (leaseApplyInfo.getStatusList().contains(3) || leaseApplyInfo.getStatusList().contains(4) || leaseApplyInfo.getStatusList().contains(5)) {
|
||||
// 查询领用出库数据
|
||||
List<LeaseApplyInfo> leaseApplyOutList = leaseApplyInfoMapper.selectPublishList(leaseApplyInfo);
|
||||
if (!CollectionUtils.isEmpty(leaseApplyOutList)) {
|
||||
|
|
@ -195,6 +195,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
list.addAll(leaseApplyOutList);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 使用 Stream API 进行降序排序
|
||||
List<LeaseApplyInfo> sortedList = list.stream()
|
||||
.sorted(Comparator.comparing(LeaseApplyInfo::getCreateTime).reversed())
|
||||
|
|
|
|||
Loading…
Reference in New Issue