package org.linlinjava.jz.db.dao;

import org.apache.ibatis.annotations.Param;
import org.linlinjava.jz.db.domain.HmEmployTask;
import org.linlinjava.jz.db.domain.HmEmployTaskExample;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_employ_task
     *
     * @mbg.generated
     */
    HmEmployTask selectOneByExample(HmEmployTaskExample example);

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

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

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

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

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

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

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

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

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

    List<Map<String, Object>> queryByClockId(@Param("clockId") Long clockId, @Param("taskType") Integer taskType, @Param("stateList") List<Integer> stateList);

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

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

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

    int batchInsert(@Param("hmEmployTask") HmEmployTask hmEmployTask, @Param("itemIds") String[] itemIds);

    int batchInsertWeekTask(@Param("orderNo") String orderNo, @Param("employClockId") Long employClockId, @Param("employRelationId") Long employRelationId, @Param("mapList") List<Map<String, Object>> mapList);
}