Commit d1d160c8 authored by 张永's avatar 张永

1

parent 9f6d1504
......@@ -629,7 +629,7 @@ public class FilmServiceImpl implements FilmService {
@Override
public List<Map<String, Object>> queryMonitorUploadList(String keyword,Integer upload_state, Page page) {
SqlWhere w = new SqlWhere().lk(new String[]{"file_name", "film_id"}, keyword).eq("upload_state", upload_state);
String sql = "select * from fc_film_upload "+ StringUtil.join(" and ", " where ", "", "", w.getStringList())+" order by FIELD(`upload_state`,1,0,2,3) ";
String sql = "select * from fc_film_upload "+ StringUtil.join(" and ", " where ", "", "", w.getStringList())+" order by FIELD(`upload_state`,1,0,2,3,4),create_time desc ";
return jdbcTemplate.limit(sql, page, w.getObjectArray());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment