|
@@ -38,40 +38,40 @@ public class EquoperationrecordServiceImpl extends ServiceImpl<Equoperationrecor
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<Map> getEquoperationrecordTope(String stId) throws Exception {
|
|
|
+ public List<Map> getEquoperationrecordTope(String stId,String wtId,String beginDate,String endDate) throws Exception {
|
|
|
|
|
|
|
|
|
|
|
|
String url = serverConfig.getUrl() + "/img/";
|
|
|
List<Map> maps = new ArrayList<>();
|
|
|
- List<Map> list = equoperationrecordMapper.selectEquoperationrecordTop4(stId);
|
|
|
+ List<Map> list = equoperationrecordMapper.selectEquoperationrecordTop4(stId,wtId,beginDate,endDate);
|
|
|
for (Map e : list) {
|
|
|
- Map map = new HashMap();
|
|
|
- map.put("id", e.get("id"));
|
|
|
- map.put("starttime", e.get("starttime"));
|
|
|
- map.put("endtime", e.get("endtime"));
|
|
|
- map.put("type", e.get("type"));
|
|
|
- map.put("tolocdes", e.get("tolocdes"));
|
|
|
- map.put("problem", e.get("problem"));
|
|
|
- map.put("solveway", e.get("solveway"));
|
|
|
+// Map map = new HashMap();
|
|
|
+// map.put("id", e.get("id"));
|
|
|
+// map.put("starttime", e.get("starttime"));
|
|
|
+// map.put("endtime", e.get("endtime"));
|
|
|
+// map.put("type", e.get("type"));
|
|
|
+// map.put("tolocdes", e.get("tolocdes"));
|
|
|
+// map.put("problem", e.get("problem"));
|
|
|
+// map.put("solveway", e.get("solveway"));
|
|
|
|
|
|
String labornum = e.get("labornum").toString().toLowerCase();
|
|
|
InputStream inputStream = this.getClass().getResourceAsStream("/static/img/"+labornum+".jpg");
|
|
|
if (null != inputStream){
|
|
|
- map.put("imgurl", url + labornum + ".jpg");
|
|
|
+ e.put("imgurl", url + labornum + ".jpg");
|
|
|
}else {
|
|
|
- map.put("imgurl", url +"null.jpg");
|
|
|
+ e.put("imgurl", url +"null.jpg");
|
|
|
}
|
|
|
- map.put("labornum", e.get("labornum"));
|
|
|
- map.put("laborname", e.get("laborname"));
|
|
|
- map.put("jobcode", e.get("jobcode"));
|
|
|
- map.put("employeetype", e.get("employeetype"));
|
|
|
- map.put("ticketnum", e.get("ticketnum"));
|
|
|
- map.put("wfshortname", e.get("wfshortname"));
|
|
|
- map.put("wfname", e.get("wfname"));
|
|
|
- maps.add(map);
|
|
|
+// map.put("labornum", e.get("labornum"));
|
|
|
+// map.put("laborname", e.get("laborname"));
|
|
|
+// map.put("jobcode", e.get("jobcode"));
|
|
|
+// map.put("employeetype", e.get("employeetype"));
|
|
|
+// map.put("ticketnum", e.get("ticketnum"));
|
|
|
+// map.put("wfshortname", e.get("wfshortname"));
|
|
|
+// map.put("wfname", e.get("wfname"));
|
|
|
+// maps.add(map);
|
|
|
}
|
|
|
- return maps;
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
|