|
|
@@ -6,7 +6,7 @@
|
|
6
|
6
|
<result column="publish_time" property="alarmPublishTime" jdbcType="TIMESTAMP"/>
|
|
7
|
7
|
<result column="offender" property="offender" jdbcType="VARCHAR"/>
|
|
8
|
8
|
<result column="library_point_name" property="involvingLibraryPoints" jdbcType="VARCHAR"/>
|
|
9
|
|
- <result column="violation_type" property="violationType" jdbcType="VARCHAR"/>
|
|
|
9
|
+ <result column="violation_type" property="violationType" jdbcType="INTEGER"/>
|
|
10
|
10
|
<result column="detail" property="violationDetail" jdbcType="VARCHAR"/>
|
|
11
|
11
|
<result column="disposer" property="disposer" jdbcType="VARCHAR"/>
|
|
12
|
12
|
<result column="dispose_content" property="disposeContent" jdbcType="VARCHAR"/>
|
|
|
@@ -46,6 +46,7 @@
|
|
46
|
46
|
<if test="violationType != null" >
|
|
47
|
47
|
and violation_type = #{violationType}
|
|
48
|
48
|
</if>
|
|
|
49
|
+ order by publish_time desc
|
|
49
|
50
|
</select>
|
|
50
|
51
|
|
|
51
|
52
|
<insert id="insert">
|
|
|
@@ -60,7 +61,7 @@
|
|
60
|
61
|
#{alarmPublishTime,jdbcType=TIMESTAMP},
|
|
61
|
62
|
#{offender,jdbcType=VARCHAR},
|
|
62
|
63
|
#{involvingLibraryPoints,jdbcType=VARCHAR},
|
|
63
|
|
- #{violationType,jdbcType=VARCHAR},
|
|
|
64
|
+ #{violationType,jdbcType=INTEGER},
|
|
64
|
65
|
#{violationDetail,jdbcType=VARCHAR},
|
|
65
|
66
|
#{disposer,jdbcType=VARCHAR},
|
|
66
|
67
|
#{disposeContent,jdbcType=VARCHAR},
|
|
|
@@ -106,7 +107,7 @@
|
|
106
|
107
|
library_point_name = #{involvingLibraryPoints,jdbcType=VARCHAR},
|
|
107
|
108
|
</if>
|
|
108
|
109
|
<if test="violationType != null">
|
|
109
|
|
- violation_type = #{violationType,jdbcType=VARCHAR},
|
|
|
110
|
+ violation_type = #{violationType,jdbcType=INTEGER},
|
|
110
|
111
|
</if>
|
|
111
|
112
|
<if test="violationDetail != null">
|
|
112
|
113
|
detail = #{violationDetail,jdbcType=INTEGER},
|