src/main/java/org/springblade/modules/stockfactory/mapper/StockfactoryMapper.java
@@ -16,6 +16,7 @@ */ package org.springblade.modules.stockfactory.mapper; import org.apache.ibatis.annotations.Param; import org.springblade.modules.stockfactory.entity.Stockfactory; import org.springblade.modules.stockfactory.vo.StockfactoryVO; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -37,7 +38,7 @@ * @param stockfactory * @return */ List<StockfactoryVO> selectStockfactoryPage(IPage page, StockfactoryVO stockfactory); List<StockfactoryVO> selectStockfactoryPage(IPage page, @Param("stockfactory") StockfactoryVO stockfactory); List<StockfactoryVO> selectStockfactoryPages( StockfactoryVO stockfactory); List selectStockFa(); List selectStockIn(String name); src/main/java/org/springblade/modules/stockfactory/mapper/StockfactoryMapper.xml
@@ -23,6 +23,12 @@ select * from sys_stockfactory where is_deleted = 0 <if test="stockfactory.agriculturalName !=null and stockfactory.agriculturalName!= '' "> AND agricultural_name LIKE CONCAT('%',#{stockfactory.agriculturalName},'%') </if> <if test="stockfactory.type != null and stockfactory.type !='' or stockfactory.type ==0 "> AND type = #{stockfactory.type} </if> </select> <select id="selectStockfactoryPages" resultMap="stockfactoryResultMap"> select *