| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <?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">
- <!-- namespace必须指向DAO接口 -->
- <mapper namespace="com.jpsoft.employment.modules.manage.dao.DeviceConfigurationDAO">
- <resultMap id="DeviceConfigurationMap" type="com.jpsoft.employment.modules.manage.entity.DeviceConfiguration">
- <id property="id" column="id_" />
- <result property="createTime" column="create_time" />
- <result property="createBy" column="create_by" />
- <result property="updateTime" column="update_time" />
- <result property="updateBy" column="update_by" />
- <result property="delFlag" column="del_flag" />
- <result property="dmWelcomeWords" column="dm_welcome_words" />
- <result property="jobFairId" column="job_fair_id" />
- <result property="dtTemplate" column="dt_template" />
- <result property="dtWelcomeWords" column="dt__welcome_words" />
- <result property="dtImgUrl" column="dt_img_url" />
- <result property="dtDataTemplate" column="dt_data_template" />
- <result property="xwWelcomeWords" column="xw_welcome_words" />
- <result property="xwImgUrl" column="xw_img_url" />
- </resultMap>
- <insert id="insert" parameterType="com.jpsoft.employment.modules.manage.entity.DeviceConfiguration">
- <!--
- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
- select sys_guid() from dual
- </selectKey>
- -->
- <![CDATA[
- insert into manage_device_configuration
- (id_,create_time,create_by,update_time,update_by,del_flag,dm_welcome_words,job_fair_id,dt_template,dt__welcome_words,dt_img_url,dt_data_template,xw_welcome_words,xw_img_url)
- values
- (
- #{id,jdbcType=VARCHAR}
- ,#{createTime,jdbcType= TIMESTAMP }
- ,#{createBy,jdbcType=VARCHAR}
- ,#{updateTime,jdbcType= TIMESTAMP }
- ,#{updateBy,jdbcType=VARCHAR}
- ,#{delFlag,jdbcType= NUMERIC }
- ,#{dmWelcomeWords,jdbcType= NUMERIC }
- ,#{jobFairId,jdbcType=VARCHAR}
- ,#{dtTemplate,jdbcType=VARCHAR}
- ,#{dtWelcomeWords,jdbcType= NUMERIC }
- ,#{dtImgUrl,jdbcType=VARCHAR}
- ,#{dtDataTemplate,jdbcType=VARCHAR}
- ,#{xwWelcomeWords,jdbcType= NUMERIC }
- ,#{xwImgUrl,jdbcType=VARCHAR}
- )
- ]]>
- </insert>
- <delete id="delete" parameterType="string">
- delete from manage_device_configuration where id_=#{id,jdbcType=VARCHAR}
- </delete>
- <update id="update" parameterType="com.jpsoft.employment.modules.manage.entity.DeviceConfiguration">
- update manage_device_configuration
- <set>
- <if test="createTime!=null">
- create_time=#{createTime,jdbcType= TIMESTAMP },
- </if>
- <if test="createBy!=null">
- create_by=#{createBy,jdbcType=VARCHAR},
- </if>
- <if test="updateTime!=null">
- update_time=#{updateTime,jdbcType= TIMESTAMP },
- </if>
- <if test="updateBy!=null">
- update_by=#{updateBy,jdbcType=VARCHAR},
- </if>
- <if test="delFlag!=null">
- del_flag=#{delFlag,jdbcType= NUMERIC },
- </if>
- <if test="dmWelcomeWords!=null">
- dm_welcome_words=#{dmWelcomeWords,jdbcType= NUMERIC },
- </if>
- <if test="jobFairId!=null">
- job_fair_id=#{jobFairId,jdbcType=VARCHAR},
- </if>
- <if test="dtTemplate!=null">
- dt_template=#{dtTemplate,jdbcType=VARCHAR},
- </if>
- <if test="dtWelcomeWords!=null">
- dt__welcome_words=#{dtWelcomeWords,jdbcType= NUMERIC },
- </if>
- <if test="dtImgUrl!=null">
- dt_img_url=#{dtImgUrl,jdbcType=VARCHAR},
- </if>
- <if test="dtDataTemplate!=null">
- dt_data_template=#{dtDataTemplate,jdbcType=VARCHAR},
- </if>
- <if test="xwWelcomeWords!=null">
- xw_welcome_words=#{xwWelcomeWords,jdbcType= NUMERIC },
- </if>
- <if test="xwImgUrl!=null">
- xw_img_url=#{xwImgUrl,jdbcType=VARCHAR},
- </if>
- </set>
- where id_=#{id}
- </update>
- <select id="get" parameterType="string" resultMap="DeviceConfigurationMap">
- select * from manage_device_configuration where id_=#{0}
- </select>
- <select id="exist" parameterType="string" resultType="int">
- select count(*) from manage_device_configuration where id_=#{0}
- </select>
- <select id="list" resultMap="DeviceConfigurationMap">
- select * from manage_device_configuration
- </select>
- <select id="search" parameterType="hashmap" resultMap="DeviceConfigurationMap">
- <![CDATA[
- select * from manage_device_configuration
- ]]>
- <where>
- del_flag = 0
- <if test="searchParams.id != null">
- and ID_ like #{searchParams.id}
- </if>
- </where>
- <foreach item="sort" collection="sortList" open="order by" separator=",">
- ${sort.name} ${sort.order}
- </foreach>
- </select>
- </mapper>
|