package com.cool.store.mapper;

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

import java.util.List;


/**
 * @author EDY
 * @description 针对表【xfsg_operation_log(操作日志)】的数据库操作Mapper
 * @createDate 2024-08-27 11:24:09
 * @Entity com.cool.store.entity.OperationLogDO
 */
public interface OperationLogMapper extends Mapper<OperationLogDO> {

    OperationLogDO getOrderByTime(@Param("shopId") Long shopId, @Param("shopSubStageStatus") Integer shopSubStageStatus, @Param("type") Integer type);

    List<OperationLogDO> getBySubStageStatusEnumAndsStatus(@Param("shopId") Long shopId, @Param("shopSubStageStatus") Integer shopSubStageStatus, @Param("type") Integer type);

    List<OperationLogDO> getByShopSubStage(@Param("shopId") Long shopId, @Param("shopSubStageList") List<Integer>  shopSubStageList, @Param("types") List<Integer>  types);

    Long batchAddOperationLog(@Param("list") List<OperationLogDO> operationLogDO) ;

    List<OperationLogDO> getBySubStageStatusAndUser(@Param("userId") String userId, @Param("list") List<Integer> shopSubStageStatus );

    OperationLogDO getByCondition(@Param("shopId") Long shopId,@Param("shopSubStageStatus") Integer shopSubStageStatus);
}




