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_ht_id = a.quot_hj_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_code,q.quot_salesman_name, q.quot_customer_name,q.quot_project 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}