#
vincentlu
2025-12-26 a4a7479ffbee57c642387baeca5783b943bb1af3
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
package com.zy.acs.manager.manager.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.acs.manager.manager.entity.Sta;
import org.apache.ibatis.annotations.Param;
 
public interface StaMapper extends BaseMapper<Sta> {
 
    // inbound -------------------
 
    int tryReserveIn(@Param("staId") Long staId, @Param("qty") Integer qty);
 
    int releaseReserveIn(@Param("staId") Long staId, @Param("qty") Integer qty);
 
    int confirmReserveIn(@Param("staId") Long staId, @Param("qty") Integer qty);
 
    // outbound ------------------
 
    int tryReserveOut(@Param("staId") Long staId, @Param("qty") Integer qty);
 
    int releaseReserveOut(@Param("staId") Long staId, @Param("qty") Integer qty);
 
    int confirmReserveOut(@Param("staId") Long staId, @Param("qty") Integer qty);
 
}