Commit ef112251 authored by shiyu's avatar shiyu

搜索商品展示列表排列顺序修改

parent 887d1e55
package com.wwdz.ch.core.consts;
public class AfterSaleEnum {
/**
* 售后单状态
*/
public enum StateEnum {
WAIT_REVIEW(1, "待平台审核"),
PRE_SEND(10, "待寄出"),
REVIEW_FAILED(12, "驳回审核"),
PRE_CHANNEL_SIGNED(20, "待平台收货"),
IDENTIFYING(30, "平台验货中"),
IDENTIFY_FAILED(40, "平台验货不通过"),
RETURN_PRE_SIGNED(50, "退回待收货"),
FINISH(100, "售后完成"),
CANCEL(101, "售后申请取消"),
;
private int code;
private String des;
StateEnum(int code, String des) {
this.code = code;
this.des = des;
}
public static String getNameByCode(int code) {
for (AfterSaleEnum.StateEnum stateEnum : AfterSaleEnum.StateEnum.values()) {
if (code == stateEnum.getCode()) {
return stateEnum.getDes();
}
}
return null;
}
public int getCode() {
return code;
}
public String getDes() {
return des;
}
}
}
......@@ -198,7 +198,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
public Result findItemList(SupplierItemRequestDto dto) {
try {
List<SupplierItemVo> supplierItemVos = new ArrayList<>();
List<SupplierItem> supplierItemList = supplierItemDao.findList(dto);
List<SupplierItem> supplierItemList = supplierItemDao.findListForSort(dto);
PageInfo pageInfo = new PageInfo(supplierItemList);
for (SupplierItem supplierItem : supplierItemList) {
SupplierItemVo supplierItemVo = new SupplierItemVo();
......@@ -952,7 +952,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
return Result.failed(ResultCode.UNLOGIN);
}
}
//用户默认展示逍遥分享的商品列表
//用户默认展示系统账号发布的藏品和白名单中藏家的藏品
long sellerId = 291997;
SupplierItemRequestDto searchDto = new SupplierItemRequestDto();
//查询用户关注的人
......
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