更新操作日志导出可选择部分导出

This commit is contained in:
panshuling321 2022-03-29 10:18:50 +08:00
parent 386e5c4060
commit 9ffb5dc495
2 changed files with 13 additions and 0 deletions

View File

@ -80,6 +80,16 @@ public class SysOperLog extends BaseEntity
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date operTime; private Date operTime;
private String ids;
public String getIds() {
return ids;
}
public void setIds(String ids) {
this.ids = ids;
}
public Long getOperId() public Long getOperId()
{ {
return operId; return operId;

View File

@ -59,6 +59,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(oper_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d') and date_format(oper_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if> </if>
<if test="ids != null and ids != ''">
and find_in_set(oper_id, #{ids})
</if>
</where> </where>
order by oper_id desc order by oper_id desc
</select> </select>