| | |
| | | <result property="cameraDept" column="camera_dept"/> |
| | | <result property="hybm" column="hybm"/> |
| | | <result property="lxbm" column="lxbm"/> |
| | | <result property="deviceType" column="device_type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTMonitorVo"> |
| | |
| | | encoded_format, |
| | | camera_dept, |
| | | hybm, |
| | | lxbm |
| | | lxbm, |
| | | device_type |
| | | from t_monitor |
| | | </sql> |
| | | |
| | |
| | | <if test="cameraDept != null">camera_dept,</if> |
| | | <if test="hybm != null">hybm,</if> |
| | | <if test="lxbm != null">lxbm,</if> |
| | | <if test="deviceType != null">device_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="serialNumber != null and serialNumber != ''">#{serialNumber},</if> |
| | |
| | | <if test="cameraDept != null">#{cameraDept},</if> |
| | | <if test="hybm != null">#{hybm},</if> |
| | | <if test="lxbm != null">#{lxbm},</if> |
| | | <if test="deviceType != null">#{deviceType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="cameraDept != null">camera_dept = #{cameraDept},</if> |
| | | <if test="hybm != null">hybm = #{hybm},</if> |
| | | <if test="lxbm != null">lxbm = #{lxbm},</if> |
| | | <if test="deviceType != null">device_type = #{deviceType},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |