Commit 14d216cd authored by renjie's avatar renjie

店铺bug

parent eee0fbd5
......@@ -37,7 +37,7 @@ public interface IpResourceRepository extends MongoRepository<IpResource, String
List<IpResource> findByValidTimeBetweenAndIsDeleted(long beginTime, long endTime, boolean isDeleted);
IpResource findByShopIdAndIsDeleted(String shopId, boolean isDeleted);
IpResource findFirstByShopIdAndIsDeleted(String shopId, boolean isDeleted);
int countByStatusAndIdInAndIsDeleted(int status, List<String> ipIds, boolean isDeleted);
......
......@@ -65,7 +65,7 @@ public class IpAndShopServiceImpl implements IpAndShopService {
if (ipResource == null)
throw new ClientRequestException(BrowserErrorCode.IPNOTEXIST);
IpResource bind = ipResourceRepository.findByShopIdAndIsDeleted(shopId, false);
IpResource bind = ipResourceRepository.findFirstByShopIdAndIsDeleted(shopId, false);
if (bind != null) {
shopRequestDto.setShopId(shopId);
shopRequestDto.setIpId(ipResource.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment