id, type, sqdscqqpch, sqdscqqlsh, sqdh, sqsm, yysbz, xxblx, yfp_dm, yfp_hm, yfp_kprq, invoice_type, fpzl_dm, tksj, nsrsbh, xhf_mc, xhf_nsrsbh, xhf_dz, xhf_dh, xhf_yh, xhf_zh, ghf_mc, ghf_nsrsbh, ghf_dz, ghf_dh, ghf_yh, ghf_zh, ghfqylx, hjbhsje, hjse, kphjje, dslbz, xxbbh, bmbbbh, kpzt, fpdm, fphm, sld, sld_mc, fjh, chyy, kpr, fhr, skr, agent_name, status_code, status_message, creator_id, creator_name, editor_id, editor_name, create_time, update_time, data_status,scfg_status,xzfg_status,ywddh, uuid,lrfsf,sfzzfpbz,lzhjje,lzhjse,lzfppzdm,lzfptdyslxdm,hzqrdmxsl,qrrq and type = #{type,jdbcType=VARCHAR} and sqdscqqpch = #{sqdscqqpch,jdbcType=VARCHAR} and sqdscqqlsh = #{sqdscqqlsh,jdbcType=VARCHAR} and sqdh = #{sqdh,jdbcType=VARCHAR} and ywddh = #{ywddh,jdbcType=VARCHAR} and sqsm = #{sqsm,jdbcType=VARCHAR} and yysbz = #{yysbz,jdbcType=VARCHAR} and xxblx = #{xxblx,jdbcType=VARCHAR} and yfp_dm = #{yfpDm,jdbcType=VARCHAR} and yfp_hm = #{yfpHm,jdbcType=VARCHAR} and yfp_kprq = #{yfpKprq,jdbcType=TIMESTAMP} and invoice_type = #{invoiceType,jdbcType=VARCHAR} and fpzl_dm = #{fpzlDm,jdbcType=VARCHAR} and tksj = #{tksj,jdbcType=TIMESTAMP} and nsrsbh = #{nsrsbh,jdbcType=VARCHAR} and xhf_mc = #{xhfMc,jdbcType=VARCHAR} and xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR} and xhf_dz = #{xhfDz,jdbcType=VARCHAR} and xhf_dh = #{xhfDh,jdbcType=VARCHAR} and xhf_yh = #{xhfYh,jdbcType=VARCHAR} and xhf_zh = #{xhfZh,jdbcType=VARCHAR} and ghf_mc = #{ghfMc,jdbcType=VARCHAR} and ghf_nsrsbh = #{ghfNsrsbh,jdbcType=VARCHAR} and ghf_dz = #{ghfDz,jdbcType=VARCHAR} and ghf_dh = #{ghfDh,jdbcType=VARCHAR} and ghf_yh = #{ghfYh,jdbcType=VARCHAR} and ghf_zh = #{ghfZh,jdbcType=VARCHAR} and ghfqylx = #{ghfqylx,jdbcType=VARCHAR} and hjbhsje = #{hjbhsje,jdbcType=VARCHAR} and hjse = #{hjse,jdbcType=VARCHAR} and kphjje = #{kphjje,jdbcType=VARCHAR} and dslbz = #{dslbz,jdbcType=VARCHAR} and xxbbh = #{xxbbh,jdbcType=VARCHAR} and bmbbbh = #{bmbbbh,jdbcType=VARCHAR} and kpzt = #{kpzt,jdbcType=VARCHAR} and fpdm = #{fpdm,jdbcType=VARCHAR} and fphm = #{fphm,jdbcType=VARCHAR} and sld = #{sld,jdbcType=VARCHAR} and sld_mc = #{sldMc,jdbcType=VARCHAR} and fjh = #{fjh,jdbcType=VARCHAR} and chyy = #{chyy,jdbcType=VARCHAR} and kpr = #{kpr,jdbcType=VARCHAR} and fhr = #{fhr,jdbcType=VARCHAR} and skr = #{skr,jdbcType=VARCHAR} and agent_name = #{agentName,jdbcType=VARCHAR} and status_code = #{statusCode,jdbcType=VARCHAR} and status_code != #{excluteStatus,jdbcType=VARCHAR} and status_message = #{statusMessage,jdbcType=VARCHAR} and creator_id = #{creatorId,jdbcType=VARCHAR} and creator_name = #{creatorName,jdbcType=VARCHAR} and editor_id = #{editorId,jdbcType=VARCHAR} and editor_name = #{editorName,jdbcType=VARCHAR} and create_time = #{createTime,jdbcType=TIMESTAMP} and update_time = #{updateTime,jdbcType=TIMESTAMP} and data_status = #{dataStatus,jdbcType=VARCHAR} and id = #{id,jdbcType=VARCHAR} and uuid = #{uuid,jdbcType=VARCHAR} and lrfsf = #{lrfsf,jdbcType=VARCHAR} and lzfppzdm = #{lzfppzdm,jdbcType=VARCHAR} and lzfptdyslxdm = #{lzfptdyslxdm,jdbcType=VARCHAR} and ( xhf_nsrsbh in #{tc,jdbcType=VARCHAR} or ghf_nsrsbh in #{tc,jdbcType=VARCHAR} ) and ( xhf_nsrsbh =#{xfsh,jdbcType=VARCHAR} or ghf_nsrsbh = #{xfsh,jdbcType=VARCHAR} ) and ghf_mc like concat(concat('%', #{buyerName}), '%') and xhf_mc like concat(concat('%', #{sellerName}), '%') and status_code = #{submitStatus,jdbcType=VARCHAR} and status_code not in('TZD0500', 'TZD0000', 'TZD0501') and status_code not in #{excludeSubmitStatus,jdbcType=VARCHAR} and yfp_dm = #{invoiceCode,jdbcType=VARCHAR} and yfp_hm = #{invoiceNo,jdbcType=VARCHAR} and tksj >= #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR} >= tksj and kpzt = #{status,jdbcType=VARCHAR} and fpzl_dm in #{fpzl,jdbcType=VARCHAR} and fpzl_dm = #{fpzl,jdbcType=VARCHAR} and sqdscqqpch = #{sqbscqqpch,jdbcType=VARCHAR} and xxbbh = #{xxbbh,jdbcType=VARCHAR} and uuid = #{uuid,jdbcType=VARCHAR} and lrfsf = #{lrfsf,jdbcType=VARCHAR} and lzfppzdm = #{lzfppzdm,jdbcType=VARCHAR} and lzfptdyslxdm = #{lzfptdyslxdm,jdbcType=VARCHAR} and (xhf_nsrsbh in #{tc,jdbcType=VARCHAR} or ghf_nsrsbh in #{tc,jdbcType=VARCHAR} ) and (xhf_nsrsbh =#{xfsh,jdbcType=VARCHAR} or ghf_nsrsbh = #{xfsh,jdbcType=VARCHAR}) and xhf_mc like concat(concat('%', #{buyerName}), '%') and ghf_mc like concat(concat('%', #{sellerName}), '%') and status_code = #{submitStatus,jdbcType=VARCHAR} and status_code not in('TZD0500', 'TZD0000', 'TZD0501') and status_code not in #{excludeSubmitStatus,jdbcType=VARCHAR} and yfp_dm = #{invoiceCode,jdbcType=VARCHAR} and yfp_hm = #{invoiceNo,jdbcType=VARCHAR} and tksj >= #{startTime,jdbcType=VARCHAR} and tksj < #{endTime,jdbcType=VARCHAR} and kpzt = #{status,jdbcType=VARCHAR} and fpzl_dm in #{fpzl,jdbcType=VARCHAR} and fpzl_dm = #{fpzl,jdbcType=VARCHAR} and sqbscqqpch = #{sqbscqqpch,jdbcType=VARCHAR} and xxbbh = #{xxbbh,jdbcType=VARCHAR} insert into special_invoice_reversal id, type, sqdscqqpch, sqdscqqlsh, sqdh, ywddh, sqsm, yysbz, xxblx, yfp_dm, yfp_hm, yfp_kprq, invoice_type, fpzl_dm, tksj, nsrsbh, xhf_mc, xhf_nsrsbh, xhf_dz, xhf_dh, xhf_yh, xhf_zh, ghf_mc, ghf_nsrsbh, ghf_dz, ghf_dh, ghf_yh, ghf_zh, ghfqylx, hjbhsje, hjse, kphjje, dslbz, xxbbh, bmbbbh, kpzt, fpdm, fphm, sld, sld_mc, fjh, chyy, kpr, fhr, skr, agent_name, status_code, status_message, creator_id, creator_name, editor_id, editor_name, create_time, update_time, data_status, scfg_status, xzfg_status, uuid, lrfsf, sfzzfpbz, lzhjje, lzhjse, lzfppzdm, lzfptdyslxdm, hzqrdmxsl, qrrq, #{id,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{sqdscqqpch,jdbcType=VARCHAR}, #{sqdscqqlsh,jdbcType=VARCHAR}, #{sqdh,jdbcType=VARCHAR}, #{ywddh,jdbcType=VARCHAR}, #{sqsm,jdbcType=VARCHAR}, #{yysbz,jdbcType=VARCHAR}, #{xxblx,jdbcType=VARCHAR}, #{yfpDm,jdbcType=VARCHAR}, #{yfpHm,jdbcType=VARCHAR}, #{yfpKprq,jdbcType=TIMESTAMP}, #{invoiceType,jdbcType=VARCHAR}, #{fpzlDm,jdbcType=VARCHAR}, #{tksj,jdbcType=VARCHAR}, #{nsrsbh,jdbcType=VARCHAR}, #{xhfMc,jdbcType=VARCHAR}, #{xhfNsrsbh,jdbcType=VARCHAR}, #{xhfDz,jdbcType=VARCHAR}, #{xhfDh,jdbcType=VARCHAR}, #{xhfYh,jdbcType=VARCHAR}, #{xhfZh,jdbcType=VARCHAR}, #{ghfMc,jdbcType=VARCHAR}, #{ghfNsrsbh,jdbcType=VARCHAR}, #{ghfDz,jdbcType=VARCHAR}, #{ghfDh,jdbcType=VARCHAR}, #{ghfYh,jdbcType=VARCHAR}, #{ghfZh,jdbcType=VARCHAR}, #{ghfqylx,jdbcType=VARCHAR}, #{hjbhsje,jdbcType=VARCHAR}, #{hjse,jdbcType=VARCHAR}, #{kphjje,jdbcType=VARCHAR}, #{dslbz,jdbcType=VARCHAR}, #{xxbbh,jdbcType=VARCHAR}, #{bmbbbh,jdbcType=VARCHAR}, #{kpzt,jdbcType=VARCHAR}, #{fpdm,jdbcType=VARCHAR}, #{fphm,jdbcType=VARCHAR}, #{sld,jdbcType=VARCHAR}, #{sldMc,jdbcType=VARCHAR}, #{fjh,jdbcType=VARCHAR}, #{chyy,jdbcType=VARCHAR}, #{kpr,jdbcType=VARCHAR}, #{fhr,jdbcType=VARCHAR}, #{skr,jdbcType=VARCHAR}, #{agentName,jdbcType=VARCHAR}, #{statusCode,jdbcType=VARCHAR}, #{statusMessage,jdbcType=VARCHAR}, #{creatorId,jdbcType=VARCHAR}, #{creatorName,jdbcType=VARCHAR}, #{editorId,jdbcType=VARCHAR}, #{editorName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{dataStatus,jdbcType=VARCHAR}, #{scfgStatus,jdbcType=VARCHAR}, #{xzfgStatus,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR}, #{lrfsf,jdbcType=VARCHAR}, #{sfzzfpbz,jdbcType=VARCHAR}, #{lzhjje,jdbcType=VARCHAR}, #{lzhjse,jdbcType=VARCHAR}, #{lzfppzdm,jdbcType=VARCHAR}, #{lzfptdyslxdm,jdbcType=VARCHAR}, #{hzqrdmxsl,jdbcType=VARCHAR}, #{qrrq,jdbcType=VARCHAR}, update special_invoice_reversal type = #{type,jdbcType=VARCHAR}, sqdscqqpch = #{sqdscqqpch,jdbcType=VARCHAR}, sqdscqqlsh = #{sqdscqqlsh,jdbcType=VARCHAR}, sqdh = #{sqdh,jdbcType=VARCHAR}, ywddh = #{ywddh,jdbcType=VARCHAR}, sqsm = #{sqsm,jdbcType=VARCHAR}, yysbz = #{yysbz,jdbcType=VARCHAR}, xxblx = #{xxblx,jdbcType=VARCHAR}, yfp_dm = #{yfpDm,jdbcType=VARCHAR}, yfp_hm = #{yfpHm,jdbcType=VARCHAR}, yfp_kprq = #{yfpKprq,jdbcType=TIMESTAMP}, invoice_type = #{invoiceType,jdbcType=VARCHAR}, fpzl_dm = #{fpzlDm,jdbcType=VARCHAR}, tksj = #{tksj,jdbcType=VARCHAR}, nsrsbh = #{nsrsbh,jdbcType=VARCHAR}, xhf_mc = #{xhfMc,jdbcType=VARCHAR}, xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR}, xhf_dz = #{xhfDz,jdbcType=VARCHAR}, xhf_dh = #{xhfDh,jdbcType=VARCHAR}, xhf_yh = #{xhfYh,jdbcType=VARCHAR}, xhf_zh = #{xhfZh,jdbcType=VARCHAR}, ghf_mc = #{ghfMc,jdbcType=VARCHAR}, ghf_nsrsbh = #{ghfNsrsbh,jdbcType=VARCHAR}, ghf_dz = #{ghfDz,jdbcType=VARCHAR}, ghf_dh = #{ghfDh,jdbcType=VARCHAR}, ghf_yh = #{ghfYh,jdbcType=VARCHAR}, ghf_zh = #{ghfZh,jdbcType=VARCHAR}, ghfqylx = #{ghfqylx,jdbcType=VARCHAR}, hjbhsje = #{hjbhsje,jdbcType=VARCHAR}, hjse = #{hjse,jdbcType=VARCHAR}, kphjje = #{kphjje,jdbcType=VARCHAR}, dslbz = #{dslbz,jdbcType=VARCHAR}, xxbbh = #{xxbbh,jdbcType=VARCHAR}, bmbbbh = #{bmbbbh,jdbcType=VARCHAR}, kpzt = #{kpzt,jdbcType=VARCHAR}, fpdm = #{fpdm,jdbcType=VARCHAR}, fphm = #{fphm,jdbcType=VARCHAR}, sld = #{sld,jdbcType=VARCHAR}, sld_mc = #{sldMc,jdbcType=VARCHAR}, fjh = #{fjh,jdbcType=VARCHAR}, chyy = #{chyy,jdbcType=VARCHAR}, kpr = #{kpr,jdbcType=VARCHAR}, fhr = #{fhr,jdbcType=VARCHAR}, skr = #{skr,jdbcType=VARCHAR}, agent_name = #{agentName,jdbcType=VARCHAR}, status_code = #{statusCode,jdbcType=VARCHAR}, status_message = #{statusMessage,jdbcType=VARCHAR}, creator_id = #{creatorId,jdbcType=VARCHAR}, creator_name = #{creatorName,jdbcType=VARCHAR}, editor_id = #{editorId,jdbcType=VARCHAR}, editor_name = #{editorName,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, data_status = #{dataStatus,jdbcType=VARCHAR}, scfg_status = #{scfgStatus,jdbcType=VARCHAR}, xzfg_status = #{xzfgStatus,jdbcType=VARCHAR}, uuid = #{uuid,jdbcType=VARCHAR}, lrfsf = #{lrfsf,jdbcType=VARCHAR}, sfzzfpbz = #{sfzzfpbz,jdbcType=VARCHAR}, lzhjje = #{lzhjje,jdbcType=VARCHAR}, lzhjse = #{lzhjse,jdbcType=VARCHAR}, lzfppzdm = #{lzfppzdm,jdbcType=VARCHAR}, lzfptdyslxdm = #{lzfptdyslxdm,jdbcType=VARCHAR}, hzqrdmxsl = #{hzqrdmxsl,jdbcType=VARCHAR}, qrrq = #{qrrq,jdbcType=VARCHAR}, and id = #{id,jdbcType=VARCHAR} UPDATE special_invoice_reversal kpzt = #{kpzt,jdbcType=VARCHAR}, fpdm = #{fpdm,jdbcType=VARCHAR}, fphm = #{fphm,jdbcType=VARCHAR}, where xxbbh = #{xxbbh,jdbcType=VARCHAR} UPDATE special_invoice_reversal scfg_status = #{scfgStatus,jdbcType=VARCHAR} where sqdh = #{sqdh,jdbcType=VARCHAR}