Commit 270b7f1e authored by hanbing's avatar hanbing

[update] databus配置classpath

parent 50a3a642
......@@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* @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"})
@EnableTransactionManagement
@EnableScheduling
......
......@@ -77,7 +77,9 @@ public class CrossConfigServiceImpl implements CrossConfigService {
public CrossConfigServiceImpl(CrossDirInfoMapper crossDirInfoMapper, LaneInfoMapper laneInfoMapper,
CrossLaneLightsMapper crossLaneLightsMapper, LaneSegmentMapper laneSegmentMapper,
CrossLightsMapper crossLightsMapper, CrossDataRealtimeMapper crossDataRealtimeMapper, CrossPhaseLightsMapper crossPhaseLightsMapper,
CrossLightsMapper crossLightsMapper,
CrossDataRealtimeMapper crossDataRealtimeMapper,
CrossPhaseLightsMapper crossPhaseLightsMapper,
CrossTurnDataHistMapper crossTurnDataHistMapper,
CrossDirDataRealtimeMapper crossDirDataRealtimeMapper) {
this.crossDirInfoMapper = crossDirInfoMapper;
......
......@@ -18,7 +18,7 @@ service:
mybatis:
type-aliases-package: net.wanji.*.model
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml
mapper-locations: classpath*:mapper/*.xml,classpath:mapper/*/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
......@@ -43,7 +43,7 @@ jasypt:
iv-generator-classname: org.jasypt.iv.NoIvGenerator
mybatis-plus:
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml
mapper-locations: classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage: net.wanji.web.entity
check-config-location: true
configuration:
......
......@@ -36,7 +36,7 @@ server:
dir: logs
mybatis-plus:
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml
mapper-locations: classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage: net.wanji.datacenter.pojo.po
check-config-location: true
configuration:
......
......@@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* @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
@MapperScan(basePackages = {"net.wanji.utc.mapper", "net.wanji.databus.dao.mapper"})
@EnableScheduling
......
......@@ -36,7 +36,7 @@ server:
dir: logs
mybatis-plus:
mapper-locations: classpath:mapper/*.xml,classpath:mapper/*/*.xml
mapper-locations: classpath*:mapper/*.xml,classpath:mapper/*/*.xml
typeAliasesPackage: net.wanji.utc.entity
check-config-location: true
configuration:
......
......@@ -31,9 +31,7 @@
</resultMap>
<sql id="Base_Column_List">
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
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
</sql>
<insert id="insertBatch" parameterType="net.wanji.databus.po.CrossDataRealtimePO">
......@@ -87,4 +85,5 @@
from t_cross_data_realtime
where cross_id = #{crossId}
</select>
</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