Commit ed747c9d authored by Quxl's avatar Quxl
parents b471704f e8aa6b43
...@@ -629,7 +629,7 @@ public class FilmServiceImpl implements FilmService { ...@@ -629,7 +629,7 @@ public class FilmServiceImpl implements FilmService {
@Override @Override
public List<Map<String, Object>> queryMonitorUploadList(String keyword,Integer upload_state, Page page) { 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); 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()); 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