Commit d91de211 authored by zp's avatar zp

排序

parent e3206259
......@@ -1859,7 +1859,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "day":
sort = "ret_1day ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......@@ -1867,7 +1867,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "week":
sort = "ret_1w ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......@@ -1875,7 +1875,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "month":
sort = "ret_1m ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......@@ -1883,7 +1883,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "season":
sort = "ret_3m ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......@@ -1891,7 +1891,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "halfAYear":
sort = "ret_6m ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......@@ -1899,7 +1899,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "year":
sort = "ret_1y ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......@@ -1907,7 +1907,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "twoYear":
sort = "ret_2y ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......@@ -1915,7 +1915,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "threeYear":
sort = "ret_3y ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......@@ -1923,7 +1923,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "fiveYear":
sort = "ret_5y ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......@@ -1931,7 +1931,7 @@ public class ProductServiceImpl implements ProductService, Constant {
case "retIncep":
sort = "ret_incep ";
if (StringUtils.isNotEmpty(req.getRankSort())) {
sort = sort + req.getNetSort() + ",";
sort = sort + req.getRankSort() + ", ";
} else {
sort = sort + "desc,";
}
......
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