1234567891011121314151617181920212223242526272829 |
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.bosshand.virgo.ringzle.dao.RuleConditionDao">
- <resultMap type="com.bosshand.virgo.ringzle.model.RuleCondition" id="ruleConditionResult">
- <result column="ruleId" property="ruleId"/>
- <result column="propertyName" property="propertyName"/>
- <result column="propertyValue" property="propertyValue"/>
- <result column="factor" property="factor"/>
- <result column="elementIds" property="elementIds"/>
- <result column="color" property="color"/>
- <result column="lineColor" property="lineColor"/>
- <result column="image" property="image"/>
- </resultMap>
- <insert id="batchSave" parameterType="com.bosshand.virgo.ringzle.model.RuleCondition">
- INSERT INTO iot_entity_bim_rule_condition (ruleId,propertyName,propertyValue,factor,elementIds,color,lineColor,image) VALUES
- <foreach collection="list" index="index" item="item" separator=",">
- (#{item.ruleId},#{item.propertyName},#{item.propertyValue},#{item.factor},#{item.elementIds},#{item.color},#{item.lineColor},#{item.image})
- </foreach>
- </insert>
- <delete id="delete">
- delete FROM iot_entity_bim_rule_condition where ruleId=#{ruleId}
- </delete>
- </mapper>
|