ref: 调整包结构,dao相关代码迁移至common

dev-lensfrex
lensfrex 7 months ago
parent bacf17398b
commit 5070304883
Signed by: lensfrex
GPG Key ID: B1E395B3C6CA0356
  1. 2
      rition-center/common/src/main/java/rition/common/data/dao/BatchSQLInjector.java
  2. 2
      rition-center/common/src/main/java/rition/common/data/dao/mapper/MetricRecordMapper.java
  3. 2
      rition-center/common/src/main/resources/mapper/MetricRecordMapper.xml
  4. 2
      rition-center/service/collector/src/main/java/rition/service/collector/MetricCollectingService.java
  5. 8
      rition-center/service/collector/src/main/java/rition/service/collector/configure/MybatisPlusConfigure.java

@ -1,4 +1,4 @@
package rition.service.collector.dao;
package rition.common.data.dao;
import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;

@ -1,4 +1,4 @@
package rition.service.collector.dao.mapper;
package rition.common.data.dao.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="rition.service.collector.dao.mapper.MetricRecordMapper">
<mapper namespace="rition.common.data.dao.mapper.MetricRecordMapper">
</mapper>

@ -7,7 +7,7 @@ import org.springframework.stereotype.Service;
import rition.common.data.dto.MetricDataDto;
import rition.common.data.entity.MetricRecordEntity;
import rition.service.collector.configure.CollectorServiceKafkaConfigure;
import rition.service.collector.dao.mapper.MetricRecordMapper;
import rition.common.data.dao.mapper.MetricRecordMapper;
import java.time.Instant;
import java.util.ArrayList;

@ -1,8 +0,0 @@
package rition.service.collector.configure;
import org.springframework.context.annotation.Configuration;
@Configuration
public class MybatisPlusConfigure {
}
Loading…
Cancel
Save