left join sys_user u on u.user_name=a.create_by
left join sys_dept d on u.dept_id = d.dept_id
left join quot q on q.quot_hj_id = a.quot_hj_id
left join quot_jsqr j on j.quot_jsqr_id = q.quot_jsxz_confirm_id
select a.quot_hj_id, a.quot_hj_code, a.quot_hj_pricing_type, a.quot_hj_pricing_date, a.quot_hj_remark,
a.create_by, a.create_time, a.update_by, a.update_time,
u.nick_name create_name,
q.quot_hj_approval_status,q.quot_id,q.quot_code,q.quot_salesman_name,
q.quot_customer_name,q.quot_project,
q.quot_jsxz_confirm_id,q.quot_jsxz_group_values,
j.quot_jsqr_tl_approval_status,j.quot_jsqr_tl_remark,
j.quot_jsqr_dy_approval_status,j.quot_jsqr_dy_remark,
j.quot_jsqr_zy_approval_status,j.quot_jsqr_zy_remark,
j.quot_jsqr_qt_approval_status,j.quot_jsqr_qt_remark
from quot_hj a
insert into quot_hj
quot_hj_id,quot_hj_code,quot_hj_pricing_type,quot_hj_pricing_date,quot_hj_remark,create_by,create_time,update_by,update_time,#{quotHjId},#{quotHjCode},#{quotHjPricingType},#{quotHjPricingDate},#{quotHjRemark},#{createBy},#{createTime},#{updateBy},#{updateTime},
update quot_hj
quot_hj_code = #{quotHjCode},quot_hj_pricing_type = #{quotHjPricingType},quot_hj_pricing_date = #{quotHjPricingDate},quot_hj_remark = #{quotHjRemark},create_by = #{createBy},create_time = #{createTime},update_by = #{updateBy},update_time = #{updateTime},
where quot_hj_id = #{quotHjId}
delete from quot_hj where quot_hj_id = #{quotHjId}
delete from quot_hj where quot_hj_id in
#{quotHjId}