| | |
| | | blade_dept bt |
| | | ON |
| | | sr.dept_id = bt.id |
| | | left join |
| | | sys_information si |
| | | on |
| | | si.departmentid = bt.id |
| | | left join |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id = si.jurisdiction |
| | | WHERE |
| | | 1=1 |
| | | <if test="trainingRegistration.tenantName!=null and trainingRegistration.tenantName!=''"> |
| | | and bt.dept_name like concat('%', #{trainingRegistration.tenantName},'%') |
| | | <if test="recruitment.jurisdiction!=null and recruitment.jurisdiction!='' and recruitment.jurisdiction!='1372091709474910209'"> |
| | | and (sj.id = #{recruitment.jurisdiction} or sj.parent_id = #{recruitment.jurisdiction}) |
| | | </if> |
| | | <if test="trainingRegistration.province!=null"> |
| | | and sr.province = #{trainingRegistration.province} |
| | | <if test="recruitment.tenantName!=null and recruitment.tenantName!=''"> |
| | | and bt.dept_name like concat('%', #{recruitment.tenantName},'%') |
| | | </if> |
| | | <if test="trainingRegistration.city!=null"> |
| | | and sr.city = #{trainingRegistration.city} |
| | | <if test="recruitment.welfare!=null and recruitment.welfare!=''"> |
| | | and sr.welfare like concat('%', #{recruitment.welfare},'%') |
| | | </if> |
| | | <if test="trainingRegistration.district!=null"> |
| | | and sr.district = #{trainingRegistration.district} |
| | | <if test="recruitment.unitsScale!=null and recruitment.unitsScale!=''"> |
| | | and sr.units_scale like concat('%', #{recruitment.unitsScale},'%') |
| | | </if> |
| | | <if test="trainingRegistration.permit!=null"> |
| | | and sr.permit = #{trainingRegistration.permit} |
| | | <if test="recruitment.province!=null"> |
| | | and sr.province = #{recruitment.province} |
| | | </if> |
| | | <if test="trainingRegistration.education!=null and trainingRegistration.education!=''"> |
| | | and sr.education = #{trainingRegistration.education} |
| | | <if test="recruitment.city!=null"> |
| | | and sr.city = #{recruitment.city} |
| | | </if> |
| | | <if test="trainingRegistration.startTime!=null and trainingRegistration.startTime!=''"> |
| | | and sr.start_time >= #{trainingRegistration.startTime} |
| | | <if test="recruitment.district!=null"> |
| | | and sr.district = #{recruitment.district} |
| | | </if> |
| | | <if test="trainingRegistration.endTime!=null and trainingRegistration.endTime!=''"> |
| | | and sr.end_time <= #{trainingRegistration.endTime} |
| | | <if test="recruitment.permit!=null"> |
| | | and sr.permit = #{recruitment.permit} |
| | | </if> |
| | | <if test="trainingRegistration.minSalary!=null or trainingRegistration.maxSalary!=null"> |
| | | <if test="trainingRegistration.minSalary==null and trainingRegistration.maxSalary!=null"> |
| | | and sr.min_salary <= #{trainingRegistration.maxSalary} and sr.max_salary >= #{trainingRegistration.maxSalary} |
| | | <if test="recruitment.deptId!=null"> |
| | | and sr.dept_id = #{recruitment.deptId} |
| | | </if> |
| | | <if test="recruitment.education!=null and recruitment.education!=''"> |
| | | and sr.education = #{recruitment.education} |
| | | </if> |
| | | <if test="recruitment.startTime!=null and recruitment.startTime!=''"> |
| | | and sr.start_time >= #{recruitment.startTime} |
| | | </if> |
| | | <if test="recruitment.endTime!=null and recruitment.endTime!=''"> |
| | | and sr.end_time <= #{recruitment.endTime} |
| | | </if> |
| | | <if test="recruitment.minSalary!=null or recruitment.maxSalary!=null"> |
| | | <if test="recruitment.minSalary==null and recruitment.maxSalary!=null"> |
| | | and sr.min_salary <= #{recruitment.maxSalary} and sr.max_salary >= #{recruitment.maxSalary} |
| | | </if> |
| | | <if test="trainingRegistration.maxSalary==null and trainingRegistration.minSalary!=null"> |
| | | and sr.min_salary <= #{trainingRegistration.minSalary} and sr.max_salary >= #{trainingRegistration.minSalary} |
| | | <if test="recruitment.maxSalary==null and recruitment.minSalary!=null"> |
| | | and sr.min_salary <= #{recruitment.minSalary} and sr.max_salary >= #{recruitment.minSalary} |
| | | </if> |
| | | <if test="trainingRegistration.maxSalary!=null and trainingRegistration.minSalary!=null"> |
| | | and sr.max_salary <= #{trainingRegistration.maxSalary} and sr.max_salary >= #{trainingRegistration.minSalary} |
| | | or ( sr.min_salary <= #{trainingRegistration.maxSalary} and sr.min_salary >= #{trainingRegistration.minSalary}) |
| | | <if test="recruitment.maxSalary!=null and recruitment.minSalary!=null"> |
| | | and sr.max_salary <= #{recruitment.maxSalary} and sr.max_salary >= #{recruitment.minSalary} |
| | | or ( sr.min_salary <= #{recruitment.maxSalary} and sr.min_salary >= #{recruitment.minSalary}) |
| | | </if> |
| | | </if> |
| | | |
| | |
| | | sr.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | <if test="trainingRegistration.id!=null"> |
| | | and sr.id = #{trainingRegistration.id} |
| | | <if test="recruitment.id!=null"> |
| | | and sr.id = #{recruitment.id} |
| | | </if> |
| | | </select> |
| | | </mapper> |