添加查询条件
This commit is contained in:
@@ -72,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectCompanyVo"/>
|
||||
<where> del_flag = '0'
|
||||
<if test="name != null and name != ''"> and name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="location != null and location != ''"> and location = #{location}</if>
|
||||
<if test="location != null and location != ''"> and location like concat('%', cast(#{location, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="industry != null and industry != ''"> and industry = #{industry}</if>
|
||||
<if test="scale != null and scale != ''"> and scale = #{scale}</if>
|
||||
<if test="nature != null and nature != ''"> and nature = #{nature}</if>
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
<result property="staffType" column="staff_type" />
|
||||
<result property="pass" column="pass" />
|
||||
<result property="passReason" column="pass_reason" />
|
||||
<result property="jobLocationAreaCode" column="job_location_area_code" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
@@ -205,6 +206,7 @@
|
||||
<if test="isHot != null "> and is_hot = #{isHot}</if>
|
||||
<if test="applyNum != null "> and apply_num = #{applyNum}</if>
|
||||
<if test="code != null "> and company_id in(select company_id from company where code=#{code})</if>
|
||||
<if test="jobLocationAreaCode!=null and jobLocationAreaCode!=''">and job_location_area_code =#{jobLocationAreaCode}</if>
|
||||
<if test="compensation!=null ">
|
||||
<if test="compensation==0 ">
|
||||
and min_salary < 1750
|
||||
|
||||
Reference in New Issue
Block a user