select reg_id, reg_salesman_code, reg_salesman_name, reg_company, reg_tax,
reg_state, reg_allow_tp_state, reg_allow_quot_state, create_by, create_time, update_by, update_time
from registered_company
insert into registered_company
reg_id,
reg_salesman_code,
reg_salesman_name,
reg_company,
reg_tax,
reg_state,
reg_allow_tp_state,
reg_allow_quot_state,
create_by,
create_time,
update_by,
update_time,
#{regId},
#{regSalesmanCode},
#{regSalesmanName},
#{regCompany},
#{regTax},
#{regState},
#{regAllowTpState},
#{regAllowQuotState},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update registered_company
reg_salesman_code = #{regSalesmanCode},
reg_salesman_name = #{regSalesmanName},
reg_company = #{regCompany},
reg_tax = #{regTax},
reg_state = #{regState},
reg_allow_tp_state = #{regAllowTpState},
reg_allow_quot_state = #{regAllowQuotState},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where reg_id = #{regId}
delete from registered_company where reg_id = #{regId}
delete from registered_company where reg_id in
#{regId}