智慧保安后台管理-外网项目备份
zrj
2024-06-20 50eea2862bde7c2400e20b85528fb0fac0fb7528
src/main/java/org/springblade/modules/directive/mapper/DirectiveMapper.xml
@@ -16,13 +16,19 @@
        where
        1=1
        <if test="directive.type!=null and directive.type!=''">
            and sll.type = #{directive.type}
            and sd.type = #{directive.type}
        </if>
        <if test="directive.startTime!=null and directive.startTime!=''">
            and sl.send_time &gt;= #{directive.startTime}
            and sd.send_time &gt;= #{directive.startTime}
        </if>
        <if test="directive.endTime!=null and directive.endTime!=''">
            and sl.send_time &lt;= #{directive.endTime}
            and sd.send_time &lt;= #{directive.endTime}
        </if>
        <if test="directive.sendDirectiveId!=null and directive.sendDirectiveId!=''">
            and sd.send_directive_id like concat('%', #{directive.sendDirectiveId},'%')
        </if>
        <if test="directive.receiveDirectiveIds!=null and directive.receiveDirectiveIds!=''">
            and sd.receive_directive_ids like concat('%', #{directive.receiveDirectiveIds},'%')
        </if>
    </select>