Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
f0753055
Commit
f0753055
authored
Jun 12, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 统一信控,解决Mapper类冲突
parent
c2ade2e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
GreenwaveRealtimeMapperOld.java
...java/net/wanji/web/mapper/GreenwaveRealtimeMapperOld.java
+1
-1
SituationDetectionServiceImpl.java
...wanji/web/service/impl/SituationDetectionServiceImpl.java
+3
-3
GreenwaveRealtimeMapperOld.xml
.../src/main/resources/mapper/GreenwaveRealtimeMapperOld.xml
+1
-1
No files found.
signal-control-service/src/main/java/net/wanji/web/mapper/GreenwaveRealtimeMapper.java
→
signal-control-service/src/main/java/net/wanji/web/mapper/GreenwaveRealtimeMapper
Old
.java
View file @
f0753055
...
@@ -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
GreenwaveRealtimeMapper
Old
{
List
<
GreenwaveRealtimePO
>
selectByAdCodeAndCurrentTime
(
@Param
(
"adCode"
)
String
adCode
,
List
<
GreenwaveRealtimePO
>
selectByAdCodeAndCurrentTime
(
@Param
(
"adCode"
)
String
adCode
,
@Param
(
"todayDate"
)
Date
todayDate
);
@Param
(
"todayDate"
)
Date
todayDate
);
...
...
signal-control-service/src/main/java/net/wanji/web/service/impl/SituationDetectionServiceImpl.java
View file @
f0753055
...
@@ -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.GreenwaveRealtimeMapper
Old
;
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
GreenwaveRealtimeMapper
Old
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
=
greenwaveRealtimeMapper
Old
.
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
();
...
...
signal-control-service/src/main/resources/mapper/GreenwaveRealtimeMapper.xml
→
signal-control-service/src/main/resources/mapper/GreenwaveRealtimeMapper
Old
.xml
View file @
f0753055
<?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.GreenwaveRealtimeMapper
Old
"
>
<!-- 通用查询映射结果 -->
<!-- 通用查询映射结果 -->
<resultMap
type=
"net.wanji.web.po.GreenwaveRealtimePO"
id=
"BaseResultMap"
>
<resultMap
type=
"net.wanji.web.po.GreenwaveRealtimePO"
id=
"BaseResultMap"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment