[improvement](chat) fix checkstyle error in CollectService (#439)

This commit is contained in:
lexluo09
2023-11-28 00:39:22 +08:00
committed by GitHub
parent 02b9dc6947
commit 7c7ccadcfd
5 changed files with 25 additions and 31 deletions

View File

@@ -5,27 +5,21 @@ import com.tencent.supersonic.auth.api.authentication.pojo.User;
import com.tencent.supersonic.semantic.model.domain.CollectService; import com.tencent.supersonic.semantic.model.domain.CollectService;
import com.tencent.supersonic.semantic.model.domain.dataobject.CollectDO; import com.tencent.supersonic.semantic.model.domain.dataobject.CollectDO;
import com.tencent.supersonic.semantic.model.infrastructure.mapper.CollectMapper; import com.tencent.supersonic.semantic.model.infrastructure.mapper.CollectMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
@Slf4j @Slf4j
@Service @Service
public class CollectServiceImpl implements CollectService { public class CollectServiceImpl implements CollectService {
public static final String type = "metric";
@Resource @Resource
private CollectMapper collectMapper; private CollectMapper collectMapper;
String type = "metric";
@Override @Override
public Boolean createCollectionIndicators(User user, Long id) { public Boolean createCollectionIndicators(User user, Long id) {
CollectDO collectDO = new CollectDO(); CollectDO collectDO = new CollectDO();