Qchen 2 lat temu
rodzic
commit
768bde535f

+ 2 - 0
src/main/java/com/ydtech/modules/protocols/service/impl/PtlAgreementProductCostsNewServiceImpl.java

@@ -125,6 +125,8 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
         if (agreementProductQueryVo.getCostsDescription() != null) {
             ptlAgreementProductCostsNewLambdaQueryWrapper.like(PtlAgreementProductCostsNew::getCostsDescription, agreementProductQueryVo.getCostsDescription());
         }
+        //降序排列
+        ptlAgreementProductCostsNewLambdaQueryWrapper.orderByDesc(PtlAgreementProductCostsNew::getId);
 
         Page<PtlAgreementProductCostsNew> pages = baseMapper.selectPage(page, ptlAgreementProductCostsNewLambdaQueryWrapper);