40 lines
826 B
Java
40 lines
826 B
Java
package com.mcwl.resource.mapper;
|
||
|
||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||
|
||
import com.mcwl.resource.domain.ModelProduct;
|
||
import org.apache.ibatis.annotations.Mapper;
|
||
import org.apache.ibatis.annotations.Param;
|
||
|
||
import java.util.List;
|
||
|
||
/**
|
||
* @Author:ChenYan
|
||
* @Project:McWl
|
||
* @Package:com.mcwl.resource.mapper
|
||
* @Filename:MallProductMapper
|
||
* @Description TODO
|
||
* @Date:2024/12/30 18:23
|
||
*/
|
||
@Mapper
|
||
public interface ModelMapper extends BaseMapper<ModelProduct> {
|
||
|
||
|
||
|
||
Long sumNumber(@Param("userId") Long userId);
|
||
|
||
|
||
void updateModel(ModelProduct modelProduct);
|
||
|
||
Long sumLikeNumber(@Param("userId") Long userId);
|
||
|
||
Long sumRunNumber(Long userId);
|
||
|
||
void updateTopStatus(@Param("id") Long id, @Param("isTop") int i);
|
||
|
||
List<ModelProduct> selectAllModelsSortedByTopStatus();
|
||
|
||
|
||
|
||
}
|