|
|
@@ -13,7 +13,8 @@
|
|
|
<result property="name" column="name_" />
|
|
|
<result property="startTime" column="start_time" />
|
|
|
<result property="endTime" column="end_time" />
|
|
|
- <result property="admissionPeriod" column="admission_period" />
|
|
|
+ <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" />
|
|
|
@@ -27,7 +28,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into manage_job_fair
|
|
|
- (id_,create_time,create_by,update_time,update_by,del_flag,name_,start_time,end_time,admission_period,introduce_,img_urls,video_url,status_)
|
|
|
+ (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}
|
|
|
@@ -39,7 +40,8 @@
|
|
|
,#{name,jdbcType=VARCHAR}
|
|
|
,#{startTime,jdbcType= TIMESTAMP }
|
|
|
,#{endTime,jdbcType= TIMESTAMP }
|
|
|
-,#{admissionPeriod,jdbcType=VARCHAR}
|
|
|
+,#{admissionPeriodStart,jdbcType=VARCHAR}
|
|
|
+,#{admissionPeriodEnd,jdbcType=VARCHAR}
|
|
|
,#{introduce,jdbcType= NUMERIC }
|
|
|
,#{imgUrls,jdbcType= NUMERIC }
|
|
|
,#{videoUrl,jdbcType=VARCHAR}
|
|
|
@@ -77,9 +79,12 @@
|
|
|
<if test="endTime!=null">
|
|
|
end_time=#{endTime,jdbcType= TIMESTAMP },
|
|
|
</if>
|
|
|
- <if test="admissionPeriod!=null">
|
|
|
- admission_period=#{admissionPeriod,jdbcType=VARCHAR},
|
|
|
+ <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>
|
|
|
@@ -113,11 +118,27 @@
|
|
|
<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}
|