|  |  | <?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.sunyo.energy.location.dao.WaterElectricityParameterMapper" > | 
|  |  | <resultMap id="BaseResultMap" type="com.sunyo.energy.location.model.WaterElectricityParameter" > | 
|  |  | <id column="id" property="id" jdbcType="INTEGER" /> | 
|  |  | <result column="prepaid" property="prepaid" jdbcType="BIT" /> | 
|  |  | <result column="warningTrip" property="warningtrip" jdbcType="BIT" /> | 
|  |  | <result column="warningThreshold" property="warningthreshold" jdbcType="DECIMAL" /> | 
|  |  | <result column="overdraft" property="overdraft" jdbcType="BIT" /> | 
|  |  | <result column="overdraftThreshold" property="overdraftthreshold" jdbcType="DECIMAL" /> | 
|  |  | <result column="waterLoad" property="waterload" jdbcType="BIT" /> | 
|  |  | <result column="water" property="water" jdbcType="DECIMAL" /> | 
|  |  | <result column="power" property="power" jdbcType="DECIMAL" /> | 
|  |  | <result column="powerFactor" property="powerfactor" jdbcType="VARCHAR" /> | 
|  |  | <result column="free" property="free" jdbcType="BIT" /> | 
|  |  | <result column="freeElectricityLimit" property="freeelectricitylimit" jdbcType="DECIMAL" /> | 
|  |  | <result column="freeWater" property="freewater" jdbcType="VARCHAR" /> | 
|  |  | <result column="wm_id" property="wmId" jdbcType="VARCHAR" /> | 
|  |  | <result column="creatTime" property="creattime" jdbcType="TIMESTAMP" /> | 
|  |  | <result column="ee_id" property="eeId" jdbcType="VARCHAR" /> | 
|  |  | <result column="reamke2" property="reamke2" jdbcType="VARCHAR" /> | 
|  |  | <result column="reamke3" property="reamke3" jdbcType="VARCHAR" /> | 
|  |  | </resultMap> | 
|  |  | <sql id="Base_Column_List" > | 
|  |  | id, prepaid, warningTrip, warningThreshold, overdraft, overdraftThreshold, waterLoad, | 
|  |  | water, power, powerFactor, free, freeElectricityLimit, freeWater, wm_id, creatTime, | 
|  |  | ee_id, reamke2, reamke3 | 
|  |  | </sql> | 
|  |  | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > | 
|  |  | select | 
|  |  | <include refid="Base_Column_List" /> | 
|  |  | from water_electricity_parameter | 
|  |  | where id = #{id,jdbcType=INTEGER} | 
|  |  | </select> | 
|  |  |  | 
|  |  | <select id="countOne" parameterType="java.lang.String" resultType="int"> | 
|  |  | select count(*) from water_electricity_parameter where ee_id=#{value, jdbcType=VARCHAR} | 
|  |  | </select> | 
|  |  | <select id="findOneElectricity" resultMap="BaseResultMap" parameterType="java.lang.String"> | 
|  |  | select | 
|  |  | <include refid="Base_Column_List"/> | 
|  |  | from water_electricity_parameter where ee_id = #{value,jdbcType=VARCHAR} | 
|  |  | </select> | 
|  |  |  | 
|  |  | <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" > | 
|  |  | delete from water_electricity_parameter | 
|  |  | where id = #{id,jdbcType=INTEGER} | 
|  |  | </delete> | 
|  |  | <insert id="insert" parameterType="com.sunyo.energy.location.model.WaterElectricityParameter" > | 
|  |  | insert into water_electricity_parameter (id, prepaid, warningTrip, | 
|  |  | warningThreshold, overdraft, overdraftThreshold, | 
|  |  | waterLoad, water, power, | 
|  |  | powerFactor, free, freeElectricityLimit, | 
|  |  | freeWater, wm_id, creatTime, | 
|  |  | ee_id, reamke2, reamke3 | 
|  |  | ) | 
|  |  | values (#{id,jdbcType=INTEGER}, #{prepaid,jdbcType=BIT}, #{warningtrip,jdbcType=BIT}, | 
|  |  | #{warningthreshold,jdbcType=DECIMAL}, #{overdraft,jdbcType=BIT}, #{overdraftthreshold,jdbcType=DECIMAL}, | 
|  |  | #{waterload,jdbcType=BIT}, #{water,jdbcType=DECIMAL}, #{power,jdbcType=DECIMAL}, | 
|  |  | #{powerfactor,jdbcType=VARCHAR}, #{free,jdbcType=BIT}, #{freeelectricitylimit,jdbcType=DECIMAL}, | 
|  |  | #{freewater,jdbcType=VARCHAR}, #{wmId,jdbcType=VARCHAR}, #{creattime,jdbcType=TIMESTAMP}, | 
|  |  | #{eeId,jdbcType=VARCHAR}, #{reamke2,jdbcType=VARCHAR}, #{reamke3,jdbcType=VARCHAR} | 
|  |  | ) | 
|  |  | </insert> | 
|  |  | <insert id="insertSelective" parameterType="com.sunyo.energy.location.model.WaterElectricityParameter" > | 
|  |  | insert into water_electricity_parameter | 
|  |  | <trim prefix="(" suffix=")" suffixOverrides="," > | 
|  |  | <if test="id != null" > | 
|  |  | id, | 
|  |  | </if> | 
|  |  | <if test="prepaid != null" > | 
|  |  | prepaid, | 
|  |  | </if> | 
|  |  | <if test="warningtrip != null" > | 
|  |  | warningTrip, | 
|  |  | </if> | 
|  |  | <if test="warningthreshold != null" > | 
|  |  | warningThreshold, | 
|  |  | </if> | 
|  |  | <if test="overdraft != null" > | 
|  |  | overdraft, | 
|  |  | </if> | 
|  |  | <if test="overdraftthreshold != null" > | 
|  |  | overdraftThreshold, | 
|  |  | </if> | 
|  |  | <if test="waterload != null" > | 
|  |  | waterLoad, | 
|  |  | </if> | 
|  |  | <if test="water != null" > | 
|  |  | water, | 
|  |  | </if> | 
|  |  | <if test="power != null" > | 
|  |  | power, | 
|  |  | </if> | 
|  |  | <if test="powerfactor != null" > | 
|  |  | powerFactor, | 
|  |  | </if> | 
|  |  | <if test="free != null" > | 
|  |  | free, | 
|  |  | </if> | 
|  |  | <if test="freeelectricitylimit != null" > | 
|  |  | freeElectricityLimit, | 
|  |  | </if> | 
|  |  | <if test="freewater != null" > | 
|  |  | freeWater, | 
|  |  | </if> | 
|  |  | <if test="wmId != null" > | 
|  |  | wm_id, | 
|  |  | </if> | 
|  |  | <if test="creattime != null" > | 
|  |  | creatTime, | 
|  |  | </if> | 
|  |  | <if test="eeId != null" > | 
|  |  | ee_id, | 
|  |  | </if> | 
|  |  | <if test="reamke2 != null" > | 
|  |  | reamke2, | 
|  |  | </if> | 
|  |  | <if test="reamke3 != null" > | 
|  |  | reamke3, | 
|  |  | </if> | 
|  |  | </trim> | 
|  |  | <trim prefix="values (" suffix=")" suffixOverrides="," > | 
|  |  | <if test="id != null" > | 
|  |  | #{id,jdbcType=INTEGER}, | 
|  |  | </if> | 
|  |  | <if test="prepaid != null" > | 
|  |  | #{prepaid,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="warningtrip != null" > | 
|  |  | #{warningtrip,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="warningthreshold != null" > | 
|  |  | #{warningthreshold,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="overdraft != null" > | 
|  |  | #{overdraft,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="overdraftthreshold != null" > | 
|  |  | #{overdraftthreshold,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="waterload != null" > | 
|  |  | #{waterload,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="water != null" > | 
|  |  | #{water,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="power != null" > | 
|  |  | #{power,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="powerfactor != null" > | 
|  |  | #{powerfactor,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="free != null" > | 
|  |  | #{free,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="freeelectricitylimit != null" > | 
|  |  | #{freeelectricitylimit,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="freewater != null" > | 
|  |  | #{freewater,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="wmId != null" > | 
|  |  | #{wmId,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="creattime != null" > | 
|  |  | #{creattime,jdbcType=TIMESTAMP}, | 
|  |  | </if> | 
|  |  | <if test="eeId != null" > | 
|  |  | #{eeId,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="reamke2 != null" > | 
|  |  | #{reamke2,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="reamke3 != null" > | 
|  |  | #{reamke3,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | </trim> | 
|  |  | </insert> | 
|  |  | <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.energy.location.model.WaterElectricityParameter" > | 
|  |  | update water_electricity_parameter | 
|  |  | <set > | 
|  |  | <if test="prepaid != null" > | 
|  |  | prepaid = #{prepaid,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="warningtrip != null" > | 
|  |  | warningTrip = #{warningtrip,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="warningthreshold != null" > | 
|  |  | warningThreshold = #{warningthreshold,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="overdraft != null" > | 
|  |  | overdraft = #{overdraft,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="overdraftthreshold != null" > | 
|  |  | overdraftThreshold = #{overdraftthreshold,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="waterload != null" > | 
|  |  | waterLoad = #{waterload,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="water != null" > | 
|  |  | water = #{water,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="power != null" > | 
|  |  | power = #{power,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="powerfactor != null" > | 
|  |  | powerFactor = #{powerfactor,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="free != null" > | 
|  |  | free = #{free,jdbcType=BIT}, | 
|  |  | </if> | 
|  |  | <if test="freeelectricitylimit != null" > | 
|  |  | freeElectricityLimit = #{freeelectricitylimit,jdbcType=DECIMAL}, | 
|  |  | </if> | 
|  |  | <if test="freewater != null" > | 
|  |  | freeWater = #{freewater,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="wmId != null" > | 
|  |  | wm_id = #{wmId,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="creattime != null" > | 
|  |  | creatTime = #{creattime,jdbcType=TIMESTAMP}, | 
|  |  | </if> | 
|  |  | <if test="eeId != null" > | 
|  |  | ee_id = #{eeId,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="reamke2 != null" > | 
|  |  | reamke2 = #{reamke2,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | <if test="reamke3 != null" > | 
|  |  | reamke3 = #{reamke3,jdbcType=VARCHAR}, | 
|  |  | </if> | 
|  |  | </set> | 
|  |  | where ee_id = #{eeId,jdbcType=INTEGER} | 
|  |  | </update> | 
|  |  | <update id="updateByPrimaryKey" parameterType="com.sunyo.energy.location.model.WaterElectricityParameter" > | 
|  |  | update water_electricity_parameter | 
|  |  | set prepaid = #{prepaid,jdbcType=BIT}, | 
|  |  | warningTrip = #{warningtrip,jdbcType=BIT}, | 
|  |  | warningThreshold = #{warningthreshold,jdbcType=DECIMAL}, | 
|  |  | overdraft = #{overdraft,jdbcType=BIT}, | 
|  |  | overdraftThreshold = #{overdraftthreshold,jdbcType=DECIMAL}, | 
|  |  | waterLoad = #{waterload,jdbcType=BIT}, | 
|  |  | water = #{water,jdbcType=DECIMAL}, | 
|  |  | power = #{power,jdbcType=DECIMAL}, | 
|  |  | powerFactor = #{powerfactor,jdbcType=VARCHAR}, | 
|  |  | free = #{free,jdbcType=BIT}, | 
|  |  | freeElectricityLimit = #{freeelectricitylimit,jdbcType=DECIMAL}, | 
|  |  | freeWater = #{freewater,jdbcType=VARCHAR}, | 
|  |  | wm_id = #{wmId,jdbcType=VARCHAR}, | 
|  |  | creatTime = #{creattime,jdbcType=TIMESTAMP}, | 
|  |  | ee_id = #{eeId,jdbcType=VARCHAR}, | 
|  |  | reamke2 = #{reamke2,jdbcType=VARCHAR}, | 
|  |  | reamke3 = #{reamke3,jdbcType=VARCHAR} | 
|  |  | where id = #{id,jdbcType=INTEGER} | 
|  |  | </update> | 
|  |  | </mapper> | 
|  |  | \ No newline at end of file | 
... | ... |  |