新增盘点接口

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

@@ -2,8 +2,16 @@ package cn.ysk.cashier.mybatis.mapper;
import cn.ysk.cashier.pojo.product.TbProductSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
public interface TbProducSkutMapper extends BaseMapper<TbProductSku> {
}
@Select("select * from tb_product_sku where id=#{id} and product_id=#{productId}")
TbProductSku selectByProIdAndId(@Param("id") Integer id, @Param("productId") Integer productId);
@Update("update tb_product_sku set stock_number=#{stocktakinNum} where id=#{id} and stock_number=#{stockNumber}")
Integer updateStock(@Param("id") Integer id,@Param("stockNumber") Double stockNumber,@Param("stocktakinNum") Integer stocktakinNum);
}