|
|
@ -231,7 +231,7 @@ public class CustomerFootBarServiceImpl extends BaseServiceImpl<CustomerFootBarD |
|
|
|
|
|
|
|
@Override |
|
|
|
public void deleteFootBar(String id) { |
|
|
|
baseDao.deleteById(id); |
|
|
|
baseDao.physicsDeleteById(id); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -251,8 +251,8 @@ public class CustomerFootBarServiceImpl extends BaseServiceImpl<CustomerFootBarD |
|
|
|
|
|
|
|
private void validateBeforeUpdate(CustomerFootBarFormDTO form) { |
|
|
|
synchronized (this) { |
|
|
|
int uniqueCount2 = baseDao.count4Unique(form.getCustomerId(), form.getAppType(), null, form.getBarName()); |
|
|
|
if (uniqueCount2 > 0) { |
|
|
|
CustomerFootBarEntity entity = baseDao.getByAppTypeAndBarNameOfCustomer(form.getCustomerId(), form.getAppType(), form.getBarName()); |
|
|
|
if (entity != null && entity.getId().equals(form.getId())) { |
|
|
|
throw new RenException(EpmetErrorCode.OPER_CUSTOMER_FOOTBAR_EXISTS.getCode(), |
|
|
|
EpmetErrorCode.OPER_CUSTOMER_FOOTBAR_EXISTS.getMsg()); |
|
|
|
} |
|
|
|