zrj
2024-11-08 6d02d0adce5004ef244fc8e4f0186ed922b20e36
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>