| package io.seata.samples.integration.storage.mapper; |
| |
| import com.baomidou.mybatisplus.mapper.BaseMapper; |
| import io.seata.samples.integration.storage.entity.TStorage; |
| import org.apache.ibatis.annotations.Param; |
| |
| /** |
| * <p> |
| * Mapper 接口 |
| * </p> |
| * |
| * @author heshouyou |
| * @since 2019-01-13 |
| */ |
| public interface TStorageMapper extends BaseMapper<TStorage> { |
| |
| /** |
| * 扣减商品库存 |
| * @Param: commodityCode 商品code count扣减数量 |
| * @Return: |
| */ |
| int decreaseStorage(@Param("commodityCode") String commodityCode, @Param("count") Integer count); |
| } |