guid, fk_customer_guid, order_no,customer_name,customer_type, order_amount,
order_carbon_amount, order_status,state, create_user, create_time, modified_user,
modified_time,pay_no
delete from t_goods_order_info
where guid = #{guid,jdbcType=CHAR}
insert into t_goods_order_info (guid, fk_customer_guid, order_no,
customer_name,customer_type,order_amount, order_carbon_amount, order_status,
state, create_user, create_time,
modified_user, modified_time,pay_no)
values (#{guid,jdbcType=CHAR}, #{fkCustomerGuid,jdbcType=CHAR}, #{orderNo,jdbcType=CHAR},
#{customerName,jdbcType=VARCHAR},#{customerType,jdbcType=VARCHAR},#{orderAmount,jdbcType=DECIMAL},
#{orderCarbonAmount,jdbcType=DECIMAL}, #{orderStatus,jdbcType=INTEGER},
#{state,jdbcType=INTEGER}, #{createUser,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP},
#{modifiedUser,jdbcType=CHAR}, #{modifiedTime,jdbcType=TIMESTAMP},#{payNo,jdbcType=VARCHAR})
insert into t_goods_order_info
guid,
fk_customer_guid,
order_no,
customer_name,
customer_type,
order_amount,
order_carbon_amount,
order_status,
state,
create_user,
create_time,
modified_user,
modified_time,
pay_no,
#{guid,jdbcType=CHAR},
#{fkCustomerGuid,jdbcType=CHAR},
#{orderNo,jdbcType=CHAR},
#{customerName,jdbcType=VARCHAR},
#{customerType,jdbcType=VARCHAR},
#{orderAmount,jdbcType=DECIMAL},
#{orderCarbonAmount,jdbcType=DECIMAL},
#{orderStatus,jdbcType=INTEGER},
#{state,jdbcType=INTEGER},
#{createUser,jdbcType=CHAR},
#{createTime,jdbcType=TIMESTAMP},
#{modifiedUser,jdbcType=CHAR},
#{modifiedTime,jdbcType=TIMESTAMP},
#{payNo,jdbcType=VARCHAR},
update t_goods_order_info
fk_customer_guid = #{fkCustomerGuid,jdbcType=CHAR},
order_no = #{orderNo,jdbcType=CHAR},
customer_name = #{customerName,jdbcType=VARCHAR},
customer_type = #{customerType,jdbcType=VARCHAR},
order_amount = #{orderAmount,jdbcType=DECIMAL},
order_carbon_amount = #{orderCarbonAmount,jdbcType=DECIMAL},
order_status = #{orderStatus,jdbcType=INTEGER},
state = #{state,jdbcType=INTEGER},
create_user = #{createUser,jdbcType=CHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
modified_user = #{modifiedUser,jdbcType=CHAR},
modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
pay_no = #{payNo,jdbcType=VARCHAR},
where guid = #{guid,jdbcType=CHAR}
update t_goods_order_info
set fk_customer_guid = #{fkCustomerGuid,jdbcType=CHAR},
order_no = #{orderNo,jdbcType=CHAR},
customer_name = #{customerName,jdbcType=VARCHAR},
customer_type = #{customerType,jdbcType=VARCHAR},
order_amount = #{orderAmount,jdbcType=DECIMAL},
order_carbon_amount = #{orderCarbonAmount,jdbcType=DECIMAL},
order_status = #{orderStatus,jdbcType=INTEGER},
state = #{state,jdbcType=INTEGER},
create_user = #{createUser,jdbcType=CHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
modified_user = #{modifiedUser,jdbcType=CHAR},
modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
pay_no = #{payNo,jdbcType=VARCHAR}
where guid = #{guid,jdbcType=CHAR}
update t_goods_order_info
set fk_customer_guid = #{newId}
where fk_customer_guid = #{oldId}