|
@@ -11,18 +11,47 @@
|
|
|
<result column="update_by" property="updateBy"/>
|
|
|
<result column="update_time" property="updateTime"/>
|
|
|
<result column="remark" property="remark"/>
|
|
|
+ <result column="lineDir" property="lineDir"/>
|
|
|
+ <result column="alarmMile" property="alarmMile"/>
|
|
|
+ <result column="alarmType" property="alarmType"/>
|
|
|
+ <result column="alarmAttr" property="alarmAttr"/>
|
|
|
+ <result column="imageUrl" property="imageUrl"/>
|
|
|
+ <association property="baseCameraManagement" javaType="com.ozs.service.entity.BaseCameraManagement">
|
|
|
+ <id column="id" property="id"/>
|
|
|
+ <result column="railway_code" property="railwayCode"/>
|
|
|
+ <result column="channel" property="channel"/>
|
|
|
+ <result column="install_mile" property="installMile"/>
|
|
|
+ <result column="begin_mile" property="beginMile"/>
|
|
|
+ <result column="end_mile" property="endMile"/>
|
|
|
+ <result column="install_longitude" property="installLongitude"/>
|
|
|
+ <result column="install_latitude" property="installLatitude"/>
|
|
|
+ </association>
|
|
|
</resultMap>
|
|
|
<select id="alarmPushMsg" resultMap="MsgAppPushVoResult">
|
|
|
select
|
|
|
- alarm_id,
|
|
|
- receive_by,
|
|
|
- status,
|
|
|
- create_by,
|
|
|
- create_time,
|
|
|
- update_by,
|
|
|
- update_time,
|
|
|
- remark
|
|
|
- from msg_app_push
|
|
|
+ m.alarm_id,
|
|
|
+ m.receive_by,
|
|
|
+ a.line_dir AS lineDir,
|
|
|
+ a.alarm_mile AS alarmMile,
|
|
|
+ a.alarm_type AS alarmType,
|
|
|
+ a.alarm_attr AS alarmAttr,
|
|
|
+ a.image_url AS imageUrl,
|
|
|
+ m.status,
|
|
|
+ m.create_by,
|
|
|
+ m.create_time,
|
|
|
+ m.update_by,
|
|
|
+ m.update_time,
|
|
|
+ m.remark,
|
|
|
+ b.railway_code AS railway_code,
|
|
|
+ b.channel AS channel,
|
|
|
+ b.install_mile AS install_mile,
|
|
|
+ b.begin_mile AS begin_mile,
|
|
|
+ b.end_mile AS end_mile,
|
|
|
+ b.install_longitude AS install_longitude,
|
|
|
+ b.install_latitude AS install_latitude
|
|
|
+ from msg_app_push m left join
|
|
|
+ msg_alarm AS a on m.alarm_id=a.alarm_id left join
|
|
|
+ base_camera_management AS b on a.camera_code=b.camera_code
|
|
|
<where>
|
|
|
<if test="status != null and status != 0">
|
|
|
and UPPER(status) like UPPER(CONCAT('%',#{status},'%'))
|