吉安感知网项目-后端
linwei
2026-04-08 e4fa2b76071f53ad9baeb84c538ad66a6d6b0952
opt: 日志查询优化
1 files modified
7 ■■■■ changed files
drone-ops/drone-log/src/main/java/org/sxkj/core/log/mapper/OperationLogMapper.xml 7 ●●●● patch | view | raw | blame | history
drone-ops/drone-log/src/main/java/org/sxkj/core/log/mapper/OperationLogMapper.xml
@@ -35,11 +35,8 @@
            <if test="param.createBy!=null and param.createBy!=''">
                and create_by like concat('%',#{param.createBy},'%')
            </if>
            <if test="param.startTime!=null and param.startTime!=''">
                and date_format(create_time,'%Y-%m-%d') &gt;= #{param.startTime}
            </if>
            <if test="param.endTime!=null and param.endTime!=''">
                and date_format(create_time,'%Y-%m-%d') &lt;= #{param.endTime}
            <if test="param.startTime!=null and param.startTime!='' and param.endTime!=null and param.endTime!=''">
                and create_time BETWEEN #{param.startTime}::timestamp AND #{param.endTime}::timestamp
            </if>
        </where>
    </select>