|
|
@ -1,10 +1,14 @@
|
|
|
|
package cn.iocoder.yudao.module.accounting.service.voucherdetails;
|
|
|
|
package cn.iocoder.yudao.module.accounting.service.voucherdetails;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.module.accounting.controller.admin.voucherdetails.vo.*;
|
|
|
|
import cn.iocoder.yudao.module.accounting.controller.admin.voucherdetails.vo.*;
|
|
|
|
import cn.iocoder.yudao.module.accounting.dal.dataobject.voucherdetails.VoucherDetailsDO;
|
|
|
|
import cn.iocoder.yudao.module.accounting.dal.dataobject.voucherdetails.VoucherDetailsDO;
|
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
@ -71,7 +75,12 @@ public class VoucherDetailsServiceImpl implements VoucherDetailsService {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public PageResult<VoucherDetailsDO> getVoucherDetailsPage(VoucherDetailsPageReqVO pageReqVO) {
|
|
|
|
public PageResult<VoucherDetailsDO> getVoucherDetailsPage(VoucherDetailsPageReqVO pageReqVO) {
|
|
|
|
return voucherDetailsMapper.selectPage(pageReqVO);
|
|
|
|
PageResult<VoucherDetailsDO> voucherDetailsDOPageResult = voucherDetailsMapper.selectPage(pageReqVO);
|
|
|
|
|
|
|
|
//根据LineNum升序
|
|
|
|
|
|
|
|
List<VoucherDetailsDO> list = voucherDetailsDOPageResult.getList();
|
|
|
|
|
|
|
|
List<VoucherDetailsDO> resultList = list.stream().sorted(Comparator.comparing(VoucherDetailsDO::getLineNum, Comparator.nullsLast(Comparator.naturalOrder()))).collect(Collectors.toList());
|
|
|
|
|
|
|
|
voucherDetailsDOPageResult.setList(resultList);
|
|
|
|
|
|
|
|
return voucherDetailsDOPageResult;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|