51 lines
2.1 KiB
XML
51 lines
2.1 KiB
XML
|
|
<?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="com.securitycontrol.screen.mapper.SjProjectSafetyMapper">
|
||
|
|
<resultMap id="BaseResultMap" type="com.securitycontrol.screen.domain.SjProjectSafety">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
<!--@Table sj_project_safety-->
|
||
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||
|
|
<result column="risk_code" jdbcType="VARCHAR" property="riskCode" />
|
||
|
|
<result column="risk_site" jdbcType="VARCHAR" property="riskSite" />
|
||
|
|
<result column="risk_level" jdbcType="VARCHAR" property="riskLevel" />
|
||
|
|
<result column="controller" jdbcType="VARCHAR" property="controller" />
|
||
|
|
<result column="risk_controller" jdbcType="VARCHAR" property="riskController" />
|
||
|
|
<result column="start_time" jdbcType="DATE" property="startTime" />
|
||
|
|
<result column="is_xh" jdbcType="INTEGER" property="isXh" />
|
||
|
|
<result column="ball_name" property="ballName"/>
|
||
|
|
<result column="create_time" property="createTime"/>
|
||
|
|
<result column="image_path" property="imagePath"/>
|
||
|
|
<result column="name" property="name"/>
|
||
|
|
</resultMap>
|
||
|
|
<sql id="Base_Column_List">
|
||
|
|
<!--@mbg.generated-->
|
||
|
|
id, risk_code, risk_site, risk_level, controller, risk_controller, start_time, is_xh
|
||
|
|
</sql>
|
||
|
|
|
||
|
|
<select id="selectProSafetyLedger" resultMap="BaseResultMap">
|
||
|
|
select risk_code, risk_site, risk_level, controller, risk_controller, start_time, is_xh
|
||
|
|
from sj_project_safety
|
||
|
|
<where>
|
||
|
|
<if test="startTime != null and startTime != ''">
|
||
|
|
and start_time between #{startTime} and #{endTime}
|
||
|
|
</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectProSafetyVideo" resultMap="BaseResultMap">
|
||
|
|
select ball_name, image_path, name,create_time
|
||
|
|
from sj_video_safety
|
||
|
|
<where>
|
||
|
|
ball_name like concat('%',#{ballName},'%')
|
||
|
|
<if test="startTime != null and startTime != ''">
|
||
|
|
and create_time between #{startTime} and #{endTime}
|
||
|
|
</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectBallSelect" resultMap="BaseResultMap">
|
||
|
|
select distinct ball_name
|
||
|
|
from sj_video_safety
|
||
|
|
</select>
|
||
|
|
</mapper>
|