package org.linlinjava.jz.db.dao;

import org.apache.ibatis.annotations.Param;
import org.linlinjava.jz.db.domain.HmEmployTaskSet;
import org.linlinjava.jz.db.domain.HmEmployTaskSetExample;

import java.util.List;
import java.util.Map;

public interface HmEmployTaskSetMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    long countByExample(HmEmployTaskSetExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    int deleteByExample(HmEmployTaskSetExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    int insert(HmEmployTaskSet record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    int insertSelective(HmEmployTaskSet record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    HmEmployTaskSet selectOneByExample(HmEmployTaskSetExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    HmEmployTaskSet selectOneByExampleSelective(@Param("example") HmEmployTaskSetExample example, @Param("selective") HmEmployTaskSet.Column ... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    List<HmEmployTaskSet> selectByExampleSelective(@Param("example") HmEmployTaskSetExample example, @Param("selective") HmEmployTaskSet.Column ... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    List<HmEmployTaskSet> selectByExample(HmEmployTaskSetExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    HmEmployTaskSet selectByPrimaryKeySelective(@Param("id") Long id, @Param("selective") HmEmployTaskSet.Column ... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    HmEmployTaskSet selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") HmEmployTaskSet record, @Param("example") HmEmployTaskSetExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") HmEmployTaskSet record, @Param("example") HmEmployTaskSetExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(HmEmployTaskSet record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task_set
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(HmEmployTaskSet record);

    List<Map<String, Object>> queryGroupByTaskType(@Param("orderNo") String orderNo, @Param("taskType") Integer taskType);

    List<Map<String, Object>> selectByOrderNoAndCategory(@Param("orderNo") String orderNo, @Param("categoryId") Long categoryId,@Param("taskType")int type);

    List<Map<String, Object>> getTaskByTaskType(@Param("employRelationId") Long employRelationId, @Param("taskType") Integer taskType);
}