Commit ee2acc7b authored by 张永's avatar 张永

1

parent 50016f92
...@@ -621,7 +621,7 @@ public class FilmServiceImpl implements FilmService { ...@@ -621,7 +621,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());; String sql = "select * from fc_film_upload "+ StringUtil.join(" and ", " where ", "", "", w.getStringList())+" order by FIELD(`upload_state`,1,0,2,3) ";
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