From 42f542954978985c071861af6a0d27389949d015 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 01 三月 2024 09:40:42 +0800
Subject: [PATCH] 实体类添加字段
---
north-glass-erp/src/main/java/com/example/erp/mapper/sd/ProductMapper.java | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/north-glass-erp/src/main/java/com/example/erp/mapper/sd/ProductMapper.java b/north-glass-erp/src/main/java/com/example/erp/mapper/sd/ProductMapper.java
index 6bc2b6a..6880c20 100644
--- a/north-glass-erp/src/main/java/com/example/erp/mapper/sd/ProductMapper.java
+++ b/north-glass-erp/src/main/java/com/example/erp/mapper/sd/ProductMapper.java
@@ -1,11 +1,20 @@
package com.example.erp.mapper.sd;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.erp.entity.sd.Product;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
-public interface ProductMapper {
- List<Product> defaultProduct();
+public interface ProductMapper extends BaseMapper<Product> {
+ List<Product> defaultProduct(@Param("offset") Integer offset,
+ @Param("pageSize") Integer pageSiz,
+ @Param("glassTypeId") String glassTypeId,
+ @Param("product") Product product);
+
+ Integer getPageTotal(Integer offset, Integer pageSize, String glassTypeId, Product product);
+
+ boolean updateProductStateById(Integer id,Integer state);
}
--
Gitblit v1.8.0