| | |
| | | <sql id="Base_Column_List"> |
| | | id, container_id, temp, humidity, voc1, flag, type, update_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from sys_container_sensors |
| | | where id = #{id,jdbcType=VARCHAR} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
| | | <delete id="deleteByPrimaryKey" > |
| | | delete from sys_container_sensors |
| | | where id = #{id,jdbcType=VARCHAR} |
| | | </delete> |
| | | <insert id="insertSelective" parameterType="com.nanometer.smartlab.entity.SysContainerSensors"> |
| | | <insert id="insertSelective" parameterType="com.nanometer.smartlab.entity.SysContainerSensors" useGeneratedKeys = "true" keyProperty = "id"> |
| | | insert into sys_container_sensors |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="containerId != null"> |
| | | container_id, |
| | | </if> |
| | |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | #{id,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="containerId != null"> |
| | | #{containerId,jdbcType=VARCHAR}, |
| | | </if> |