|
@ -76,6 +76,7 @@ public class MedicineWarrayService extends BaseJpaService<Mediicinewarray, Medii
|
|
|
map.put("logTime",null);
|
|
|
map.put("type",null);
|
|
|
}
|
|
|
maps.put("networkMap",map);
|
|
|
}
|
|
|
String countSql = " select " +
|
|
|
" COUNT(DISTINCT (d.id)) as count " +
|
|
@ -348,7 +349,7 @@ public class MedicineWarrayService extends BaseJpaService<Mediicinewarray, Medii
|
|
|
" AND t.log_time <= '" + endTime + "'";
|
|
|
}
|
|
|
|
|
|
sql = sql + conditionSql;
|
|
|
sql = sql + conditionSql +" order by t.log_time desc ";
|
|
|
|
|
|
List<Map<String,Object>> list=null;
|
|
|
list = hibenateUtils.createSQLQuery(sql,page,size);
|
|
@ -402,7 +403,6 @@ public class MedicineWarrayService extends BaseJpaService<Mediicinewarray, Medii
|
|
|
" t.duration as duration,\n" +
|
|
|
" t.exceed as exceed,\n" +
|
|
|
" t.humidity as humidity,\n" +
|
|
|
" sum(t.other_couont+t.plus_couont+t.ship_couont) as total,"+
|
|
|
" t.other_couont as otherCouont,\n" +
|
|
|
" t.plus_couont as plusCouont,\n" +
|
|
|
" t.ship_couont as shipCouont,\n" +
|
|
@ -438,7 +438,7 @@ public class MedicineWarrayService extends BaseJpaService<Mediicinewarray, Medii
|
|
|
" AND t.log_time <= '" + endTime + "'";
|
|
|
}
|
|
|
|
|
|
sql = sql + conditionSql;
|
|
|
sql = sql + conditionSql+" order by t.log_time desc ";
|
|
|
|
|
|
List<Map<String,Object>> list=null;
|
|
|
list = hibenateUtils.createSQLQuery(sql,page,size);
|
|
@ -452,9 +452,6 @@ public class MedicineWarrayService extends BaseJpaService<Mediicinewarray, Medii
|
|
|
conditionSql;
|
|
|
Logger.getAnonymousLogger().info("finalCountSql="+countSql);
|
|
|
int count = jdbcTemplate.queryForObject(countSql,Integer.class);
|
|
|
for (Map<String,Object> map:list){
|
|
|
|
|
|
}
|
|
|
result.put("count", count);
|
|
|
result.put("msg", JavaBeanUtils.getInstance().mapListJson(list));
|
|
|
return result;
|
|
@ -798,8 +795,16 @@ public class MedicineWarrayService extends BaseJpaService<Mediicinewarray, Medii
|
|
|
Float temperatureLow = Float.parseFloat(mediicinedevice.getWarningTemperatureLow());
|
|
|
if (mediicinedevice.getTemperaturecontrol().equalsIgnoreCase("1")){
|
|
|
if(temperature!=null&&(temperature>temperatureHeight||temperature<temperatureLow)){
|
|
|
type="温度异常";
|
|
|
if (StringUtils.isEmpty(type)){
|
|
|
type += "温度异常";
|
|
|
}else {
|
|
|
type +="温度异常";
|
|
|
}
|
|
|
}else {
|
|
|
type+="温度正常";
|
|
|
}
|
|
|
}else {
|
|
|
type+="温度正常";
|
|
|
}
|
|
|
|
|
|
}else {
|
|
@ -816,7 +821,11 @@ public class MedicineWarrayService extends BaseJpaService<Mediicinewarray, Medii
|
|
|
}else {
|
|
|
type +="/湿度异常";
|
|
|
}
|
|
|
}else {
|
|
|
type+="/湿度正常";
|
|
|
}
|
|
|
}else {
|
|
|
type+="/湿度正常";
|
|
|
}
|
|
|
}else {
|
|
|
type+="/湿度正常";
|