package com.zioinfo.esn.mapper;

import com.zioinfo.esn.domain.WorkHistoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface WorkMapper {
    List<WorkHistoryVo> findAll(@Param("tenantCode") String tenantCode,
                                @Param("storeId") Long storeId,
                                @Param("status") String status,
                                @Param("workType") String workType);
    WorkHistoryVo findById(@Param("id") Long id);
    int insert(WorkHistoryVo work);
    int update(WorkHistoryVo work);
    int delete(@Param("id") Long id);
    long countToday(@Param("tenantCode") String tenantCode);
    long countCompletedToday(@Param("tenantCode") String tenantCode);
}
