t
.
id
,
t.job_no,
t.job_name,
t.parent_comp,
t.parent_dept,
t.ec_company,
t.ec_department,
t.sequence_id,
t.scheme_id,
t.parent_job,
t.is_key,
t.workplace,
t.description,
t.work_duty,
t.work_authority,
t.show_order,
t.forbidden_tag
INSERT INTO jcl_org_job
creator,
delete_type,
create_time,
update_time,
job_no,
job_name,
parent_comp,
parent_dept,
sequence_id,
scheme_id,
parent_job,
is_key,
workplace,
description,
work_duty,
work_authority,
show_order,
forbidden_tag,
#{creator},
#{deleteType},
#{createTime},
#{updateTime},
#{jobNo},
#{jobName},
#{parentComp},
#{parentDept},
#{sequenceId},
#{schemeId},
#{parentJob},
#{isKey},
#{workplace},
#{description},
#{workDuty},
#{workAuthority},
#{showOrder},
0,
select JCL_ORG_JOB_ID.currval from dual
INSERT INTO jcl_org_job
creator,
delete_type,
create_time,
update_time,
job_no,
job_name,
parent_comp,
parent_dept,
sequence_id,
scheme_id,
parent_job,
is_key,
workplace,
description,
work_duty,
work_authority,
show_order,
forbidden_tag,
#{creator},
#{deleteType},
#{createTime},
#{updateTime},
#{jobNo},
#{jobName},
#{parentComp},
#{parentDept},
#{sequenceId},
#{schemeId},
#{parentJob},
#{isKey},
#{workplace},
#{description},
#{workDuty},
#{workAuthority},
#{showOrder},
0,
update jcl_org_job
creator=#{creator},
update_time=#{updateTime},
job_name=#{jobName},
parent_comp=#{parentComp},
parent_dept=#{parentDept},
sequence_id=#{sequenceId},
scheme_id=#{schemeId},
parent_job=#{parentJob},
is_key=#{isKey},
workplace=#{workplace},
description=#{description},
work_duty=#{workDuty},
work_authority=#{workAuthority},
show_order=#{showOrder},
forbidden_tag=#{forbiddenTag},
WHERE id = #{id} AND delete_type = 0
update jcl_org_job
forbidden_tag=#{forbiddenTag},
WHERE id = #{id} AND delete_type = 0
UPDATE jcl_org_job
SET delete_type = 1
WHERE delete_type = 0
AND id IN
#{id}
and ifnull(parent_job,0) =
#{parentJob}
and isnull(parent_job,0) =
#{parentJob}
and NVL(parent_job,0) =
#{parentJob}
and ifnull(parent_dept,0) =
#{parentDepartment}
and isnull(parent_dept,0) =
#{parentDepartment}
and NVL(parent_dept,0) =
#{parentDepartment}
and t.job_no like CONCAT('%',#{jobPO.jobNo},'%')
and t.job_name like CONCAT('%',#{jobPO.jobName},'%')
and t.workplace like CONCAT('%',#{jobPO.workplace},'%')
and t.description like CONCAT('%',#{jobPO.description},'%')
and t.work_duty like CONCAT('%',#{jobPO.workDuty},'%')
and t.work_authority like CONCAT('%',#{jobPO.workAuthority},'%')
and t.job_no like '%'||#{jobPO.jobNo}||'%'
and t.job_name like '%'||#{jobPO.jobName}||'%'
and t.workplace like '%'||#{jobPO.workplace}||'%'
and t.description like '%'||#{jobPO.description}||'%'
and t.work_duty like '%'||#{jobPO.workDuty}||'%'
and t.work_authority like '%'||#{jobPO.workAuthority}||'%'
and t.job_no like '%'+#{jobPO.jobNo}+'%'
and t.job_name like '%'+#{jobPO.jobName}+'%'
and t.workplace like '%'+#{jobPO.workplace}+'%'
and t.description like '%'+#{jobPO.description}+'%'
and t.work_duty like '%'+#{jobPO.workDuty}+'%'
and t.work_authority like '%'+#{jobPO.workAuthority}+'%'