Newer
Older
huludao / src / main / java / com / newfiber / api / pc / dao / TaskStateMapper.java
@新烽开发者 新烽开发者 on 19 Jul 635 bytes init
package com.newfiber.api.pc.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.newfiber.api.pc.model.entity.TaskState;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TaskStateMapper extends BaseMapper<TaskState> {

    int updateTaskState(@Param("taskId") Long taskId, @Param("user")String user, @Param("state")int state);

    int deleteByTaskId(@Param("taskId") Long taskId);

    TaskState selectByTaskIdAndUserName(@Param("taskId") Long taskId, @Param("userName")String nextUser);

    int updateByTaskId(@Param("taskId") Long taskId);
}