订单过期返还库存

This commit is contained in:
2024-07-04 09:10:43 +08:00
parent 9edb6cde36
commit 39c0bf5e65
7 changed files with 91 additions and 41 deletions

View File

@@ -52,7 +52,4 @@ public interface TbProductMapper extends BaseMapper<TbProductDto, TbProduct> {
.map(String::valueOf)
.collect(Collectors.joining(","));
}
@Select("select * from tb_product where id=#{id}")
TbProduct selectById(@Param("id") Integer productId);
}

View File

@@ -18,6 +18,8 @@ package cn.ysk.cashier.mapper.product;
import cn.ysk.cashier.base.BaseMapper;
import cn.ysk.cashier.pojo.product.TbProductSku;
import cn.ysk.cashier.dto.product.TbProductSkuDto;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
@@ -29,4 +31,4 @@ import org.mapstruct.ReportingPolicy;
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface TbProductSkuMapper extends BaseMapper<TbProductSkuDto, TbProductSku> {
}
}