Commit 99e1d262 authored by 邢磊's avatar 邢磊

*)修改装备全部导出报错

parent f8d83515
...@@ -225,11 +225,11 @@ public class AnalysisResultServiceImpl extends ServiceImpl<AnalysisResultMapper, ...@@ -225,11 +225,11 @@ public class AnalysisResultServiceImpl extends ServiceImpl<AnalysisResultMapper,
JSONArray deviceIds = map.getJSONArray("deviceIds"); JSONArray deviceIds = map.getJSONArray("deviceIds");
String samplingTime = map.getString("samplingTime"); String samplingTime = map.getString("samplingTime");
String analysisResult = map.getString("analysisResult"); String analysisResult = map.getString("analysisResult");
if (ValidationUtil.isEmpty(deviceIds)){
throw new BadRequest("部件编码不能为空.");
}
Page<AnalysisResult> page = new Page<>(size, size); Page<AnalysisResult> page = new Page<>(size, size);
if (ValidationUtil.isEmpty(deviceIds)){
return page;
}
LambdaQueryWrapper<AnalysisResult> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AnalysisResult> wrapper = new LambdaQueryWrapper<>();
wrapper.in(AnalysisResult::getDeviceId, deviceIds); wrapper.in(AnalysisResult::getDeviceId, deviceIds);
wrapper.isNotNull(AnalysisResult::getAnalysisResult); wrapper.isNotNull(AnalysisResult::getAnalysisResult);
......
...@@ -289,11 +289,6 @@ public class EquipmentDetailServiceImpl extends ServiceImpl<EquipmentDetailMappe ...@@ -289,11 +289,6 @@ public class EquipmentDetailServiceImpl extends ServiceImpl<EquipmentDetailMappe
return equipmentDetailMapper.getPref(id); return equipmentDetailMapper.getPref(id);
} }
@Override @Override
public String checkDelete(List<Long> ids) { public String checkDelete(List<Long> ids) {
String res = ""; String res = "";
...@@ -308,7 +303,6 @@ public class EquipmentDetailServiceImpl extends ServiceImpl<EquipmentDetailMappe ...@@ -308,7 +303,6 @@ public class EquipmentDetailServiceImpl extends ServiceImpl<EquipmentDetailMappe
@Override @Override
public List<DetailssAmountVO> getall() { public List<DetailssAmountVO> getall() {
return equipmentDetailMapper.getall(); return equipmentDetailMapper.getall();
} }
......
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
-- wlp.measure, -- wlp.measure,
wles.iot_code, wles.iot_code,
wled.equipment_id, wled.equipment_id,
wles.remark agencyName, wles.agency_name agencyName,
wled.equipment_name wled.equipment_name
FROM FROM
wl_equipment_detail wled wl_equipment_detail wled
......
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