package com.cool.store.mapper;

import com.cool.store.entity.PointDetailInfoDO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface PointDetailInfoMapper extends Mapper<PointDetailInfoDO> {

    /**
     * 获取详情id
     * @param pointId
     * @return
     */
    Long getPointDetailIdByPointId(@Param("pointId") Long pointId);

    /**
     * 获取详情
     * @param pointId
     * @return
     */
    PointDetailInfoDO getShopPointDetailInfoByPointId(@Param("pointId") Long pointId);

    /**
     * 更新部分字段
     * @param update
     * @return
     */
    Integer updatePartFieldPointDetail(@Param("update") PointDetailInfoDO update);
}