zrj
2024-11-09 30fc3da6e5895ef3eae52dedd76ea4f2708d5596
src/main/java/org/springblade/modules/yw/mapper/EmergencySuppliesMapper.xml
@@ -24,7 +24,7 @@
        select
        yes.*,
        yfi.name as firmName,
        ys.per_in_cha as personInCha,ys.per_in_cha_pho as personInChaPhone,
        ys.per_in_cha as personInCha,ys.per_in_cha_pho as personInChaPhone,ys.address supAdd,
        bdb.dict_value as emeSupType,
        concat(yes.num,bdb1.dict_value) as numUnit
        from
@@ -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>