File was renamed from pipIrr-platform/pipIrr-global/src/main/resources/mapper/ViYsCameraMapper.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.dy.pipIrrGlobal.daoVi.ViYsCameraMapper"> |
| | | <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoVi.ViYsCamera"> |
| | | <mapper namespace="com.dy.pipIrrGlobal.daoVi.ViCameraMapper"> |
| | | <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoVi.ViCamera"> |
| | | <!--@mbg.generated--> |
| | | <!--@Table vi_ys_camera--> |
| | | <!--@Table vi_camera--> |
| | | <id column="id" jdbcType="BIGINT" property="id" /> |
| | | <result column="type" jdbcType="TINYINT" property="type" /> |
| | | <result column="dev_no" jdbcType="VARCHAR" property="devNo" /> |
| | | <result column="name" jdbcType="VARCHAR" property="name" /> |
| | | <result column="lng" jdbcType="DOUBLE" property="lng" /> |
| | | <result column="lat" jdbcType="DOUBLE" property="lat" /> |
| | | <result column="on_screen" jdbcType="TINYINT" property="onScreen" /> |
| | | <result column="on_sort" jdbcType="INTEGER" property="onSort" /> |
| | | <result column="remark" jdbcType="VARCHAR" property="remark" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List"> |
| | | <!--@mbg.generated--> |
| | | id, dev_no, `name`, lng, lat, remark |
| | | id, `type`, dev_no, `name`, lng, lat, on_screen, on_sort, remark |
| | | </sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
| | | <!--@mbg.generated--> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from vi_ys_camera |
| | | from vi_camera |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | <!--@mbg.generated--> |
| | | delete from vi_ys_camera |
| | | delete from vi_camera |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoVi.ViYsCamera"> |
| | | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoVi.ViCamera"> |
| | | <!--@mbg.generated--> |
| | | insert into vi_ys_camera (id, dev_no, `name`, |
| | | lng, lat, remark) |
| | | values (#{id,jdbcType=BIGINT}, #{devNo,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, |
| | | #{lng,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, #{remark,jdbcType=VARCHAR}) |
| | | insert into vi_camera (id, `type`, dev_no, |
| | | `name`, lng, lat, on_screen, |
| | | on_sort, remark) |
| | | values (#{id,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, #{devNo,jdbcType=VARCHAR}, |
| | | #{name,jdbcType=VARCHAR}, #{lng,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, #{onScreen,jdbcType=TINYINT}, |
| | | #{onSort,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoVi.ViYsCamera"> |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoVi.ViCamera"> |
| | | <!--@mbg.generated--> |
| | | insert into vi_ys_camera |
| | | insert into vi_camera |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="type != null"> |
| | | `type`, |
| | | </if> |
| | | <if test="devNo != null"> |
| | | dev_no, |
| | |
| | | <if test="lat != null"> |
| | | lat, |
| | | </if> |
| | | <if test="onScreen != null"> |
| | | on_screen, |
| | | </if> |
| | | <if test="onSort != null"> |
| | | on_sort, |
| | | </if> |
| | | <if test="remark != null"> |
| | | remark, |
| | | </if> |
| | |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="type != null"> |
| | | #{type,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="devNo != null"> |
| | | #{devNo,jdbcType=VARCHAR}, |
| | |
| | | <if test="lat != null"> |
| | | #{lat,jdbcType=DOUBLE}, |
| | | </if> |
| | | <if test="onScreen != null"> |
| | | #{onScreen,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="onSort != null"> |
| | | #{onSort,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="remark != null"> |
| | | #{remark,jdbcType=VARCHAR}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoVi.ViYsCamera"> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoVi.ViCamera"> |
| | | <!--@mbg.generated--> |
| | | update vi_ys_camera |
| | | update vi_camera |
| | | <set> |
| | | <if test="type != null"> |
| | | `type` = #{type,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="devNo != null"> |
| | | dev_no = #{devNo,jdbcType=VARCHAR}, |
| | | </if> |
| | |
| | | <if test="lat != null"> |
| | | lat = #{lat,jdbcType=DOUBLE}, |
| | | </if> |
| | | <if test="onScreen != null"> |
| | | on_screen = #{onScreen,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="onSort != null"> |
| | | on_sort = #{onSort,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="remark != null"> |
| | | remark = #{remark,jdbcType=VARCHAR}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoVi.ViYsCamera"> |
| | | <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoVi.ViCamera"> |
| | | <!--@mbg.generated--> |
| | | update vi_ys_camera |
| | | set dev_no = #{devNo,jdbcType=VARCHAR}, |
| | | update vi_camera |
| | | set `type` = #{type,jdbcType=TINYINT}, |
| | | dev_no = #{devNo,jdbcType=VARCHAR}, |
| | | `name` = #{name,jdbcType=VARCHAR}, |
| | | lng = #{lng,jdbcType=DOUBLE}, |
| | | lat = #{lat,jdbcType=DOUBLE}, |
| | | on_screen = #{onScreen,jdbcType=TINYINT}, |
| | | on_sort = #{onSort,jdbcType=INTEGER}, |
| | | remark = #{remark,jdbcType=VARCHAR} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |