|
|
@ -72,7 +72,7 @@ public class HighMerchantStoreServiceImpl implements HighMerchantStoreService { |
|
|
|
public void deleteMerchantStore(Long id) { |
|
|
|
public void deleteMerchantStore(Long id) { |
|
|
|
// 查询门店
|
|
|
|
// 查询门店
|
|
|
|
HighMerchantStore store = highMerchantStoreMapper.selectByPrimaryKey(id); |
|
|
|
HighMerchantStore store = highMerchantStoreMapper.selectByPrimaryKey(id); |
|
|
|
if (store != null) { |
|
|
|
if (store == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.MERCHANT_STORE_NOF_FOUND, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.MERCHANT_STORE_NOF_FOUND, ""); |
|
|
|
} |
|
|
|
} |
|
|
|
store.setStatus(0); |
|
|
|
store.setStatus(0); |
|
|
@ -126,9 +126,11 @@ public class HighMerchantStoreServiceImpl implements HighMerchantStoreService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(map, "telephone"))) { |
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(map, "telephone"))) { |
|
|
|
criteria.andTelephoneEqualTo("%" + MapUtils.getString(map, "telephone") + "%"); |
|
|
|
criteria.andTelephoneEqualTo(MapUtils.getString(map, "telephone")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
criteria.andStatusEqualTo(1); |
|
|
|
|
|
|
|
|
|
|
|
example.setOrderByClause("create_time desc"); |
|
|
|
example.setOrderByClause("create_time desc"); |
|
|
|
return highMerchantStoreMapper.selectByExample(example); |
|
|
|
return highMerchantStoreMapper.selectByExample(example); |
|
|
|
} |
|
|
|
} |
|
|
|