select quot_id, quot_code, quot_salesman_bm, quot_salesman_name, quot_customer_bm,
quot_customer_name,quot_salesman_dept_id, quot_salesman_dept_name, quot_address,
quot_phone, quot_inquiry_date, quot_project, quot_quotation_date, quot_quotation_from,
quot_quotation_require, quot_feedback_explanation, quot_quantity, quot_total_price,
quot_check_user_name, quot_check_user_nickname, quot_approval_status,
create_by, create_time, update_by, update_time from quot
insert into quot
quot_id,
quot_code,
quot_salesman_bm,
quot_salesman_name,
quot_customer_bm,
quot_customer_name,
quot_salesman_dept_id,
quot_salesman_dept_name,
quot_address,
quot_phone,
quot_inquiry_date,
quot_project,
quot_quotation_date,
quot_quotation_from,
quot_quotation_require,
quot_feedback_explanation,
quot_quantity,
quot_total_price,
quot_check_user_name,
quot_check_user_nickname,
quot_approval_status,
create_by,
create_time,
update_by,
update_time,
#{quotId},
#{quotCode},
#{quotSalesmanBm},
#{quotSalesmanName},
#{quotCustomerBm},
#{quotCustomerName},
#{quotSalesmanDeptId},
#{quotSalesmanDeptName},
#{quotAddress},
#{quotPhone},
#{quotInquiryDate},
#{quotProject},
#{quotQuotationDate},
#{quotQuotationFrom},
#{quotQuotationRequire},
#{quotFeedbackExplanation},
#{quotQuantity},
#{quotTotalPrice},
#{quotCheckUserName},
#{quotCheckUserNickname},
#{quotApprovalStatus},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update quot
quot_code = #{quotCode},
quot_salesman_bm = #{quotSalesmanBm},
quot_salesman_name = #{quotSalesmanName},
quot_customer_bm = #{quotCustomerBm},
quot_customer_name = #{quotCustomerName},
quot_salesman_dept_id = #{quotSalesmanDeptId},
quot_salesman_dept_name = #{quotSalesmanDeptName},
quot_address = #{quotAddress},
quot_phone = #{quotPhone},
quot_inquiry_date = #{quotInquiryDate},
quot_project = #{quotProject},
quot_quotation_date = #{quotQuotationDate},
quot_quotation_from = #{quotQuotationFrom},
quot_quotation_require = #{quotQuotationRequire},
quot_feedback_explanation = #{quotFeedbackExplanation},
quot_quantity = #{quotQuantity},
quot_total_price = #{quotTotalPrice},
quot_check_user_name = #{quotCheckUserName},
quot_check_user_nickname = #{quotCheckUserNickname},
quot_approval_status = #{quotApprovalStatus},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where quot_id = #{quotId}
delete from quot where quot_id = #{quotId}
delete from quot where quot_id in
#{quotId}
delete from quot_material where quot_id in
#{quotId}
delete from quot_material where quot_id = #{quotId}
insert into quot_material( mat_id, mat_xingh, mat_guig, mat_diany, mat_danw, mat_sl, quot_id) values
( #{item.matId}, #{item.matXingh}, #{item.matGuig}, #{item.matDiany}, #{item.matDanw}, #{item.matSl}, #{item.quotId})