zrj
2024-11-01 1faef239d9f6d7a5b0e19588de99ac45cad82a2e
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>