create_by, create_time, update_by, update_time, id, refund_no, order_id, user_id, refund_cause, refund_money, handler, handing_time, refund_transaction_no, remarks, refund_waybill_no, logistics_company, apply_time, refund_time, refund_type, audit_status, refund_status, refund_goods_status, refund_refuse_reason, company_id #{item.createBy}, now(), #{item.updateBy}, now(), #{item.id}, #{item.refundNo}, #{item.orderId}, #{item.userId}, #{item.refundCause}, #{item.refundMoney}, #{item.handler}, #{item.handingTime}, #{item.refundTransactionNo}, #{item.remarks}, #{item.refundWaybillNo}, #{item.logisticsCompany}, #{item.applyTime}, #{item.refundTime}, #{item.refundType}, #{item.auditStatus}, #{item.refundStatus}, #{item.refundGoodsStatus}, #{item.refundRefuseReason}, #{item.companyId} and id = #{record.id} and refund_no = #{record.refundNo} and order_id = #{record.orderId} and user_id = #{record.userId} and refund_cause = #{record.refundCause} and refund_money = #{record.refundMoney} and handler like concat('%',#{record.handler},'%') and handing_time = #{record.handingTime} and refund_transaction_no = #{record.refundTransactionNo} and remarks = #{record.remarks} and refund_waybill_no like concat('%', #{record.refundWaybillNo}, '%') and logistics_company like concat('%',#{record.logisticsCompany},'%') and apply_time = #{record.applyTime} and refund_time = #{record.refundTime} and refund_type = #{record.refundType} and audit_status = #{record.auditStatus} and refund_status = #{record.refundStatus} and refund_goods_status = #{record.refundGoodsStatus} and refund_refuse_reason = #{record.refundRefuseReason} and u.nick_name like concat('%',#{record.nickName},'%') and o.order_no like concat('%', #{record.orderNo}, '%') and date_format(apply_time, '%Y-%m-%d') >= #{record.refundBeginTime} and #{record.refundEndTime} >= date_format(apply_time, '%Y-%m-%d') and r.company_id = #{record.companyId} INSERT INTO shop_refund_record ( ) VALUES ( ) INSERT INTO shop_refund_record ( ) VALUES ( ) UPDATE shop_refund_record refund_no = #{refundNo}, order_id = #{orderId}, user_id = #{userId}, refund_cause = #{refundCause}, refund_money = #{refundMoney}, handler = #{handler}, handing_time = #{handingTime}, refund_transaction_no = #{refundTransactionNo}, remarks = #{remarks}, refund_waybill_no = #{refundWaybillNo}, logistics_company = #{logisticsCompany}, apply_time = #{applyTime}, refund_time = #{refundTime}, refund_type = #{refundType}, audit_status = #{auditStatus}, refund_status = #{refundStatus}, refund_goods_status = #{refundGoodsStatus}, refund_refuse_reason = #{refundRefuseReason}, WHERE id=#{id} UPDATE shop_refund_record refund_no = #{record.refundNo}, order_id = #{record.orderId}, user_id = #{record.userId}, refund_cause = #{record.refundCause}, refund_money = #{record.refundMoney}, handler = #{record.handler}, handing_time = #{record.handingTime}, refund_transaction_no = #{record.refundTransactionNo}, remarks = #{record.remarks}, refund_waybill_no = #{record.refundWaybillNo}, logistics_company = #{record.logisticsCompany}, apply_time = #{record.applyTime}, refund_time = #{record.refundTime}, refund_type = #{record.refundType}, audit_status = #{record.auditStatus}, refund_status = #{record.refundStatus}, refund_goods_status = #{record.refundGoodsStatus}, refund_refuse_reason = #{record.refundRefuseReason}, WHERE id=#{record.id} update shop_refund_record refund_goods_status = #{state}, where id in #{item} update shop_refund_record refund_status = #{state}, refund_time = now(), where id = #{id} update shop_refund_record refund_status = #{state}, where id = #{id} delete from shop_refund_record where id in #{item} DELETE FROM shop_refund_record where id=#{id} DELETE FROM shop_refund_record