package com.cool.store.mapper;

import com.cool.store.entity.MatterConfigDO;
import com.cool.store.request.notice.MatterConfigQueryRequest;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface MatterConfigMapper extends Mapper<MatterConfigDO> {


    /**
     * 强制修改
     * @param matterConfigDO
     * @return
     */
    int updateForce(@Param("matterConfigDO") MatterConfigDO matterConfigDO);

    /**
     * 批量修改删除状态
     */
    int updateDeleteStatus(@Param("ids") List<Long> ids, @Param("userId") String userId);


    /**
     * 条件查询
     * @param request
     * @return
     */
    List<MatterConfigDO> ListByCondition(@Param("request") MatterConfigQueryRequest request);

}