|
|
@ -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()); |
|
|
|
} |
|
|
|