Commit 5bf50b1b authored by tianyiming's avatar tianyiming

修改一码通电梯96333码校验规则

parent f8e871d5
...@@ -339,8 +339,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -339,8 +339,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
@Override @Override
public List<CategoryOtherInfo> checkCode(Map<String, Object> obj) { public List<CategoryOtherInfo> checkCode(Map<String, Object> obj) {
List<CategoryOtherInfo> codeList = categoryOtherInfoMapper.selectList(new QueryWrapper<CategoryOtherInfo>().eq("CODE96333", obj.get("code"))); List<CategoryOtherInfo> codeList;
return codeList; if("save".equals(obj.get("type"))){
codeList = categoryOtherInfoMapper.selectList(new QueryWrapper<CategoryOtherInfo>().eq("CODE96333", obj.get("CODE96333")));
} else {
codeList = categoryOtherInfoMapper.selectList(new QueryWrapper<CategoryOtherInfo>().ne("RECORD",obj.get("id")).eq("CODE96333", obj.get("CODE96333")));
}
return codeList;
} }
/** /**
......
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