A.oc_id,
A.customer_id,
A.customer_name,
A.customer_code,
A.customer_card_no,
A.wx_id,
A.customer_remark
INSERT INTO customer
oc_id,
customer_id,
customer_name,
customer_code,
customer_card_no,
customer_phone,
customer_remark,
wx_id,
created_by,
created_at,
#{ocId,jdbcType=BIGINT},
#{customerId ,jdbcType=BIGINT},
#{customerName ,jdbcType=VARCHAR},
#{customerCode ,jdbcType=VARCHAR},
#{customerCardNo ,jdbcType=VARCHAR},
#{customerPhone ,jdbcType=VARCHAR},
#{customerRemark ,jdbcType=VARCHAR},
#{wxId ,jdbcType=VARCHAR},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE customer
customer_name = #{customerName, jdbcType=VARCHAR},
customer_code = #{customerCode ,jdbcType=VARCHAR},
customer_card_no = #{customerCardNo ,jdbcType=VARCHAR},
customer_phone = #{customerPhone ,jdbcType=VARCHAR},
customer_remark = #{customerRemark, jdbcType=VARCHAR},
wx_id = #{wxId ,jdbcType=VARCHAR},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE oc_id = #{ocId ,jdbcType=BIGINT}
AND customer_id = #{customerId ,jdbcType=BIGINT}
UPDATE customer
deleted_flag = #{deletedFlag,jdbcType=BIGINT},
deleted_time = #{deletedTime,jdbcType=TIMESTAMP},
deleted_by = #{deletedBy,jdbcType=BIGINT},
WHERE 1 = 1
AND oc_id = #{ocId,jdbcType=BIGINT}
AND customer_id = #{customerId ,jdbcType=BIGINT}