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
00668107
Commit
00668107
authored
Jan 31, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 实时监控-方案优化日志表
parent
f9d9b567
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
0 deletions
+112
-0
CrossPlanOptLogMapper.java
.../java/net/wanji/opt/dao/mapper/CrossPlanOptLogMapper.java
+18
-0
CrossPlanOptLogPO.java
...rc/main/java/net/wanji/opt/po/base/CrossPlanOptLogPO.java
+36
-0
CrossPlanOptLogMapper.xml
...rvice/src/main/resources/mapper/CrossPlanOptLogMapper.xml
+58
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/dao/mapper/CrossPlanOptLogMapper.java
0 → 100644
View file @
00668107
package
net
.
wanji
.
opt
.
dao
.
mapper
;
import
net.wanji.opt.po.base.CrossPlanOptLogPO
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* @author duanruiming
* @date 2023/01/31 18:32
*/
@Repository
public
interface
CrossPlanOptLogMapper
{
List
<
CrossPlanOptLogPO
>
selectByCrossId
();
int
insertOne
(
CrossPlanOptLogPO
entity
);
}
signal-optimize-service/src/main/java/net/wanji/opt/po/base/CrossPlanOptLogPO.java
0 → 100644
View file @
00668107
package
net
.
wanji
.
opt
.
po
.
base
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author duanruiming
* @date 2023/01/31 18:20
*/
@Data
public
class
CrossPlanOptLogPO
{
private
int
id
;
private
String
crossId
;
private
String
planNo
;
private
int
dirType
;
private
int
turnType
;
private
int
offset
;
private
int
ringNo
;
private
String
phaseNo
;
private
int
phaseOrderId
;
private
int
oriGreenTime
;
private
int
optTime
;
private
String
optType
;
private
String
optReason
;
private
Date
startTime
;
private
Date
endTime
;
private
String
isRelation
;
private
String
relationCrossId
;
private
String
optResult
;
private
String
optResultDesc
;
private
int
dataBatchTime
;
private
String
restoreResult
;
}
signal-optimize-service/src/main/resources/mapper/CrossPlanOptLogMapper.xml
0 → 100644
View file @
00668107
<?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=
"net.wanji.opt.dao.mapper.CrossPlanOptLogMapper"
>
<!-- 通用查询映射结果 -->
<resultMap
type=
"net.wanji.opt.po.base.CrossPlanOptLogPO"
id=
"BaseResultMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"crossId"
column=
"cross_id"
/>
<result
property=
"planNo"
column=
"plan_no"
/>
<result
property=
"dirType"
column=
"dir_type"
/>
<result
property=
"turnType"
column=
"turn_type"
/>
<result
property=
"offset"
column=
"offset"
/>
<result
property=
"ringNo"
column=
"ring_no"
/>
<result
property=
"phaseNo"
column=
"phase_no"
/>
<result
property=
"phaseOrderId"
column=
"phase_order_id"
/>
<result
property=
"oriGreenTime"
column=
"ori_green_time"
/>
<result
property=
"optTime"
column=
"opt_time"
/>
<result
property=
"optType"
column=
"opt_type"
/>
<result
property=
"optReason"
column=
"opt_reason"
/>
<result
property=
"startTime"
column=
"start_time"
/>
<result
property=
"endTime"
column=
"end_time"
/>
<result
property=
"isRelation"
column=
"is_relation"
/>
<result
property=
"relationCrossId"
column=
"relation_cross_id"
/>
<result
property=
"optResult"
column=
"opt_result"
/>
<result
property=
"optResultDesc"
column=
"opt_result_desc"
/>
<result
property=
"dataBatchTime"
column=
"data_batch_time"
/>
<result
property=
"restoreResult"
column=
"restore_result"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, cross_id, plan_no, dir_type, turn_type, offset, ring_no, phase_no, phase_order_id, ori_green_time,
opt_time, opt_type, opt_reason, start_time, end_time, is_relation, relation_cross_id, opt_result, opt_result_desc,
data_batch_time, restore_result
</sql>
<select
id=
"selectByCrossId"
parameterType=
"String"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from t_base_cross_plan_opt_log
<where>
<if
test=
"crossId != null and crossId != ''"
>
and cross_id = #{crossId}
</if>
</where>
</select>
<insert
id=
"insertOne"
parameterType=
"net.wanji.opt.po.base.CrossPlanOptLogPO"
>
insert into t_base_cross_plan_opt_log (cross_id, plan_no, dir_type, turn_type, offset, ring_no, phase_no,
phase_order_id, ori_green_time, opt_time, opt_type, opt_reason,
start_time,
end_time, is_relation, relation_cross_id, opt_result, opt_result_desc,
data_batch_time, restore_result)
values (#{crossId}, #{planNo}, #{dirType}, #{turnType}, #{offset}, #{ringNo}, #{phaseNo}, #{phaseOrderId},
#{oriGreenTime}, #{optTime}, #{optType}, #{optReason}, #{startTime}, #{endTime}, #{isRelation},
#{relationCrossId}, #{optResult}, #{optResultDesc}, #{dataBatchTime}, #{restoreResult})
</insert>
</mapper>
\ No newline at end of file
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