|
|
@ -134,7 +134,7 @@ public class CustomerFootBarServiceImpl extends BaseServiceImpl<CustomerFootBarD |
|
|
|
CustomerFootBarEntity entity = new CustomerFootBarEntity(); |
|
|
|
entity.setAppType(form.getAppType()); |
|
|
|
entity.setCustomerId("default"); // 只能为默认客户创建
|
|
|
|
entity.setBarKey(form.getBarKey()); |
|
|
|
entity.setBarKey(form.getBarKey().trim()); |
|
|
|
entity.setBarName(form.getBarName()); |
|
|
|
entity.setIconPath(form.getIconPath()); |
|
|
|
entity.setPageTitle(form.getPageTitle()); |
|
|
@ -287,7 +287,7 @@ public class CustomerFootBarServiceImpl extends BaseServiceImpl<CustomerFootBarD |
|
|
|
*/ |
|
|
|
private void validateBeforeCreate(CustomerFootBarFormDTO form) { |
|
|
|
synchronized (this) { |
|
|
|
int uniqueCount1 = baseDao.count4Unique(form.getCustomerId(), form.getAppType(), form.getBarKey(), null); |
|
|
|
int uniqueCount1 = baseDao.count4Unique(form.getCustomerId(), form.getAppType(), form.getBarKey().trim(), null); |
|
|
|
int uniqueCount2 = baseDao.count4Unique(form.getCustomerId(), form.getAppType(), null, form.getBarName()); |
|
|
|
if (uniqueCount1 > 0 || uniqueCount2 > 0) { |
|
|
|
throw new RenException(EpmetErrorCode.OPER_CUSTOMER_FOOTBAR_EXISTS.getCode(), |
|
|
|