zrj
2024-11-05 b8f2c19b869986efa519f1846b63b11378147861
src/main/java/org/springblade/modules/yw/mapper/EmergencySuppliesMapper.xml
@@ -43,6 +43,14 @@
        <if test="emergencySupplies.type!=null">
            and yes.type = #{emergencySupplies.type}
        </if>
        <if test="emergencySupplies.ownership!=null">
            <if test="emergencySupplies.ownership==1">
                and yes.firm_id is null
            </if>
            <if test="emergencySupplies.ownership==2">
                and yes.firm_id is not null
            </if>
        </if>
    </select>
</mapper>