zf
2023-09-26 185a3f75ae931a0e0a6a8781cae9029adb1c9bbf
exam-system/src/main/resources/mapper/noncoalmine/ViolationRegistrationMapper.xml
@@ -32,9 +32,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>