<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.superdesk.uniorder.dao.mapper.thirdpart.szhtxx.paperInvoice.SzhtxxPaperInvoiceRedTaxInfoMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.paperInvoice.SzhtxxPaperInvoiceRedTaxInfo">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="batch_id" jdbcType="VARCHAR" property="batchId" />
    <result column="deleted" jdbcType="TINYINT" property="deleted" />
    <result column="return_code" jdbcType="VARCHAR" property="returnCode" />
    <result column="return_msg" jdbcType="VARCHAR" property="returnMsg" />
    <result column="red_tax_info_lsh" jdbcType="VARCHAR" property="redTaxInfoLsh" />
    <result column="red_tax_info_sn" jdbcType="VARCHAR" property="redTaxInfoSn" />
    <result column="red_tax_info_status" jdbcType="VARCHAR" property="redTaxInfoStatus" />
    <result column="red_tax_info_desc" jdbcType="VARCHAR" property="redTaxInfoDesc" />
    <result column="used" jdbcType="TINYINT" property="used" />
    <result column="fpdm" jdbcType="VARCHAR" property="fpdm" />
    <result column="fphm" jdbcType="VARCHAR" property="fphm" />
    <result column="fjh" jdbcType="VARCHAR" property="fjh" />
    <result column="ghf_nsrsbh" jdbcType="VARCHAR" property="ghfNsrsbh" />
    <result column="ghfmc" jdbcType="VARCHAR" property="ghfmc" />
    <result column="xhf_nsrsbh" jdbcType="VARCHAR" property="xhfNsrsbh" />
    <result column="xhfmc" jdbcType="VARCHAR" property="xhfmc" />
    <result column="ssyf" jdbcType="VARCHAR" property="ssyf" />
    <result column="kphjje" jdbcType="DECIMAL" property="kphjje" />
    <result column="hjbhsje" jdbcType="DECIMAL" property="hjbhsje" />
    <result column="sl" jdbcType="DECIMAL" property="sl" />
    <result column="hjse" jdbcType="DECIMAL" property="hjse" />
    <result column="reqf_code" jdbcType="VARCHAR" property="reqfCode" />
    <result column="reqf_name" jdbcType="VARCHAR" property="reqfName" />
    <result column="req_explain" jdbcType="VARCHAR" property="reqExplain" />
    <result column="golden_tax_plate_no" jdbcType="VARCHAR" property="goldenTaxPlateNo" />
    <result column="req_nsrsbh" jdbcType="VARCHAR" property="reqNsrsbh" />
    <result column="backend_memo" jdbcType="VARCHAR" property="backendMemo" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_user_id" jdbcType="BIGINT" property="createUserId" />
    <result column="create_user_name" jdbcType="VARCHAR" property="createUserName" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="update_user_id" jdbcType="BIGINT" property="updateUserId" />
    <result column="update_user_name" jdbcType="VARCHAR" property="updateUserName" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    id, batch_id, deleted, return_code, return_msg, red_tax_info_lsh, red_tax_info_sn, 
    red_tax_info_status, red_tax_info_desc, used, fpdm, fphm, fjh, ghf_nsrsbh, ghfmc, 
    xhf_nsrsbh, xhfmc, ssyf, kphjje, hjbhsje, sl, hjse, reqf_code, reqf_name, req_explain, 
    golden_tax_plate_no, req_nsrsbh, backend_memo, create_time, create_user_id, create_user_name, 
    update_time, update_user_id, update_user_name
  </sql>
  <select id="selectByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.paperInvoice.SzhtxxPaperInvoiceRedTaxInfoExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from szhtxx_paper_invoice_red_tax_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from szhtxx_paper_invoice_red_tax_info
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from szhtxx_paper_invoice_red_tax_info
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.paperInvoice.SzhtxxPaperInvoiceRedTaxInfoExample">
    delete from szhtxx_paper_invoice_red_tax_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.paperInvoice.SzhtxxPaperInvoiceRedTaxInfo">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into szhtxx_paper_invoice_red_tax_info (batch_id, deleted, return_code, 
      return_msg, red_tax_info_lsh, red_tax_info_sn, 
      red_tax_info_status, red_tax_info_desc, used, 
      fpdm, fphm, fjh, ghf_nsrsbh, 
      ghfmc, xhf_nsrsbh, xhfmc, 
      ssyf, kphjje, hjbhsje, 
      sl, hjse, reqf_code, 
      reqf_name, req_explain, golden_tax_plate_no, 
      req_nsrsbh, backend_memo, create_time, 
      create_user_id, create_user_name, update_time, 
      update_user_id, update_user_name)
    values (#{batchId,jdbcType=VARCHAR}, #{deleted,jdbcType=TINYINT}, #{returnCode,jdbcType=VARCHAR}, 
      #{returnMsg,jdbcType=VARCHAR}, #{redTaxInfoLsh,jdbcType=VARCHAR}, #{redTaxInfoSn,jdbcType=VARCHAR}, 
      #{redTaxInfoStatus,jdbcType=VARCHAR}, #{redTaxInfoDesc,jdbcType=VARCHAR}, #{used,jdbcType=TINYINT}, 
      #{fpdm,jdbcType=VARCHAR}, #{fphm,jdbcType=VARCHAR}, #{fjh,jdbcType=VARCHAR}, #{ghfNsrsbh,jdbcType=VARCHAR}, 
      #{ghfmc,jdbcType=VARCHAR}, #{xhfNsrsbh,jdbcType=VARCHAR}, #{xhfmc,jdbcType=VARCHAR}, 
      #{ssyf,jdbcType=VARCHAR}, #{kphjje,jdbcType=DECIMAL}, #{hjbhsje,jdbcType=DECIMAL}, 
      #{sl,jdbcType=DECIMAL}, #{hjse,jdbcType=DECIMAL}, #{reqfCode,jdbcType=VARCHAR}, 
      #{reqfName,jdbcType=VARCHAR}, #{reqExplain,jdbcType=VARCHAR}, #{goldenTaxPlateNo,jdbcType=VARCHAR}, 
      #{reqNsrsbh,jdbcType=VARCHAR}, #{backendMemo,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{createUserId,jdbcType=BIGINT}, #{createUserName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{updateUserId,jdbcType=BIGINT}, #{updateUserName,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.paperInvoice.SzhtxxPaperInvoiceRedTaxInfo">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into szhtxx_paper_invoice_red_tax_info
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="batchId != null">
        batch_id,
      </if>
      <if test="deleted != null">
        deleted,
      </if>
      <if test="returnCode != null">
        return_code,
      </if>
      <if test="returnMsg != null">
        return_msg,
      </if>
      <if test="redTaxInfoLsh != null">
        red_tax_info_lsh,
      </if>
      <if test="redTaxInfoSn != null">
        red_tax_info_sn,
      </if>
      <if test="redTaxInfoStatus != null">
        red_tax_info_status,
      </if>
      <if test="redTaxInfoDesc != null">
        red_tax_info_desc,
      </if>
      <if test="used != null">
        used,
      </if>
      <if test="fpdm != null">
        fpdm,
      </if>
      <if test="fphm != null">
        fphm,
      </if>
      <if test="fjh != null">
        fjh,
      </if>
      <if test="ghfNsrsbh != null">
        ghf_nsrsbh,
      </if>
      <if test="ghfmc != null">
        ghfmc,
      </if>
      <if test="xhfNsrsbh != null">
        xhf_nsrsbh,
      </if>
      <if test="xhfmc != null">
        xhfmc,
      </if>
      <if test="ssyf != null">
        ssyf,
      </if>
      <if test="kphjje != null">
        kphjje,
      </if>
      <if test="hjbhsje != null">
        hjbhsje,
      </if>
      <if test="sl != null">
        sl,
      </if>
      <if test="hjse != null">
        hjse,
      </if>
      <if test="reqfCode != null">
        reqf_code,
      </if>
      <if test="reqfName != null">
        reqf_name,
      </if>
      <if test="reqExplain != null">
        req_explain,
      </if>
      <if test="goldenTaxPlateNo != null">
        golden_tax_plate_no,
      </if>
      <if test="reqNsrsbh != null">
        req_nsrsbh,
      </if>
      <if test="backendMemo != null">
        backend_memo,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createUserId != null">
        create_user_id,
      </if>
      <if test="createUserName != null">
        create_user_name,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateUserId != null">
        update_user_id,
      </if>
      <if test="updateUserName != null">
        update_user_name,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="batchId != null">
        #{batchId,jdbcType=VARCHAR},
      </if>
      <if test="deleted != null">
        #{deleted,jdbcType=TINYINT},
      </if>
      <if test="returnCode != null">
        #{returnCode,jdbcType=VARCHAR},
      </if>
      <if test="returnMsg != null">
        #{returnMsg,jdbcType=VARCHAR},
      </if>
      <if test="redTaxInfoLsh != null">
        #{redTaxInfoLsh,jdbcType=VARCHAR},
      </if>
      <if test="redTaxInfoSn != null">
        #{redTaxInfoSn,jdbcType=VARCHAR},
      </if>
      <if test="redTaxInfoStatus != null">
        #{redTaxInfoStatus,jdbcType=VARCHAR},
      </if>
      <if test="redTaxInfoDesc != null">
        #{redTaxInfoDesc,jdbcType=VARCHAR},
      </if>
      <if test="used != null">
        #{used,jdbcType=TINYINT},
      </if>
      <if test="fpdm != null">
        #{fpdm,jdbcType=VARCHAR},
      </if>
      <if test="fphm != null">
        #{fphm,jdbcType=VARCHAR},
      </if>
      <if test="fjh != null">
        #{fjh,jdbcType=VARCHAR},
      </if>
      <if test="ghfNsrsbh != null">
        #{ghfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="ghfmc != null">
        #{ghfmc,jdbcType=VARCHAR},
      </if>
      <if test="xhfNsrsbh != null">
        #{xhfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="xhfmc != null">
        #{xhfmc,jdbcType=VARCHAR},
      </if>
      <if test="ssyf != null">
        #{ssyf,jdbcType=VARCHAR},
      </if>
      <if test="kphjje != null">
        #{kphjje,jdbcType=DECIMAL},
      </if>
      <if test="hjbhsje != null">
        #{hjbhsje,jdbcType=DECIMAL},
      </if>
      <if test="sl != null">
        #{sl,jdbcType=DECIMAL},
      </if>
      <if test="hjse != null">
        #{hjse,jdbcType=DECIMAL},
      </if>
      <if test="reqfCode != null">
        #{reqfCode,jdbcType=VARCHAR},
      </if>
      <if test="reqfName != null">
        #{reqfName,jdbcType=VARCHAR},
      </if>
      <if test="reqExplain != null">
        #{reqExplain,jdbcType=VARCHAR},
      </if>
      <if test="goldenTaxPlateNo != null">
        #{goldenTaxPlateNo,jdbcType=VARCHAR},
      </if>
      <if test="reqNsrsbh != null">
        #{reqNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="backendMemo != null">
        #{backendMemo,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        #{createUserId,jdbcType=BIGINT},
      </if>
      <if test="createUserName != null">
        #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="updateUserName != null">
        #{updateUserName,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.paperInvoice.SzhtxxPaperInvoiceRedTaxInfoExample" resultType="java.lang.Long">
    select count(*) from szhtxx_paper_invoice_red_tax_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update szhtxx_paper_invoice_red_tax_info
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.batchId != null">
        batch_id = #{record.batchId,jdbcType=VARCHAR},
      </if>
      <if test="record.deleted != null">
        deleted = #{record.deleted,jdbcType=TINYINT},
      </if>
      <if test="record.returnCode != null">
        return_code = #{record.returnCode,jdbcType=VARCHAR},
      </if>
      <if test="record.returnMsg != null">
        return_msg = #{record.returnMsg,jdbcType=VARCHAR},
      </if>
      <if test="record.redTaxInfoLsh != null">
        red_tax_info_lsh = #{record.redTaxInfoLsh,jdbcType=VARCHAR},
      </if>
      <if test="record.redTaxInfoSn != null">
        red_tax_info_sn = #{record.redTaxInfoSn,jdbcType=VARCHAR},
      </if>
      <if test="record.redTaxInfoStatus != null">
        red_tax_info_status = #{record.redTaxInfoStatus,jdbcType=VARCHAR},
      </if>
      <if test="record.redTaxInfoDesc != null">
        red_tax_info_desc = #{record.redTaxInfoDesc,jdbcType=VARCHAR},
      </if>
      <if test="record.used != null">
        used = #{record.used,jdbcType=TINYINT},
      </if>
      <if test="record.fpdm != null">
        fpdm = #{record.fpdm,jdbcType=VARCHAR},
      </if>
      <if test="record.fphm != null">
        fphm = #{record.fphm,jdbcType=VARCHAR},
      </if>
      <if test="record.fjh != null">
        fjh = #{record.fjh,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfNsrsbh != null">
        ghf_nsrsbh = #{record.ghfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfmc != null">
        ghfmc = #{record.ghfmc,jdbcType=VARCHAR},
      </if>
      <if test="record.xhfNsrsbh != null">
        xhf_nsrsbh = #{record.xhfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="record.xhfmc != null">
        xhfmc = #{record.xhfmc,jdbcType=VARCHAR},
      </if>
      <if test="record.ssyf != null">
        ssyf = #{record.ssyf,jdbcType=VARCHAR},
      </if>
      <if test="record.kphjje != null">
        kphjje = #{record.kphjje,jdbcType=DECIMAL},
      </if>
      <if test="record.hjbhsje != null">
        hjbhsje = #{record.hjbhsje,jdbcType=DECIMAL},
      </if>
      <if test="record.sl != null">
        sl = #{record.sl,jdbcType=DECIMAL},
      </if>
      <if test="record.hjse != null">
        hjse = #{record.hjse,jdbcType=DECIMAL},
      </if>
      <if test="record.reqfCode != null">
        reqf_code = #{record.reqfCode,jdbcType=VARCHAR},
      </if>
      <if test="record.reqfName != null">
        reqf_name = #{record.reqfName,jdbcType=VARCHAR},
      </if>
      <if test="record.reqExplain != null">
        req_explain = #{record.reqExplain,jdbcType=VARCHAR},
      </if>
      <if test="record.goldenTaxPlateNo != null">
        golden_tax_plate_no = #{record.goldenTaxPlateNo,jdbcType=VARCHAR},
      </if>
      <if test="record.reqNsrsbh != null">
        req_nsrsbh = #{record.reqNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="record.backendMemo != null">
        backend_memo = #{record.backendMemo,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createUserId != null">
        create_user_id = #{record.createUserId,jdbcType=BIGINT},
      </if>
      <if test="record.createUserName != null">
        create_user_name = #{record.createUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateUserId != null">
        update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      </if>
      <if test="record.updateUserName != null">
        update_user_name = #{record.updateUserName,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update szhtxx_paper_invoice_red_tax_info
    set id = #{record.id,jdbcType=BIGINT},
      batch_id = #{record.batchId,jdbcType=VARCHAR},
      deleted = #{record.deleted,jdbcType=TINYINT},
      return_code = #{record.returnCode,jdbcType=VARCHAR},
      return_msg = #{record.returnMsg,jdbcType=VARCHAR},
      red_tax_info_lsh = #{record.redTaxInfoLsh,jdbcType=VARCHAR},
      red_tax_info_sn = #{record.redTaxInfoSn,jdbcType=VARCHAR},
      red_tax_info_status = #{record.redTaxInfoStatus,jdbcType=VARCHAR},
      red_tax_info_desc = #{record.redTaxInfoDesc,jdbcType=VARCHAR},
      used = #{record.used,jdbcType=TINYINT},
      fpdm = #{record.fpdm,jdbcType=VARCHAR},
      fphm = #{record.fphm,jdbcType=VARCHAR},
      fjh = #{record.fjh,jdbcType=VARCHAR},
      ghf_nsrsbh = #{record.ghfNsrsbh,jdbcType=VARCHAR},
      ghfmc = #{record.ghfmc,jdbcType=VARCHAR},
      xhf_nsrsbh = #{record.xhfNsrsbh,jdbcType=VARCHAR},
      xhfmc = #{record.xhfmc,jdbcType=VARCHAR},
      ssyf = #{record.ssyf,jdbcType=VARCHAR},
      kphjje = #{record.kphjje,jdbcType=DECIMAL},
      hjbhsje = #{record.hjbhsje,jdbcType=DECIMAL},
      sl = #{record.sl,jdbcType=DECIMAL},
      hjse = #{record.hjse,jdbcType=DECIMAL},
      reqf_code = #{record.reqfCode,jdbcType=VARCHAR},
      reqf_name = #{record.reqfName,jdbcType=VARCHAR},
      req_explain = #{record.reqExplain,jdbcType=VARCHAR},
      golden_tax_plate_no = #{record.goldenTaxPlateNo,jdbcType=VARCHAR},
      req_nsrsbh = #{record.reqNsrsbh,jdbcType=VARCHAR},
      backend_memo = #{record.backendMemo,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_user_id = #{record.createUserId,jdbcType=BIGINT},
      create_user_name = #{record.createUserName,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      update_user_name = #{record.updateUserName,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.paperInvoice.SzhtxxPaperInvoiceRedTaxInfo">
    update szhtxx_paper_invoice_red_tax_info
    <set>
      <if test="batchId != null">
        batch_id = #{batchId,jdbcType=VARCHAR},
      </if>
      <if test="deleted != null">
        deleted = #{deleted,jdbcType=TINYINT},
      </if>
      <if test="returnCode != null">
        return_code = #{returnCode,jdbcType=VARCHAR},
      </if>
      <if test="returnMsg != null">
        return_msg = #{returnMsg,jdbcType=VARCHAR},
      </if>
      <if test="redTaxInfoLsh != null">
        red_tax_info_lsh = #{redTaxInfoLsh,jdbcType=VARCHAR},
      </if>
      <if test="redTaxInfoSn != null">
        red_tax_info_sn = #{redTaxInfoSn,jdbcType=VARCHAR},
      </if>
      <if test="redTaxInfoStatus != null">
        red_tax_info_status = #{redTaxInfoStatus,jdbcType=VARCHAR},
      </if>
      <if test="redTaxInfoDesc != null">
        red_tax_info_desc = #{redTaxInfoDesc,jdbcType=VARCHAR},
      </if>
      <if test="used != null">
        used = #{used,jdbcType=TINYINT},
      </if>
      <if test="fpdm != null">
        fpdm = #{fpdm,jdbcType=VARCHAR},
      </if>
      <if test="fphm != null">
        fphm = #{fphm,jdbcType=VARCHAR},
      </if>
      <if test="fjh != null">
        fjh = #{fjh,jdbcType=VARCHAR},
      </if>
      <if test="ghfNsrsbh != null">
        ghf_nsrsbh = #{ghfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="ghfmc != null">
        ghfmc = #{ghfmc,jdbcType=VARCHAR},
      </if>
      <if test="xhfNsrsbh != null">
        xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="xhfmc != null">
        xhfmc = #{xhfmc,jdbcType=VARCHAR},
      </if>
      <if test="ssyf != null">
        ssyf = #{ssyf,jdbcType=VARCHAR},
      </if>
      <if test="kphjje != null">
        kphjje = #{kphjje,jdbcType=DECIMAL},
      </if>
      <if test="hjbhsje != null">
        hjbhsje = #{hjbhsje,jdbcType=DECIMAL},
      </if>
      <if test="sl != null">
        sl = #{sl,jdbcType=DECIMAL},
      </if>
      <if test="hjse != null">
        hjse = #{hjse,jdbcType=DECIMAL},
      </if>
      <if test="reqfCode != null">
        reqf_code = #{reqfCode,jdbcType=VARCHAR},
      </if>
      <if test="reqfName != null">
        reqf_name = #{reqfName,jdbcType=VARCHAR},
      </if>
      <if test="reqExplain != null">
        req_explain = #{reqExplain,jdbcType=VARCHAR},
      </if>
      <if test="goldenTaxPlateNo != null">
        golden_tax_plate_no = #{goldenTaxPlateNo,jdbcType=VARCHAR},
      </if>
      <if test="reqNsrsbh != null">
        req_nsrsbh = #{reqNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="backendMemo != null">
        backend_memo = #{backendMemo,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        create_user_id = #{createUserId,jdbcType=BIGINT},
      </if>
      <if test="createUserName != null">
        create_user_name = #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        update_user_id = #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="updateUserName != null">
        update_user_name = #{updateUserName,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.paperInvoice.SzhtxxPaperInvoiceRedTaxInfo">
    update szhtxx_paper_invoice_red_tax_info
    set batch_id = #{batchId,jdbcType=VARCHAR},
      deleted = #{deleted,jdbcType=TINYINT},
      return_code = #{returnCode,jdbcType=VARCHAR},
      return_msg = #{returnMsg,jdbcType=VARCHAR},
      red_tax_info_lsh = #{redTaxInfoLsh,jdbcType=VARCHAR},
      red_tax_info_sn = #{redTaxInfoSn,jdbcType=VARCHAR},
      red_tax_info_status = #{redTaxInfoStatus,jdbcType=VARCHAR},
      red_tax_info_desc = #{redTaxInfoDesc,jdbcType=VARCHAR},
      used = #{used,jdbcType=TINYINT},
      fpdm = #{fpdm,jdbcType=VARCHAR},
      fphm = #{fphm,jdbcType=VARCHAR},
      fjh = #{fjh,jdbcType=VARCHAR},
      ghf_nsrsbh = #{ghfNsrsbh,jdbcType=VARCHAR},
      ghfmc = #{ghfmc,jdbcType=VARCHAR},
      xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR},
      xhfmc = #{xhfmc,jdbcType=VARCHAR},
      ssyf = #{ssyf,jdbcType=VARCHAR},
      kphjje = #{kphjje,jdbcType=DECIMAL},
      hjbhsje = #{hjbhsje,jdbcType=DECIMAL},
      sl = #{sl,jdbcType=DECIMAL},
      hjse = #{hjse,jdbcType=DECIMAL},
      reqf_code = #{reqfCode,jdbcType=VARCHAR},
      reqf_name = #{reqfName,jdbcType=VARCHAR},
      req_explain = #{reqExplain,jdbcType=VARCHAR},
      golden_tax_plate_no = #{goldenTaxPlateNo,jdbcType=VARCHAR},
      req_nsrsbh = #{reqNsrsbh,jdbcType=VARCHAR},
      backend_memo = #{backendMemo,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_user_id = #{createUserId,jdbcType=BIGINT},
      create_user_name = #{createUserName,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{updateUserId,jdbcType=BIGINT},
      update_user_name = #{updateUserName,jdbcType=VARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>