Browse Source

修复barname判断错误

master
wxz 5 years ago
parent
commit
8d228f870b
  1. 2
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/CustomerFootBarServiceImpl.java

2
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/CustomerFootBarServiceImpl.java

@ -252,7 +252,7 @@ public class CustomerFootBarServiceImpl extends BaseServiceImpl<CustomerFootBarD
private void validateBeforeUpdate(CustomerFootBarFormDTO form) {
synchronized (this) {
CustomerFootBarEntity entity = baseDao.getByAppTypeAndBarNameOfCustomer(form.getCustomerId(), form.getAppType(), form.getBarName());
if (entity != null && entity.getId().equals(form.getId())) {
if (entity != null && !entity.getId().equals(form.getId())) {
throw new RenException(EpmetErrorCode.OPER_CUSTOMER_FOOTBAR_EXISTS.getCode(),
EpmetErrorCode.OPER_CUSTOMER_FOOTBAR_EXISTS.getMsg());
}

Loading…
Cancel
Save