|
|
@@ -67,6 +67,12 @@ public class StoreInFacadeImpl implements StoreInFacade {
|
|
|
if (resultMap != null) {
|
|
|
return resultMap;
|
|
|
}
|
|
|
+ StoreIn storeIn = storeInDao.findByStoreName(newStoreInfo.getStoreName());
|
|
|
+ if (!StringUtils.isEmpty(storeIn)) {
|
|
|
+ if (!storeIn.getEnUU().equals(newStoreInfo.getEnterprise().getUu())) {
|
|
|
+ return new ResultMap(CodeType.NOT_PERMIT, "该名称店铺名称已经存在,请您更换一个店铺名称进行更改");
|
|
|
+ }
|
|
|
+ }
|
|
|
Set<Qualification> qualifications = store.getQualifications();
|
|
|
if (!CollectionUtils.isEmpty(qualifications)) {
|
|
|
Iterator<Qualification> iterator = qualifications.iterator();
|