select d.id, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.work_type, d.risk_level, d.work_description, d.work_people_number, d.hpjb, d.estimate_worktime, d.bookingticket_id, d.dept_id ,
d.whgzxkzh,d.dhzyxkzh,d.xzkjxkzh,d.mbzyxkzh,d.gczyxkzh,d.gczyjb,d.reservation_number,d.tag,d.yqxkzh,d.xpxp,s.dept_name from t_invoice_workcontent d
left join sys_dept s on s.dept_id = d.dept_id
SELECT T_INVOICE_WORKCONTENT_SEQ.NEXTVAL as id FROM DUAL
insert into t_invoice_workcontent
id,
del_flag,
creater_code,
createdate,
updater_code,
updatedate,
work_type,
risk_level,
work_description,
work_people_number,
hpjb,
estimate_worktime,
bookingticket_id,
dept_id,
reservation_number,
whgzxkzh,
dhzyxkzh,
xzkjxkzh,
mbzyxkzh,
gczyxkzh,
gczyjb,
xpxp,
yqxkzh,
tag,
#{id},
#{delFlag},
#{createrCode},
#{createdate},
#{updaterCode},
#{updatedate},
#{workType},
#{riskLevel},
#{workDescription},
#{workPeopleNumber},
#{hpjb},
#{estimateWorktime},
#{bookingticketId},
#{deptId},
#{reservationNumber},
#{whgzxkzh},
#{dhzyxkzh},
#{xzkjxkzh},
#{mbzyxkzh},
#{gczyxkzh},
#{gczyjb},
#{xpxp},
#{yqxkzh},
#{tag},
update t_invoice_workcontent
del_flag = #{delFlag},
creater_code = #{createrCode},
createdate = #{createdate},
updater_code = #{updaterCode},
updatedate = #{updatedate},
work_type = #{workType},
risk_level = #{riskLevel},
work_description = #{workDescription},
work_people_number = #{workPeopleNumber},
hpjb = #{hpjb},
estimate_worktime = #{estimateWorktime},
bookingticket_id = #{bookingticketId},
dept_id = #{deptId},
reservation_number = #{reservationNumber},
whgzxkzh = #{whgzxkzh},
dhzyxkzh = #{dhzyxkzh},
xzkjxkzh = #{xzkjxkzh},
mbzyxkzh = #{mbzyxkzh},
gczyxkzh = #{gczyxkzh},
gczyjb = #{gczyjb},
tag = #{tag},
yqxkzh = #{yqxkzh},
xpxp = #{xpxp},
where id = #{id}
update t_invoice_workcontent set del_flag = 2 where id = #{id}
update t_invoice_workcontent set del_flag = 2 where id in
#{id}