#
vincentlu
9 天以前 7ac5a3f2bcbb0d0e13dc87cd969c8fb1fd99b488
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.zy.acs.manager.manager.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.acs.manager.manager.entity.StaReserve;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
@Mapper
@Repository
public interface StaReserveMapper extends BaseMapper<StaReserve> {
 
    int updateState(
            @Param("taskId") Long taskId
            , @Param("staId") Long staId
            , @Param("type") String type
            , @Param("state") String state
    );
 
    int updateStateToWaiting(
            @Param("taskId") Long taskId
            , @Param("staId") Long staId
            , @Param("type") String type
            , @Param("state") String state
            , @Param("extendMs") Long extendMs
    );
 
    int updateStateBackToWaiting(
            @Param("taskId") Long taskId
            , @Param("staId") Long staId
            , @Param("type") String type
            , @Param("state") String state
            , @Param("extendMs") Long extendMs
    );
 
}