package com.zcloud.personnel.positioning.persistence.repository.impl;

import com.zcloud.personnel.positioning.persistence.mapper.FindsSyncStateMapper;
import com.zcloud.personnel.positioning.persistence.repository.FindsSyncStateRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
@RequiredArgsConstructor
public class FindsSyncStateRepositoryImpl implements FindsSyncStateRepository {
    private final FindsSyncStateMapper mapper;
    @Override public int complete(String type, Map<String, Object> params) { return mapper.complete(type, params); }
    @Override public int fail(String type, Map<String, Object> params) { return mapper.fail(type, params); }
    @Override public void recordMapping(String type, Map<String, Object> params) { mapper.recordMapping(type, params); }
    @Override public int clearMapping(String type, Map<String, Object> params) { return mapper.clearMapping(type, params); }
    @Override public boolean isCurrent(String type, Map<String, Object> params) { return mapper.countCurrent(type, params) > 0; }
    @Override public int deleteCurrent(String type, Map<String, Object> params) { return mapper.deleteCurrent(type, params); }
    @Override public void recordAreaFenceMapping(Map<String, Object> params) { mapper.recordAreaFenceMapping(params); }
}
