门店号管理

dev_0531
LegnaYet 5 years ago
parent 6d57757054
commit a2ae560efd

@ -1210,7 +1210,7 @@ public class StoreEmployeeService {
Map<String, Object> map = new HashMap<>();
map.put("code", poiStore.getCode());
List<PoiStore> list = poiStoreDOMapper.selectByMap(map);
if (CollectionUtils.isNotEmpty(list) && list.size() > 1) {
if (CollectionUtils.isNotEmpty(list) && list.size() > 0) {
throw new KiisooException(Constants.MSG_STORE_HAS, Constants.CODE_STORE_HAS);
}
@ -1241,7 +1241,7 @@ public class StoreEmployeeService {
domainEntityMap.put("entity_id", poiStore.getId());
domainEntityMap.put("domain_id", domain.getDomainId());
List<PrivilageDomainEntityDO> domainEntityList = privilageDomainEntityDOMapper.selectByMap(domainEntityMap);
if (domainEntityList.size() > 1) {
if (domainEntityList.size() > 0) {
throw new KiisooException(Constants.MSG_DOMAIN_ENTITY_HAS, Constants.CODE_DOMAIN_ENTITY_HAS);
}

Loading…
Cancel
Save