|
|
@ -216,25 +216,25 @@
|
|
|
|
t.scheme_id = d.id
|
|
|
|
t.scheme_id = d.id
|
|
|
|
WHERE t.delete_type = 0
|
|
|
|
WHERE t.delete_type = 0
|
|
|
|
<include refid="likeSQL"/>
|
|
|
|
<include refid="likeSQL"/>
|
|
|
|
<if test=" parentComp != null ">
|
|
|
|
<if test=" jobPO.parentComp != null ">
|
|
|
|
and t.parent_comp = #{parentComp}
|
|
|
|
and t.parent_comp = #{jobPO.parentComp}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" parentDept != null ">
|
|
|
|
<if test=" jobPO.parentDept != null ">
|
|
|
|
and t.parent_dept = #{parentDept}
|
|
|
|
and t.parent_dept = #{jobPO.parentDept}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" sequenceId != null ">
|
|
|
|
<if test=" jobPO.sequenceId != null ">
|
|
|
|
and t.sequence_id = #{sequenceId}
|
|
|
|
and t.sequence_id = #{jobPO.sequenceId}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" schemeId != null ">
|
|
|
|
<if test=" jobPO.schemeId != null ">
|
|
|
|
and t.scheme_id = #{schemeId}
|
|
|
|
and t.scheme_id = #{jobPO.schemeId}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" isKey != null ">
|
|
|
|
<if test=" jobPO.isKey != null ">
|
|
|
|
and t.is_key = #{isKey}
|
|
|
|
and t.is_key = #{jobPO.isKey}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" forbiddenTag != null ">
|
|
|
|
<if test=" jobPO.forbiddenTag != null ">
|
|
|
|
and t.forbidden_tag = #{forbiddenTag}
|
|
|
|
and t.forbidden_tag = #{jobPO.forbiddenTag}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
order by show_order
|
|
|
|
order by ${orderSql}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="listNoFilter" resultType="com.engine.organization.entity.job.dto.JobListDTO">
|
|
|
|
<select id="listNoFilter" resultType="com.engine.organization.entity.job.dto.JobListDTO">
|
|
|
@ -253,7 +253,7 @@
|
|
|
|
t.sequence_id = c.id
|
|
|
|
t.sequence_id = c.id
|
|
|
|
left join jcl_org_scheme d on
|
|
|
|
left join jcl_org_scheme d on
|
|
|
|
t.scheme_id = d.id
|
|
|
|
t.scheme_id = d.id
|
|
|
|
WHERE t.delete_type = 0 order by show_order
|
|
|
|
WHERE t.delete_type = 0 order by ${orderSql}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getJobById" resultMap="BaseResultMap">
|
|
|
|
<select id="getJobById" resultMap="BaseResultMap">
|
|
|
@ -311,23 +311,23 @@
|
|
|
|
FROM jcl_org_job t
|
|
|
|
FROM jcl_org_job t
|
|
|
|
WHERE t.delete_type = 0
|
|
|
|
WHERE t.delete_type = 0
|
|
|
|
<include refid="likeSQL"/>
|
|
|
|
<include refid="likeSQL"/>
|
|
|
|
<if test=" parentComp != null ">
|
|
|
|
<if test=" jobPO.parentComp != null ">
|
|
|
|
and t.parent_comp = #{parentComp}
|
|
|
|
and t.parent_comp = #{jobPO.parentComp}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" parentDept != null ">
|
|
|
|
<if test=" jobPO.parentDept != null ">
|
|
|
|
and t.parent_dept = #{parentDept}
|
|
|
|
and t.parent_dept = #{jobPO.parentDept}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" sequenceId != null ">
|
|
|
|
<if test=" jobPO.sequenceId != null ">
|
|
|
|
and t.sequence_id = #{sequenceId}
|
|
|
|
and t.sequence_id = #{jobPO.sequenceId}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" schemeId != null ">
|
|
|
|
<if test=" jobPO.schemeId != null ">
|
|
|
|
and t.scheme_id = #{schemeId}
|
|
|
|
and t.scheme_id = #{jobPO.schemeId}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" isKey != null ">
|
|
|
|
<if test=" jobPO.isKey != null ">
|
|
|
|
and t.is_key = #{isKey}
|
|
|
|
and t.is_key = #{jobPO.isKey}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" forbiddenTag != null ">
|
|
|
|
<if test=" jobPO.forbiddenTag != null ">
|
|
|
|
and t.forbidden_tag = #{forbiddenTag}
|
|
|
|
and t.forbidden_tag = #{jobPO.forbiddenTag}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="getMaxShowOrder" resultType="java.lang.Integer">
|
|
|
|
<select id="getMaxShowOrder" resultType="java.lang.Integer">
|
|
|
@ -337,65 +337,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="likeSQL">
|
|
|
|
<sql id="likeSQL">
|
|
|
|
<if test=" jobNo != null and jobNo != '' ">
|
|
|
|
<if test=" jobPO.jobNo != null and jobPO.jobNo != '' ">
|
|
|
|
and t.job_no like CONCAT('%',#{jobNo},'%')
|
|
|
|
and t.job_no like CONCAT('%',#{jobPO.jobNo},'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" jobName != null and jobName != '' ">
|
|
|
|
<if test=" jobPO.jobName != null and jobPO.jobName != '' ">
|
|
|
|
and t.job_name like CONCAT('%',#{jobName},'%')
|
|
|
|
and t.job_name like CONCAT('%',#{jobPO.jobName},'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" workplace != null and workplace != '' ">
|
|
|
|
<if test=" jobPO.workplace != null and jobPO.workplace != '' ">
|
|
|
|
and t.workplace like CONCAT('%',#{workplace},'%')
|
|
|
|
and t.workplace like CONCAT('%',#{jobPO.workplace},'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" description != null and description != '' ">
|
|
|
|
<if test=" jobPO.description != null and jobPO.description != '' ">
|
|
|
|
and t.description like CONCAT('%',#{description},'%')
|
|
|
|
and t.description like CONCAT('%',#{jobPO.description},'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" workDuty != null and workDuty != '' ">
|
|
|
|
<if test=" jobPO.workDuty != null and jobPO.workDuty != '' ">
|
|
|
|
and t.work_duty like CONCAT('%',#{workDuty},'%')
|
|
|
|
and t.work_duty like CONCAT('%',#{jobPO.workDuty},'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" workAuthority != null and workAuthority != '' ">
|
|
|
|
<if test=" jobPO.workAuthority != null and jobPO.workAuthority != '' ">
|
|
|
|
and t.work_authority like CONCAT('%',#{workAuthority},'%')
|
|
|
|
and t.work_authority like CONCAT('%',#{jobPO.workAuthority},'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="likeSQL" databaseId="oracle">
|
|
|
|
<sql id="likeSQL" databaseId="oracle">
|
|
|
|
<if test=" jobNo != null and jobNo != '' ">
|
|
|
|
<if test=" jobPO.jobNo != null and jobPO.jobNo != '' ">
|
|
|
|
and t.job_no like '%'||#{jobNo}||'%'
|
|
|
|
and t.job_no like '%'||#{jobPO.jobNo}||'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" jobName != null and jobName != '' ">
|
|
|
|
<if test=" jobPO.jobName != null and jobPO.jobName != '' ">
|
|
|
|
and t.job_name like '%'||#{jobName}||'%'
|
|
|
|
and t.job_name like '%'||#{jobPO.jobName}||'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" workplace != null and workplace != '' ">
|
|
|
|
<if test=" jobPO.workplace != null and jobPO.workplace != '' ">
|
|
|
|
and t.workplace like '%'||#{workplace}||'%'
|
|
|
|
and t.workplace like '%'||#{jobPO.workplace}||'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" description != null and description != '' ">
|
|
|
|
<if test=" jobPO.description != null and jobPO.description != '' ">
|
|
|
|
and t.description like '%'||#{description}||'%'
|
|
|
|
and t.description like '%'||#{jobPO.description}||'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" workDuty != null and workDuty != '' ">
|
|
|
|
<if test=" jobPO.workDuty != null and jobPO.workDuty != '' ">
|
|
|
|
and t.work_duty like '%'||#{workDuty}||'%'
|
|
|
|
and t.work_duty like '%'||#{jobPO.workDuty}||'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" workAuthority != null and workAuthority != '' ">
|
|
|
|
<if test=" jobPO.workAuthority != null and jobPO.workAuthority != '' ">
|
|
|
|
and t.work_authority like '%'||#{workAuthority}||'%'
|
|
|
|
and t.work_authority like '%'||#{jobPO.workAuthority}||'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="likeSQL" databaseId="sqlserver">
|
|
|
|
<sql id="likeSQL" databaseId="sqlserver">
|
|
|
|
<if test=" jobNo != null and jobNo != '' ">
|
|
|
|
<if test=" jobPO.jobNo != null and jobPO.jobNo != '' ">
|
|
|
|
and t.job_no like '%'+#{jobNo}+'%'
|
|
|
|
and t.job_no like '%'+#{jobPO.jobNo}+'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" jobName != null and jobName != '' ">
|
|
|
|
<if test=" jobPO.jobName != null and jobPO.jobName != '' ">
|
|
|
|
and t.job_name like '%'+#{jobName}+'%'
|
|
|
|
and t.job_name like '%'+#{jobPO.jobName}+'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" workplace != null and workplace != '' ">
|
|
|
|
<if test=" jobPO.workplace != null and jobPO.workplace != '' ">
|
|
|
|
and t.workplace like '%'+#{workplace}+'%'
|
|
|
|
and t.workplace like '%'+#{jobPO.workplace}+'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" description != null and description != '' ">
|
|
|
|
<if test=" jobPO.description != null and jobPO.description != '' ">
|
|
|
|
and t.description like '%'+#{description}+'%'
|
|
|
|
and t.description like '%'+#{jobPO.description}+'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" workDuty != null and workDuty != '' ">
|
|
|
|
<if test=" jobPO.workDuty != null and jobPO.workDuty != '' ">
|
|
|
|
and t.work_duty like '%'+#{workDuty}+'%'
|
|
|
|
and t.work_duty like '%'+#{jobPO.workDuty}+'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test=" workAuthority != null and workAuthority != '' ">
|
|
|
|
<if test=" jobPO.workAuthority != null and jobPO.workAuthority != '' ">
|
|
|
|
and t.work_authority like '%'+#{workAuthority}+'%'
|
|
|
|
and t.work_authority like '%'+#{jobPO.workAuthority}+'%'
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|