mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	【功能优化】订单日志根据创建时间倒序
This commit is contained in:
		@@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.trade.dal.mysql.aftersale;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
 | 
					import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
 | 
				
			||||||
import cn.iocoder.yudao.module.trade.dal.dataobject.aftersale.AfterSaleLogDO;
 | 
					import cn.iocoder.yudao.module.trade.dal.dataobject.aftersale.AfterSaleLogDO;
 | 
				
			||||||
 | 
					import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 | 
				
			||||||
import org.apache.ibatis.annotations.Mapper;
 | 
					import org.apache.ibatis.annotations.Mapper;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.util.List;
 | 
					import java.util.List;
 | 
				
			||||||
@@ -10,7 +11,10 @@ import java.util.List;
 | 
				
			|||||||
public interface AfterSaleLogMapper extends BaseMapperX<AfterSaleLogDO> {
 | 
					public interface AfterSaleLogMapper extends BaseMapperX<AfterSaleLogDO> {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    default List<AfterSaleLogDO> selectListByAfterSaleId(Long afterSaleId) {
 | 
					    default List<AfterSaleLogDO> selectListByAfterSaleId(Long afterSaleId) {
 | 
				
			||||||
        return selectList(AfterSaleLogDO::getAfterSaleId, afterSaleId);
 | 
					        LambdaQueryWrapper<AfterSaleLogDO> queryWrapper = new LambdaQueryWrapper<>();
 | 
				
			||||||
 | 
					        queryWrapper.eq(AfterSaleLogDO::getAfterSaleId, afterSaleId);
 | 
				
			||||||
 | 
					        queryWrapper.orderByDesc(AfterSaleLogDO::getCreateTime);
 | 
				
			||||||
 | 
					        return selectList(queryWrapper);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user