代码优化

master
rong.liu 2 years ago
parent 3d168c196e
commit 181e7fd5f1
  1. 2
      src/main/java/com/huoran/iasf/service/impl/SysContentServiceImpl.java

@ -44,7 +44,7 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont
if (sysContent != null) {
if (content.getId() != null) {
//判断为编辑情况下,如果编辑的id与查询出来的一致不提示
if (content.getId() == content.getId()) {
if (content.getId().equals(content.getId())) {
return true;
}
}

Loading…
Cancel
Save