From c27a685ed122e3f2934eba2c3d77bc2e1312a4cf Mon Sep 17 00:00:00 2001
From: 你好啊 <1536384743@qq.com>
Date: 星期五, 09 八月 2024 11:19:41 +0800
Subject: [PATCH] 修改当传入数据为空时,该=改null 为0
---
north-glass-erp/src/main/java/com/example/erp/mapper/sd/ProductMapper.java | 9 ++++++++-
1 files changed, 8 insertions(+), 1 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 f06dbb8..e0adbdd 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,5 +1,6 @@
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;
@@ -7,11 +8,17 @@
import java.util.List;
@Mapper
-public interface ProductMapper {
+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);
+
+ List<Product> selectProduct(@Param("productName") String productName,@Param("productNameValue") String productNameValue);
+
+ List<Product> selectProductId(@Param("productName") String productName,@Param("productNameValue") String productNameValue,@Param("id") Long id);
}
--
Gitblit v1.8.0