ScrmBatchMomentStaffMapper.java 1.15 KB
package cn.com.glsx.entmicro.mapper;

import cn.com.glsx.entmicro.entity.wechatcloudcontrol.batchmoment.ScrmBatchMomentStaff;
import cn.com.glsx.entmicro.model.request.wechatcloudcontrol.batchmoment.BatchMomentStaffRecordQueryRpcRequest;
import cn.com.glsx.entmicro.model.response.wechatcloudcontrol.batchmoment.BatchMomentStaffRecordRpcResponse;
import cn.com.glsx.entmicro.model.wechatcloudcontrol.BatchMomentStaffCount;
import com.github.pagehelper.Page;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScrmBatchMomentStaffMapper extends CommonBaseMapper<ScrmBatchMomentStaff> {
    /**
     * 统计员工发送状态
     *
     * @param scrmBatchMomentIds
     * @return
     */
    List<BatchMomentStaffCount> getStaffStatusCount(@Param("scrmBatchMomentIds") List<Integer> scrmBatchMomentIds);

    /**
     * 发送记录分页查询
     * @param condition
     * @return
     */
    Page<BatchMomentStaffRecordRpcResponse> batchMomentStaffRecordPage(@Param("condition") BatchMomentStaffRecordQueryRpcRequest condition);
}