huangzhen
2023-09-26 7a393cea127859281a4edd08d6f75630a8d429a5
exam-system/src/main/resources/mapper/noncoalmine/WorkRegistrationMapper.xml
@@ -31,9 +31,12 @@
        <if test="query.idCard != null and query.idCard != ''">
            and id_card like concat('%', #{query.idCard}, '%')
        </if>
        <if test="query.operateTypeId != null and query.operateTypeId != 0">
        <if test="query.operateTypeId != null">
            and (operate_type_id = #{query.operateTypeId} OR operate_type_id IN ( SELECT t.id FROM sys_operate_type t WHERE find_in_set(#{query.operateTypeId}, ancestors)))
        </if>
        <if test="query.isCm != null">
            and is_cm = #{query.isCm}
        </if>
        order by create_time desc
    </select>