| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?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.JobFairDAO">
- <resultMap id="JobFairMap" type="com.jpsoft.employment.modules.manage.entity.JobFair">
- <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="name" column="name_" />
- <result property="startTime" column="start_time" />
- <result property="endTime" column="end_time" />
- <result property="admissionPeriodStart" column="admission_period_start" />
- <result property="admissionPeriodEnd" column="admission_period_end" />
- <result property="introduce" column="introduce_" />
- <result property="imgUrls" column="img_urls" />
- <result property="videoUrl" column="video_url" />
- <result property="status" column="status_" />
- </resultMap>
- <insert id="insert" parameterType="com.jpsoft.employment.modules.manage.entity.JobFair">
- <!--
- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
- select sys_guid() from dual
- </selectKey>
- -->
- <![CDATA[
- insert into manage_job_fair
- (id_,create_time,create_by,update_time,update_by,del_flag,name_,start_time,end_time,admission_period_start,admission_period_end,introduce_,img_urls,video_url,status_)
- values
- (
- #{id,jdbcType=VARCHAR}
- ,#{createTime,jdbcType= TIMESTAMP }
- ,#{createBy,jdbcType=VARCHAR}
- ,#{updateTime,jdbcType= TIMESTAMP }
- ,#{updateBy,jdbcType=VARCHAR}
- ,#{delFlag,jdbcType= NUMERIC }
- ,#{name,jdbcType=VARCHAR}
- ,#{startTime,jdbcType= TIMESTAMP }
- ,#{endTime,jdbcType= TIMESTAMP }
- ,#{admissionPeriodStart,jdbcType=VARCHAR}
- ,#{admissionPeriodEnd,jdbcType=VARCHAR}
- ,#{introduce,jdbcType= NUMERIC }
- ,#{imgUrls,jdbcType= NUMERIC }
- ,#{videoUrl,jdbcType=VARCHAR}
- ,#{status,jdbcType=VARCHAR}
- )
- ]]>
- </insert>
- <delete id="delete" parameterType="string">
- delete from manage_job_fair where id_=#{id,jdbcType=VARCHAR}
- </delete>
- <update id="update" parameterType="com.jpsoft.employment.modules.manage.entity.JobFair">
- update manage_job_fair
- <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="name!=null">
- name_=#{name,jdbcType=VARCHAR},
- </if>
- <if test="startTime!=null">
- start_time=#{startTime,jdbcType= TIMESTAMP },
- </if>
- <if test="endTime!=null">
- end_time=#{endTime,jdbcType= TIMESTAMP },
- </if>
- <if test="admissionPeriodStart!=null">
- admission_period_start=#{admissionPeriodStart,jdbcType=VARCHAR},
- </if>
- <if test="admissionPeriodEnd!=null">
- admission_period_end=#{admissionPeriodEnd,jdbcType=VARCHAR},
- </if>
- <if test="introduce!=null">
- introduce_=#{introduce,jdbcType= NUMERIC },
- </if>
- <if test="imgUrls!=null">
- img_urls=#{imgUrls,jdbcType= NUMERIC },
- </if>
- <if test="videoUrl!=null">
- video_url=#{videoUrl,jdbcType=VARCHAR},
- </if>
- <if test="status!=null">
- status_=#{status,jdbcType=VARCHAR},
- </if>
- </set>
- where id_=#{id}
- </update>
- <select id="get" parameterType="string" resultMap="JobFairMap">
- select * from manage_job_fair where id_=#{0}
- </select>
- <select id="exist" parameterType="string" resultType="int">
- select count(*) from manage_job_fair where id_=#{0}
- </select>
- <select id="list" resultMap="JobFairMap">
- select * from manage_job_fair
- </select>
- <select id="search" parameterType="hashmap" resultMap="JobFairMap">
- <![CDATA[
- select * from manage_job_fair
- ]]>
- <where>
- del_flag = 0
- <if test="searchParams.id != null">
- and ID_ like #{searchParams.id}
- </if>
- <if test="searchParams.startTime != null">
- <![CDATA[
- and start_time >= #{searchParams.startTime}
- ]]>
- </if>
- <if test="searchParams.endTime != null">
- <![CDATA[
- and start_time <= #{searchParams.endTime}
- ]]>
- </if>
- <if test="searchParams.nowDate != null">
- <![CDATA[
- and start_time >= #{searchParams.nowDate}
- ]]>
- </if>
- <if test="searchParams.name != null">
- and name_ like #{searchParams.name}
- </if>
- <if test="searchParams.status != null">
- and status_ = #{searchParams.status}
- </if>
- </where>
- <foreach item="sort" collection="sortList" open="order by" separator=",">
- ${sort.name} ${sort.order}
- </foreach>
- </select>
- </mapper>
|