fix(equipment): 修复设备保养配置查询逻辑
This commit is contained in:
parent
ef8033c698
commit
74f3f429c0
@ -79,6 +79,7 @@ public class EqMainConfigServiceImpl extends ServiceImpl<EqMainConfigMapper, EqM
|
|||||||
public EqMainConfigEntity getInfo(Integer id) {
|
public EqMainConfigEntity getInfo(Integer id) {
|
||||||
QueryWrapper<EqMainConfigEntity> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<EqMainConfigEntity> queryWrapper = new QueryWrapper<>();
|
||||||
queryWrapper.lambda().eq(EqMainConfigEntity::getId, id);
|
queryWrapper.lambda().eq(EqMainConfigEntity::getId, id);
|
||||||
|
queryWrapper.lambda().eq(EqMainConfigEntity::getDeleteMark, 0);
|
||||||
return this.getOne(queryWrapper);
|
return this.getOne(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,6 +104,10 @@ 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<>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user