直接查数据导出xls/usr/bin/mysql --default-character-set=utf8 -uroot -p"123456" -e"select * from test_db.test_table">/tmp/1.xls或者select aid,username into outfile "/xxx.xls" from testtable where cid in($str);或者select aid,username f…
public String exportInfoFr(String path,String name,String startdate,String enddate,SysUser user){ List<Map<String, Object>> list = this.esEntPermitErrDao.findListObjectBySql("select 字段值1,字段值2,字段值3,字段值4,字段值5 from 表名 where 字段值2 in ('0','2')…