Commit be00bd00 by baochunxin

#G:获取设备为空返回 状态码3000

parent c1ef26fd
...@@ -64,7 +64,11 @@ public class EquipmentLeaseController { ...@@ -64,7 +64,11 @@ public class EquipmentLeaseController {
LambdaQueryWrapper<SchoolEquipmentLedger> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<SchoolEquipmentLedger> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(SchoolEquipmentLedger::getEncode,encode); wrapper.eq(SchoolEquipmentLedger::getEncode,encode);
SchoolEquipmentLedger one = iEquipmentService.getOne(wrapper); SchoolEquipmentLedger one = iEquipmentService.getOne(wrapper);
return AjaxResult.success(one); if (one==null){
return new AjaxResult(3000,"设备信息未找到");
}else {
return AjaxResult.success(one);
}
} }
/** /**
......
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