Administrator
2021-08-12 d4e35652a8a879c9e53016eeb1e3e9018c716502
src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml
@@ -274,4 +274,24 @@
        and sa.exam_id is not null
    </select>
    <!--查询保安员个人报名信息-->
    <select id="getSecurityApplyDetail" resultType="org.springblade.modules.apply.vo.ApplyVO">
        select
        bu.id userId,bu.real_name realName,bu.sex,bu.is_apply isApply,
        MAX(sa.id) id
        from
        blade_user bu
        left join
        sys_apply sa
        on
        sa.user_id = bu.id
        where 1=1
        <if test="apply.userId!=null and apply.userId!=''">
            and bu.id = #{apply.userId}
        </if>
        <if test="apply.id!=null and apply.id!=''">
            and sa.id = #{apply.id}
        </if>
    </select>
</mapper>