新增盘点接口

This commit is contained in:
2024-07-01 18:10:43 +08:00
parent 2af4c4d44e
commit 7bf66ab106
15 changed files with 518 additions and 3 deletions

View File

@@ -19,6 +19,9 @@ import cn.ysk.cashier.base.BaseMapper;
import cn.ysk.cashier.pojo.product.TbProduct;
import cn.ysk.cashier.dto.product.TbProductDto;
import cn.ysk.cashier.utils.ListUtil;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
@@ -49,4 +52,7 @@ 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

@@ -0,0 +1,9 @@
package cn.ysk.cashier.mapper.product;
import cn.ysk.cashier.pojo.product.TbProductStockDetail;
import cn.ysk.cashier.pojo.product.TbProductStocktakin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
public interface TbProductStocktakinRepository extends JpaRepository<TbProductStocktakin, Integer>, JpaSpecificationExecutor<TbProductStocktakin> {
}