select d.id, d.change_id, d.ap_no, d.process_id, d.remarks, d.status, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id ,s.dept_name from t_eoeg_lock_apply d
left join sys_dept s on s.dept_id = d.dept_id
SELECT seq_t_eoeg_lock_apply.NEXTVAL as id FROM DUAL
insert into t_eoeg_lock_apply
id,change_id,ap_no,process_id,remarks,status,del_flag,creater_code,createdate,updater_code,updatedate,dept_id,#{id},#{changeId},#{apNo},#{processId},#{remarks},#{status},#{delFlag},#{createrCode},#{createdate},#{updaterCode},#{updatedate},#{deptId},
update t_eoeg_lock_apply
change_id = #{changeId},ap_no = #{apNo},process_id = #{processId},remarks = #{remarks},status = #{status},del_flag = #{delFlag},creater_code = #{createrCode},createdate = #{createdate},updater_code = #{updaterCode},updatedate = #{updatedate},dept_id = #{deptId},
where id = #{id}
update t_eoeg_lock_apply set del_flag = 2 where id = #{id}
update t_eoeg_lock_apply set del_flag = 2 where id in
#{id}