|
@@ -22,6 +22,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -73,7 +74,12 @@ public class EnvDataServiceImpl extends ServiceImpl<EnvDataMapper, EnvData> impl
|
|
|
|
|
|
//今日查询
|
|
|
if ("1".equals(type)){
|
|
|
- envDataList = envDataMapper.listDayDetail(farmId,unitId);
|
|
|
+ if (unitId.equals("95")){
|
|
|
+ envDataList = envDataMapper.listDetail(farmId,unitId);
|
|
|
+ Collections.reverse(envDataList);
|
|
|
+ }else {
|
|
|
+ envDataList = envDataMapper.listDayDetail(farmId,unitId);
|
|
|
+ }
|
|
|
}
|
|
|
//本周查询
|
|
|
if ("2".equals(type)){
|