Commit f0753055 authored by hanbing's avatar hanbing

[update] 统一信控,解决Mapper类冲突

parent c2ade2e4
...@@ -12,7 +12,7 @@ import java.util.List; ...@@ -12,7 +12,7 @@ import java.util.List;
* @date 2022/10/27 14:25 * @date 2022/10/27 14:25
*/ */
@Repository @Repository
public interface GreenwaveRealtimeMapper { public interface GreenwaveRealtimeMapperOld {
List<GreenwaveRealtimePO> selectByAdCodeAndCurrentTime(@Param("adCode") String adCode, List<GreenwaveRealtimePO> selectByAdCodeAndCurrentTime(@Param("adCode") String adCode,
@Param("todayDate") Date todayDate); @Param("todayDate") Date todayDate);
......
...@@ -37,7 +37,7 @@ import net.wanji.web.mapper.AllDeviceStatusMapper; ...@@ -37,7 +37,7 @@ import net.wanji.web.mapper.AllDeviceStatusMapper;
import net.wanji.web.mapper.ControlHistMapper; import net.wanji.web.mapper.ControlHistMapper;
import net.wanji.web.mapper.CrossAlarmMapper; import net.wanji.web.mapper.CrossAlarmMapper;
import net.wanji.web.mapper.EventAlarmMapper; import net.wanji.web.mapper.EventAlarmMapper;
import net.wanji.web.mapper.GreenwaveRealtimeMapper; import net.wanji.web.mapper.GreenwaveRealtimeMapperOld;
import net.wanji.web.mapper.OptRecordsMapper; import net.wanji.web.mapper.OptRecordsMapper;
import net.wanji.web.mapper.TBaseAreaCrossMapper; import net.wanji.web.mapper.TBaseAreaCrossMapper;
import net.wanji.web.mapper.TBaseAreaInfoMapper; import net.wanji.web.mapper.TBaseAreaInfoMapper;
...@@ -101,7 +101,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService ...@@ -101,7 +101,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
private final ControlHistMapper controlHistMapper; private final ControlHistMapper controlHistMapper;
private final VehicleTraceMapper vehicleTraceMapper; private final VehicleTraceMapper vehicleTraceMapper;
private final VideoDeviceInfoMapper videoDeviceInfoMapper; private final VideoDeviceInfoMapper videoDeviceInfoMapper;
private final GreenwaveRealtimeMapper greenwaveRealtimeMapper; private final GreenwaveRealtimeMapperOld greenwaveRealtimeMapperOld;
private final AllDeviceStatusMapper allDeviceStatusMapper; private final AllDeviceStatusMapper allDeviceStatusMapper;
private final GreenwaveCrossMapper greenwaveCrossMapper; private final GreenwaveCrossMapper greenwaveCrossMapper;
private final BaseCrossInfoMapper tBaseBaseCrossInfoMapper; private final BaseCrossInfoMapper tBaseBaseCrossInfoMapper;
...@@ -384,7 +384,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService ...@@ -384,7 +384,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
@Override @Override
public List<GreenwaveRealtimeOutVO> greenwaveRealtime(String adCode, String currentTime) throws ParseException { public List<GreenwaveRealtimeOutVO> greenwaveRealtime(String adCode, String currentTime) throws ParseException {
Date todayDate = sdf.parse(currentTime); Date todayDate = sdf.parse(currentTime);
List<GreenwaveRealtimePO> greenwaveRealtimePOList = greenwaveRealtimeMapper.selectByAdCodeAndCurrentTime(adCode, todayDate); List<GreenwaveRealtimePO> greenwaveRealtimePOList = greenwaveRealtimeMapperOld.selectByAdCodeAndCurrentTime(adCode, todayDate);
List<GreenwaveRealtimeOutVO> greenwaveRealtimeOutVOList = new ArrayList<>(); List<GreenwaveRealtimeOutVO> greenwaveRealtimeOutVOList = new ArrayList<>();
for (GreenwaveRealtimePO greenwaveRealtimePO : greenwaveRealtimePOList) { for (GreenwaveRealtimePO greenwaveRealtimePO : greenwaveRealtimePOList) {
GreenwaveRealtimeOutVO greenwaveRealtimeOutVO = new GreenwaveRealtimeOutVO(); GreenwaveRealtimeOutVO greenwaveRealtimeOutVO = new GreenwaveRealtimeOutVO();
......
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="net.wanji.web.mapper.GreenwaveRealtimeMapper"> <mapper namespace="net.wanji.web.mapper.GreenwaveRealtimeMapperOld">
<!-- 通用查询映射结果 --> <!-- 通用查询映射结果 -->
<resultMap type="net.wanji.web.po.GreenwaveRealtimePO" id="BaseResultMap"> <resultMap type="net.wanji.web.po.GreenwaveRealtimePO" id="BaseResultMap">
......
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