商品按sort排序

This commit is contained in:
lzh
2023-04-05 21:27:23 +08:00
parent 664fd0ecb3
commit 7bc4a94b80
6 changed files with 18 additions and 14 deletions

View File

@@ -77,7 +77,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.60</version>
<version>1.2.62</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>

View File

@@ -385,7 +385,8 @@ public class SingePmsController extends ApiBaseAction {
if (ValidatorUtils.notEmpty(schoolId) && schoolId > 0) {
product.setSchoolId(schoolId);
}
String orderColum = "create_time";
// String orderColum = "create_time";
String orderColum = "sort";
if (ValidatorUtils.notEmpty(product.getSort())) {
if (product.getSort() == 1) {
orderColum = "sale";