Commit be00bd00 by baochunxin

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

parent c1ef26fd
...@@ -64,8 +64,12 @@ public class EquipmentLeaseController { ...@@ -64,8 +64,12 @@ 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);
if (one==null){
return new AjaxResult(3000,"设备信息未找到");
}else {
return AjaxResult.success(one); 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