charge_record_id, uid, room_uid, pingxx_charge_id, charge_prod_id, channel, buss_type, charge_status, charge_status_desc, amount, total_gold, client_ip, wx_pub_openid, subject, body, extra, metadata, charge_desc, create_time, update_time c.charge_record_id as charge_record_id, c.pingxx_charge_id as pingxx_charge_id, c.channel as channel,c.buss_type as buss_type, c.charge_status as charge_status, c.amount as amount, c.total_gold as total_gold, c.client_ip as client_ip, c.subject as subject,c.charge_desc as charge_desc, c.create_time as create_time, c.update_time as update_time, u.uid as uid,u.erban_no as erban_no,u.phone as phone ,u.nick as nick,u.os as os,u.gender as gender insert into charge_record (charge_record_id, uid, room_uid, pingxx_charge_id, charge_prod_id, channel, buss_type, charge_status, charge_status_desc, amount, total_gold, client_ip, wx_pub_openid, subject, body, extra, metadata, charge_desc, create_time, update_time) values (#{chargeRecordId,jdbcType=VARCHAR}, #{uid,jdbcType=BIGINT}, #{roomUid,jdbcType=BIGINT}, #{pingxxChargeId,jdbcType=VARCHAR}, #{chargeProdId,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{bussType,jdbcType=TINYINT}, #{chargeStatus,jdbcType=TINYINT}, #{chargeStatusDesc,jdbcType=VARCHAR}, #{amount,jdbcType=BIGINT}, #{totalGold,jdbcType=BIGINT}, #{clientIp,jdbcType=VARCHAR}, #{wxPubOpenid,jdbcType=VARCHAR}, #{subject,jdbcType=VARCHAR}, #{body,jdbcType=VARCHAR}, #{extra,jdbcType=VARCHAR}, #{metadata,jdbcType=VARCHAR}, #{chargeDesc,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) insert into charge_record charge_record_id, uid, room_uid, pingxx_charge_id, charge_prod_id, channel, buss_type, charge_status, charge_status_desc, amount, total_gold, client_ip, wx_pub_openid, subject, body, extra, metadata, charge_desc, create_time, update_time, #{chargeRecordId,jdbcType=VARCHAR}, #{uid,jdbcType=BIGINT}, #{roomUid,jdbcType=BIGINT}, #{pingxxChargeId,jdbcType=VARCHAR}, #{chargeProdId,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{bussType,jdbcType=TINYINT}, #{chargeStatus,jdbcType=TINYINT}, #{chargeStatusDesc,jdbcType=VARCHAR}, #{amount,jdbcType=BIGINT}, #{totalGold,jdbcType=BIGINT}, #{clientIp,jdbcType=VARCHAR}, #{wxPubOpenid,jdbcType=VARCHAR}, #{subject,jdbcType=VARCHAR}, #{body,jdbcType=VARCHAR}, #{extra,jdbcType=VARCHAR}, #{metadata,jdbcType=VARCHAR}, #{chargeDesc,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, update charge_record uid = #{uid,jdbcType=BIGINT}, room_uid = #{roomUid,jdbcType=BIGINT}, pingxx_charge_id = #{pingxxChargeId,jdbcType=VARCHAR}, charge_prod_id = #{chargeProdId,jdbcType=VARCHAR}, channel = #{channel,jdbcType=VARCHAR}, buss_type = #{bussType,jdbcType=TINYINT}, charge_status = #{chargeStatus,jdbcType=TINYINT}, charge_status_desc = #{chargeStatusDesc,jdbcType=VARCHAR}, amount = #{amount,jdbcType=BIGINT}, total_gold = #{totalGold,jdbcType=BIGINT}, client_ip = #{clientIp,jdbcType=VARCHAR}, wx_pub_openid = #{wxPubOpenid,jdbcType=VARCHAR}, subject = #{subject,jdbcType=VARCHAR}, body = #{body,jdbcType=VARCHAR}, extra = #{extra,jdbcType=VARCHAR}, metadata = #{metadata,jdbcType=VARCHAR}, charge_desc = #{chargeDesc,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, where charge_record_id = #{chargeRecordId,jdbcType=VARCHAR} update charge_record set uid = #{uid,jdbcType=BIGINT}, room_uid = #{roomUid,jdbcType=BIGINT}, pingxx_charge_id = #{pingxxChargeId,jdbcType=VARCHAR}, charge_prod_id = #{chargeProdId,jdbcType=VARCHAR}, channel = #{channel,jdbcType=VARCHAR}, buss_type = #{bussType,jdbcType=TINYINT}, charge_status = #{chargeStatus,jdbcType=TINYINT}, charge_status_desc = #{chargeStatusDesc,jdbcType=VARCHAR}, amount = #{amount,jdbcType=BIGINT}, total_gold = #{totalGold,jdbcType=BIGINT}, client_ip = #{clientIp,jdbcType=VARCHAR}, wx_pub_openid = #{wxPubOpenid,jdbcType=VARCHAR}, subject = #{subject,jdbcType=VARCHAR}, body = #{body,jdbcType=VARCHAR}, extra = #{extra,jdbcType=VARCHAR}, metadata = #{metadata,jdbcType=VARCHAR}, charge_desc = #{chargeDesc,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP} where charge_record_id = #{chargeRecordId,jdbcType=VARCHAR} u.def_user!='3' AND u.erban_no=#{erbanNo} AND u.os=#{osType} and c.charge_record_id = #{recordId} and c.pingxx_charge_id = #{pingxxId} AND u.gender=#{gender} AND c.charge_prod_id=#{chargeType} AND c.create_time >= #{beginTime} AND c.create_time <= #{endTime} AND c.charge_status=#{payStatus} AND c.channel=#{payChannel} and not c.charge_prod_id in ('exchange','company') and c.charge_prod_id = 'exchange' and c.charge_prod_id = 'company'