fix(equipment): 修复设备保养配置查询逻辑
This commit is contained in:
parent
232e22d8d5
commit
55de793986
@ -102,7 +102,7 @@ public class EqMainConfigController {
|
|||||||
return ActionResult.fail("更新数据失败:" + e.getMessage());
|
return ActionResult.fail("更新数据失败:" + e.getMessage());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return ActionResult.fail("更新失败,数据不存在");
|
return ActionResult.fail("该设备保养配置不存在,请刷新界面!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -104,11 +104,6 @@ public class EqMainConfigServiceImpl extends ServiceImpl<EqMainConfigMapper, EqM
|
|||||||
public String checkForm(EqMainConfigForm form, int i) {
|
public String checkForm(EqMainConfigForm form, int i) {
|
||||||
boolean isUp = ObjectUtil.isNotEmpty(form.getId());
|
boolean isUp = ObjectUtil.isNotEmpty(form.getId());
|
||||||
String countRecover = "";
|
String countRecover = "";
|
||||||
EqMainConfigEntity entity = getInfo(form.getId());
|
|
||||||
if (entity == null) {
|
|
||||||
return "该设备保养配置不存在,请刷新界面!";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ObjectUtil.isNotEmpty(form.getEqCode())) {
|
if (ObjectUtil.isNotEmpty(form.getEqCode())) {
|
||||||
LambdaQueryWrapper<EqMainConfigEntity> wrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<EqMainConfigEntity> wrapper = new LambdaQueryWrapper<>();
|
||||||
wrapper.eq(EqMainConfigEntity::getEqCode, form.getEqCode());
|
wrapper.eq(EqMainConfigEntity::getEqCode, form.getEqCode());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user