Commit a6ca7fc3 authored by 张亚辉's avatar 张亚辉

排序

parent 42996ee2
...@@ -154,7 +154,7 @@ public class ProductServiceImpl implements ProductService, Constant { ...@@ -154,7 +154,7 @@ public class ProductServiceImpl implements ProductService, Constant {
PageMethod.startPage(1, 1); PageMethod.startPage(1, 1);
FundNavExample navExample = new FundNavExample(); FundNavExample navExample = new FundNavExample();
navExample.createCriteria().andFundIdEqualTo(id).andDeleteTagEqualTo(BizEnums.DeleteTag.tag_init); navExample.createCriteria().andFundIdEqualTo(id).andDeleteTagEqualTo(BizEnums.DeleteTag.tag_init);
navExample.setOrderByClause("price_date dec"); navExample.setOrderByClause("price_date desc");
List<FundNav> fundNavList = fundNavMapper.selectByExample(navExample); List<FundNav> fundNavList = fundNavMapper.selectByExample(navExample);
if (CollectionUtils.isNotEmpty(fundNavList)) { if (CollectionUtils.isNotEmpty(fundNavList)) {
vo.setNet(Net.builder().netDate(fundNavList.get(0).getPriceDate().getTime()) vo.setNet(Net.builder().netDate(fundNavList.get(0).getPriceDate().getTime())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment