Commit 270b7f1e authored by hanbing's avatar hanbing

[update] databus配置classpath

parent 50a3a642
...@@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
* @author * @author
*/ */
@SpringBootApplication(scanBasePackages = {"net.wanji.web", "net.wanji.common"}) @SpringBootApplication(scanBasePackages = {"net.wanji.web", "net.wanji.databus", "net.wanji.common"})
@MapperScan(basePackages = {"net.wanji.web.mapper", "net.wanji.databus.dao.mapper"}) @MapperScan(basePackages = {"net.wanji.web.mapper", "net.wanji.databus.dao.mapper"})
@EnableTransactionManagement @EnableTransactionManagement
@EnableScheduling @EnableScheduling
......
...@@ -77,7 +77,9 @@ public class CrossConfigServiceImpl implements CrossConfigService { ...@@ -77,7 +77,9 @@ public class CrossConfigServiceImpl implements CrossConfigService {
public CrossConfigServiceImpl(CrossDirInfoMapper crossDirInfoMapper, LaneInfoMapper laneInfoMapper, public CrossConfigServiceImpl(CrossDirInfoMapper crossDirInfoMapper, LaneInfoMapper laneInfoMapper,
CrossLaneLightsMapper crossLaneLightsMapper, LaneSegmentMapper laneSegmentMapper, CrossLaneLightsMapper crossLaneLightsMapper, LaneSegmentMapper laneSegmentMapper,
CrossLightsMapper crossLightsMapper, CrossDataRealtimeMapper crossDataRealtimeMapper, CrossPhaseLightsMapper crossPhaseLightsMapper, CrossLightsMapper crossLightsMapper,
CrossDataRealtimeMapper crossDataRealtimeMapper,
CrossPhaseLightsMapper crossPhaseLightsMapper,
CrossTurnDataHistMapper crossTurnDataHistMapper, CrossTurnDataHistMapper crossTurnDataHistMapper,
CrossDirDataRealtimeMapper crossDirDataRealtimeMapper) { CrossDirDataRealtimeMapper crossDirDataRealtimeMapper) {
this.crossDirInfoMapper = crossDirInfoMapper; this.crossDirInfoMapper = crossDirInfoMapper;
......
...@@ -18,7 +18,7 @@ service: ...@@ -18,7 +18,7 @@ service:
mybatis: mybatis:
type-aliases-package: net.wanji.*.model type-aliases-package: net.wanji.*.model
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml mapper-locations: classpath*:mapper/*.xml,classpath:mapper/*/*.xml
configuration: configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
...@@ -43,7 +43,7 @@ jasypt: ...@@ -43,7 +43,7 @@ jasypt:
iv-generator-classname: org.jasypt.iv.NoIvGenerator iv-generator-classname: org.jasypt.iv.NoIvGenerator
mybatis-plus: mybatis-plus:
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml mapper-locations: classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage: net.wanji.web.entity typeAliasesPackage: net.wanji.web.entity
check-config-location: true check-config-location: true
configuration: configuration:
......
...@@ -36,7 +36,7 @@ server: ...@@ -36,7 +36,7 @@ server:
dir: logs dir: logs
mybatis-plus: mybatis-plus:
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml mapper-locations: classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage: net.wanji.datacenter.pojo.po typeAliasesPackage: net.wanji.datacenter.pojo.po
check-config-location: true check-config-location: true
configuration: configuration:
......
...@@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
* @date 2022/11/15 8:31 * @date 2022/11/15 8:31
*/ */
@SpringBootApplication(scanBasePackages = {"net.wanji.utc", "net.wanji.common"}) @SpringBootApplication(scanBasePackages = {"net.wanji.utc", "net.wanji.databus", "net.wanji.common"})
@EnableTransactionManagement @EnableTransactionManagement
@MapperScan(basePackages = {"net.wanji.utc.mapper", "net.wanji.databus.dao.mapper"}) @MapperScan(basePackages = {"net.wanji.utc.mapper", "net.wanji.databus.dao.mapper"})
@EnableScheduling @EnableScheduling
......
...@@ -36,7 +36,7 @@ server: ...@@ -36,7 +36,7 @@ server:
dir: logs dir: logs
mybatis-plus: mybatis-plus:
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml mapper-locations: classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage: net.wanji.utc.entity typeAliasesPackage: net.wanji.utc.entity
check-config-location: true check-config-location: true
configuration: configuration:
......
...@@ -31,9 +31,7 @@ ...@@ -31,9 +31,7 @@
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
cross_id, status, type, traffic_index, start_time, duration, is_unbalance, is_spillover, is_congestion, cross_id,status,type,traffic_index,start_time,duration,is_unbalance,is_spillover,is_congestion,unbalance_index,spillover_index,congestion_index,unbalance_dirs,spillover_dirs,congestion_dirs,flow,flow_rate,speed,queue_length,stop_times,delay_time,sturation,batch_time,gmt_create,gmt_modified
unbalance_index, spillover_index, congestion_index, unbalance_dirs, spillover_dirs, congestion_dirs,
flow, flow_rate, speed, queue_length, stop_times, delay_time, sturation, batch_time, gmt_create, gmt_modified
</sql> </sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossDataRealtimePO"> <insert id="insertBatch" parameterType="net.wanji.databus.po.CrossDataRealtimePO">
...@@ -87,4 +85,5 @@ ...@@ -87,4 +85,5 @@
from t_cross_data_realtime from t_cross_data_realtime
where cross_id = #{crossId} where cross_id = #{crossId}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
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