package com.sercurityControl.proteam.mapper; import com.sercurityControl.proteam.domain.ClassData; import com.sercurityControl.proteam.domain.UserCheck; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; /** * @author bonus * @data 2023/4/17 13:22 * @description 人员分配 */ @Repository(value = "AllocationMapper") public interface AllocationMapper { /** * 查询人员分配 * * @param entity 条件 * @return 集合 */ List getList(UserCheck entity); /** * 查询今日任务 * * @param entity 条件 * @return 集合 */ List getClass(ClassData entity); /** * 任务移除 * * @param entity 条件 * @return 条数 */ Integer delData(UserCheck entity); Integer delTypeData(UserCheck entity); /** * 添加任务 * * @param classId 条件 checkUser * @return 条数 */ Integer insertData(@Param("classId")String classId, @Param("checkUser")String checkUser); /** * * @param classId * @param userId * @param qualityUser */ void insertNewData(@Param("classId")String classId, @Param("checkUser")String checkUser,@Param("qualityUser") String qualityUser); /** * 查询今日任务 * * @param entity 条件 * @return 集合 */ List getClassData(ClassData entity); /** * @param userId * @param type * @param value */ Integer updateUserInformation( @Param("userId")String userId, @Param("type")String type, @Param("value") String value); /** * 删除全部 * @param entity * @return */ Integer delAll(UserCheck entity); }