智慧农业后台管理
guoshilong
2022-09-15 75a48cf624bb06044207a2bc9b1310c326469a29
src/main/java/org/springblade/modules/processInv/mapper/ProcessInvMapper.xml
@@ -26,7 +26,7 @@
        LEFT JOIN sys_strain strain ON strain.id = inv.strain_id
        LEFT JOIN sys_farm_product_stock fps ON inv.fps_id = fps.id
        LEFT JOIN sys_land land ON land.id = fps.land_id
        where inv.is_deleted = 0
        where inv.is_deleted = 0 AND inv.product_inventory_num != 0
        <if test="processInv.fpsId != null and processInv.fpsId != ''">
            AND inv.fps_id = #{processInv.fpsId}
        </if>
@@ -38,13 +38,13 @@
    <select id="selectBySPId" resultType="org.springblade.modules.processInv.entity.ProcessInv">
        SELECT id,strain_id,product_id,product_inventory_num,create_time,update_user,update_time,status,is_deleted
        FROM sys_process_inv
        WHERE is_deleted = 0 AND strain_id = #{strainId} AND product_id = #{productId}
        WHERE is_deleted = 0 AND strain_id = #{strainId} AND product_id = #{productId} AND fps_id = #{fpsId}
    </select>
    <select id="selectBySFId" resultType="org.springblade.modules.processInv.entity.ProcessInv">
        SELECT id,strain_id,product_id,product_inventory_num,create_time,update_user,update_time,status,is_deleted
        FROM sys_process_inv
        WHERE is_deleted = 0 AND strain_id = #{strainId} AND product_id = #{fpsId}
        WHERE is_deleted = 0 AND strain_id = #{strainId} AND fps_id = #{fpsId}
    </select>
    <insert id="add">