| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?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.yunfeiyun.agmp.iotm.web.mapper.IotWarnindicatorMapper">
-
- <resultMap type="IotWarnindicator" id="IotWarnindicatorResult">
- <result property="id" column="id" />
- <result property="wiBid" column="wiBid" />
- <result property="wcBid" column="wcBid" />
- <result property="wdBid" column="wdBid" />
- <result property="wiExpression" column="wiExpression" />
- <result property="wiValue" column="wiValue" />
- <result property="wiCreator" column="wiCreator" />
- <result property="wiCreateddate" column="wiCreateddate" />
- <result property="wiModifieddate" column="wiModifieddate" />
- <result property="wiModifier" column="wiModifier" />
- <result property="tid" column="tid" />
- </resultMap>
- <sql id="selectIotWarnindicatorVo">
- select id, wiBid, wcBid, wdBid, wiExpression, wiValue, wiCreator, wiCreateddate, wiModifieddate, wiModifier, tid from IotWarnindicator
- </sql>
- <select id="selectIotWarnindicatorList" parameterType="IotWarnindicator" resultMap="IotWarnindicatorResult">
- <include refid="selectIotWarnindicatorVo"/>
- <where>
- <if test="wiBid != null and wiBid != ''"> and wiBid = #{wiBid}</if>
- <if test="wcBid != null and wcBid != ''"> and wcBid = #{wcBid}</if>
- <if test="wdBid != null and wdBid != ''"> and wdBid = #{wdBid}</if>
- <if test="wiExpression != null and wiExpression != ''"> and wiExpression = #{wiExpression}</if>
- <if test="wiValue != null and wiValue != ''"> and wiValue = #{wiValue}</if>
- <if test="wiCreator != null and wiCreator != ''"> and wiCreator = #{wiCreator}</if>
- <if test="wiCreateddate != null and wiCreateddate != ''"> and wiCreateddate = #{wiCreateddate}</if>
- <if test="wiModifieddate != null and wiModifieddate != ''"> and wiModifieddate = #{wiModifieddate}</if>
- <if test="wiModifier != null and wiModifier != ''"> and wiModifier = #{wiModifier}</if>
- <if test="tid != null and tid != ''"> and tid = #{tid}</if>
- </where>
- </select>
-
- <select id="selectIotWarnindicatorByWiBid" parameterType="Long" resultMap="IotWarnindicatorResult">
- <include refid="selectIotWarnindicatorVo"/>
- where id = #{id} and tid = #{tid}
- </select>
-
- <insert id="insertIotWarnindicator" parameterType="IotWarnindicator" useGeneratedKeys="true" keyProperty="id">
- insert into IotWarnindicator
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="wiBid != null">wiBid,</if>
- <if test="wcBid != null">wcBid,</if>
- <if test="wdBid != null">wdBid,</if>
- <if test="wiExpression != null">wiExpression,</if>
- <if test="wiValue != null">wiValue,</if>
- <if test="wiCreator != null">wiCreator,</if>
- <if test="wiCreateddate != null">wiCreateddate,</if>
- <if test="wiModifieddate != null">wiModifieddate,</if>
- <if test="wiModifier != null">wiModifier,</if>
- <if test="tid != null and tid != ''">tid,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="wiBid != null">#{wiBid},</if>
- <if test="wcBid != null">#{wcBid},</if>
- <if test="wdBid != null">#{wdBid},</if>
- <if test="wiExpression != null">#{wiExpression},</if>
- <if test="wiValue != null">#{wiValue},</if>
- <if test="wiCreator != null">#{wiCreator},</if>
- <if test="wiCreateddate != null">#{wiCreateddate},</if>
- <if test="wiModifieddate != null">#{wiModifieddate},</if>
- <if test="wiModifier != null">#{wiModifier},</if>
- <if test="tid != null and tid != ''">#{tid},</if>
- </trim>
- </insert>
- <update id="updateIotWarnindicator" parameterType="IotWarnindicator">
- update IotWarnindicator
- <trim prefix="SET" suffixOverrides=",">
- <if test="wiBid != null">wiBid = #{wiBid},</if>
- <if test="wcBid != null">wcBid = #{wcBid},</if>
- <if test="wdBid != null">wdBid = #{wdBid},</if>
- <if test="wiExpression != null">wiExpression = #{wiExpression},</if>
- <if test="wiValue != null">wiValue = #{wiValue},</if>
- <if test="wiCreator != null">wiCreator = #{wiCreator},</if>
- <if test="wiCreateddate != null">wiCreateddate = #{wiCreateddate},</if>
- <if test="wiModifieddate != null">wiModifieddate = #{wiModifieddate},</if>
- <if test="wiModifier != null">wiModifier = #{wiModifier},</if>
- <if test="tid != null and tid != ''">tid = #{tid},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteIotWarnindicatorByWiBid" parameterType="Long">
- delete from IotWarnindicator where id = #{id} and tid = #{tid}
- </delete>
- <delete id="deleteIotWarnindicatorByWiBids" parameterType="String">
- delete from IotWarnindicator where tid = #{tid} and id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|