|
@@ -154,7 +154,7 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
This element was generated on Thu Dec 26 18:43:47 CST 2019.
|
|
This element was generated on Thu Dec 26 18:43:47 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
- select
|
|
|
|
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
|
,
|
|
,
|
|
|
<include refid="Blob_Column_List" />
|
|
<include refid="Blob_Column_List" />
|
|
@@ -187,12 +187,12 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
This element was generated on Thu Dec 26 18:43:47 CST 2019.
|
|
This element was generated on Thu Dec 26 18:43:47 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
- insert into recruitment (id, name, release_status,
|
|
|
|
|
- release_time, sort, province,
|
|
|
|
|
|
|
+ insert into recruitment (id, name, release_status,
|
|
|
|
|
+ release_time, sort, province,
|
|
|
region, create_time, content
|
|
region, create_time, content
|
|
|
)
|
|
)
|
|
|
- values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{releaseStatus,jdbcType=INTEGER},
|
|
|
|
|
- #{releaseTime,jdbcType=TIMESTAMP}, #{sort,jdbcType=INTEGER}, #{province,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{releaseStatus,jdbcType=INTEGER},
|
|
|
|
|
+ #{releaseTime,jdbcType=TIMESTAMP}, #{sort,jdbcType=INTEGER}, #{province,jdbcType=INTEGER},
|
|
|
#{region,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR}
|
|
#{region,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
@@ -423,22 +423,25 @@
|
|
|
<select id="selectByid" resultType="com.kede.recruitment.bo.OutRecruitment">
|
|
<select id="selectByid" resultType="com.kede.recruitment.bo.OutRecruitment">
|
|
|
select id,name,release_status releaseStatus,sort,province,region, content,
|
|
select id,name,release_status releaseStatus,sort,province,region, content,
|
|
|
date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert,
|
|
date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert,
|
|
|
- date_format(release_time,'%Y-%m-%d %H:%i:%S') as releaseTimeConvert
|
|
|
|
|
|
|
+ date_format(release_time,'%Y-%m-%d %H:%i:%S') as releaseTimeConvert
|
|
|
from recruitment where id = #{id}
|
|
from recruitment where id = #{id}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="findRecruitmentList" resultType="com.kede.recruitment.bo.OutRecruitment">
|
|
<select id="findRecruitmentList" resultType="com.kede.recruitment.bo.OutRecruitment">
|
|
|
select id,name,release_status releaseStatus,sort,province,region, content,
|
|
select id,name,release_status releaseStatus,sort,province,region, content,
|
|
|
date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert,
|
|
date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert,
|
|
|
- date_format(release_time,'%Y-%m-%d %H:%i:%S') as releaseTimeConvert
|
|
|
|
|
|
|
+ date_format(release_time,'%Y-%m-%d %H:%i:%S') as releaseTimeConvert
|
|
|
from recruitment where 1=1
|
|
from recruitment where 1=1
|
|
|
<if test="r.id != null">
|
|
<if test="r.id != null">
|
|
|
and id = #{r.id}
|
|
and id = #{r.id}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="r.name != null">
|
|
<if test="r.name != null">
|
|
|
- and name like concat('%',#{r.name},'%')
|
|
|
|
|
|
|
+ and name like concat('%',#{r.name},'%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="r.province != null">
|
|
<if test="r.province != null">
|
|
|
- and province = #{r.province}
|
|
|
|
|
|
|
+ and province = #{r.province}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="r.releaseStatus != null">
|
|
|
|
|
+ and release_status = #{r.releaseStatus}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="r.region != null">
|
|
<if test="r.region != null">
|
|
|
and region = #{r.region}
|
|
and region = #{r.region}
|
|
@@ -454,7 +457,10 @@
|
|
|
and id = #{r.id}
|
|
and id = #{r.id}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="r.name != null">
|
|
<if test="r.name != null">
|
|
|
- and name like concat('%',#{r.name},'%')
|
|
|
|
|
|
|
+ and name like concat('%',#{r.name},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="r.releaseStatus != null">
|
|
|
|
|
+ and release_status = #{r.releaseStatus}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="r.province != null">
|
|
<if test="r.province != null">
|
|
|
and province = #{r.province}
|
|
and province = #{r.province}
|
|
@@ -463,4 +469,4 @@
|
|
|
and region = #{r.region}
|
|
and region = #{r.region}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
-</mapper>
|
|
|
|
|
|
|
+</mapper>
|