智慧农业后台管理
Administrator
2022-05-19 59b97facd0e3b24dbab21ebbebb7f4b19e8e87f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.farmplant.mapper.FarmProductStockMapper">
 
    <!--自定义查询农产品库存分页数据-->
    <select id="selectFarmProductStockPage" resultType="org.springblade.modules.farmplant.vo.FarmProductStockVO">
        select * from sys_farm_product_stock
        where 1=1
        <if test="farmProductStock.strainId!=null and farmProductStock.strainId!=''">
            and strain_id = #{farmProductStock.strainId}
        </if>
        <if test="farmProductStock.leaves!=null and farmProductStock.leaves!=''">
            and leaves = #{farmProductStock.leaves}
        </if>
    </select>
</mapper>