<?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.scheduler.SysQuartzScheduleTaskStatementOfAccountMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccount">

    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="dim_create_by" jdbcType="TINYINT" property="dimCreateBy" />
    <result column="statement_of_account_name" jdbcType="VARCHAR" property="statementOfAccountName" />
    <result column="statement_of_account_type" jdbcType="TINYINT" property="statementOfAccountType" />
    <result column="service_id" jdbcType="INTEGER" property="serviceId" />
    <result column="service_no" jdbcType="VARCHAR" property="serviceNo" />
    <result column="service_name" jdbcType="VARCHAR" property="serviceName" />
    <result column="sys_org_id" jdbcType="BIGINT" property="sysOrgId" />
    <result column="sys_virt_id" jdbcType="BIGINT" property="sysVirtId" />
    <result column="out_org_id" jdbcType="BIGINT" property="outOrgId" />
    <result column="out_virt_id" jdbcType="BIGINT" property="outVirtId" />
    <result column="cycle_begin_time" jdbcType="TIMESTAMP" property="cycleBeginTime" />
    <result column="cycle_end_time" jdbcType="TIMESTAMP" property="cycleEndTime" />
    <result column="is_pause" jdbcType="TINYINT" property="isPause" />
    <result column="job_id" jdbcType="BIGINT" property="jobId" />
    <result column="run_state" jdbcType="TINYINT" property="runState" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_user_id" jdbcType="BIGINT" property="createUserId" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="update_user_id" jdbcType="BIGINT" property="updateUserId" />
    <result column="run_time" jdbcType="TIMESTAMP" property="runTime" />
    <result column="finish_time" jdbcType="TIMESTAMP" property="finishTime" />
    <result column="accounting_order_sn" jdbcType="VARCHAR" property="accountingOrderSn" />
    <result column="params" jdbcType="VARCHAR" property="params" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccount">

    <result column="result" jdbcType="LONGVARCHAR" property="result" />
    <result column="params_snapshot" jdbcType="LONGVARCHAR" property="paramsSnapshot" />
  </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, dim_create_by, statement_of_account_name, statement_of_account_type, service_id, 
    service_no, service_name, sys_org_id, sys_virt_id, out_org_id, out_virt_id, cycle_begin_time, 
    cycle_end_time, is_pause, job_id, run_state, remark, create_time, create_user_id, 
    update_time, update_user_id, run_time, finish_time, accounting_order_sn, params
  </sql>
  <sql id="Blob_Column_List">

    result, params_snapshot
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccountExample" resultMap="ResultMapWithBLOBs">

    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from sys_quartz_schedule_task_statement_of_account
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccountExample" resultMap="BaseResultMap">

    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from sys_quartz_schedule_task_statement_of_account
    <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="ResultMapWithBLOBs">

    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from sys_quartz_schedule_task_statement_of_account
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">

    delete from sys_quartz_schedule_task_statement_of_account
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccountExample">

    delete from sys_quartz_schedule_task_statement_of_account
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccount">

    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into sys_quartz_schedule_task_statement_of_account (dim_create_by, statement_of_account_name, 
      statement_of_account_type, service_id, service_no, 
      service_name, sys_org_id, sys_virt_id, 
      out_org_id, out_virt_id, cycle_begin_time, 
      cycle_end_time, is_pause, job_id, 
      run_state, remark, create_time, 
      create_user_id, update_time, update_user_id, 
      run_time, finish_time, accounting_order_sn, 
      params, result, params_snapshot
      )
    values (#{dimCreateBy,jdbcType=TINYINT}, #{statementOfAccountName,jdbcType=VARCHAR}, 
      #{statementOfAccountType,jdbcType=TINYINT}, #{serviceId,jdbcType=INTEGER}, #{serviceNo,jdbcType=VARCHAR}, 
      #{serviceName,jdbcType=VARCHAR}, #{sysOrgId,jdbcType=BIGINT}, #{sysVirtId,jdbcType=BIGINT}, 
      #{outOrgId,jdbcType=BIGINT}, #{outVirtId,jdbcType=BIGINT}, #{cycleBeginTime,jdbcType=TIMESTAMP}, 
      #{cycleEndTime,jdbcType=TIMESTAMP}, #{isPause,jdbcType=TINYINT}, #{jobId,jdbcType=BIGINT}, 
      #{runState,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{createUserId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{updateUserId,jdbcType=BIGINT}, 
      #{runTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, #{accountingOrderSn,jdbcType=VARCHAR}, 
      #{params,jdbcType=VARCHAR}, #{result,jdbcType=LONGVARCHAR}, #{paramsSnapshot,jdbcType=LONGVARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccount">

    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into sys_quartz_schedule_task_statement_of_account
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="dimCreateBy != null">
        dim_create_by,
      </if>
      <if test="statementOfAccountName != null">
        statement_of_account_name,
      </if>
      <if test="statementOfAccountType != null">
        statement_of_account_type,
      </if>
      <if test="serviceId != null">
        service_id,
      </if>
      <if test="serviceNo != null">
        service_no,
      </if>
      <if test="serviceName != null">
        service_name,
      </if>
      <if test="sysOrgId != null">
        sys_org_id,
      </if>
      <if test="sysVirtId != null">
        sys_virt_id,
      </if>
      <if test="outOrgId != null">
        out_org_id,
      </if>
      <if test="outVirtId != null">
        out_virt_id,
      </if>
      <if test="cycleBeginTime != null">
        cycle_begin_time,
      </if>
      <if test="cycleEndTime != null">
        cycle_end_time,
      </if>
      <if test="isPause != null">
        is_pause,
      </if>
      <if test="jobId != null">
        job_id,
      </if>
      <if test="runState != null">
        run_state,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createUserId != null">
        create_user_id,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateUserId != null">
        update_user_id,
      </if>
      <if test="runTime != null">
        run_time,
      </if>
      <if test="finishTime != null">
        finish_time,
      </if>
      <if test="accountingOrderSn != null">
        accounting_order_sn,
      </if>
      <if test="params != null">
        params,
      </if>
      <if test="result != null">
        result,
      </if>
      <if test="paramsSnapshot != null">
        params_snapshot,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="dimCreateBy != null">
        #{dimCreateBy,jdbcType=TINYINT},
      </if>
      <if test="statementOfAccountName != null">
        #{statementOfAccountName,jdbcType=VARCHAR},
      </if>
      <if test="statementOfAccountType != null">
        #{statementOfAccountType,jdbcType=TINYINT},
      </if>
      <if test="serviceId != null">
        #{serviceId,jdbcType=INTEGER},
      </if>
      <if test="serviceNo != null">
        #{serviceNo,jdbcType=VARCHAR},
      </if>
      <if test="serviceName != null">
        #{serviceName,jdbcType=VARCHAR},
      </if>
      <if test="sysOrgId != null">
        #{sysOrgId,jdbcType=BIGINT},
      </if>
      <if test="sysVirtId != null">
        #{sysVirtId,jdbcType=BIGINT},
      </if>
      <if test="outOrgId != null">
        #{outOrgId,jdbcType=BIGINT},
      </if>
      <if test="outVirtId != null">
        #{outVirtId,jdbcType=BIGINT},
      </if>
      <if test="cycleBeginTime != null">
        #{cycleBeginTime,jdbcType=TIMESTAMP},
      </if>
      <if test="cycleEndTime != null">
        #{cycleEndTime,jdbcType=TIMESTAMP},
      </if>
      <if test="isPause != null">
        #{isPause,jdbcType=TINYINT},
      </if>
      <if test="jobId != null">
        #{jobId,jdbcType=BIGINT},
      </if>
      <if test="runState != null">
        #{runState,jdbcType=TINYINT},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        #{createUserId,jdbcType=BIGINT},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="runTime != null">
        #{runTime,jdbcType=TIMESTAMP},
      </if>
      <if test="finishTime != null">
        #{finishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="accountingOrderSn != null">
        #{accountingOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="params != null">
        #{params,jdbcType=VARCHAR},
      </if>
      <if test="result != null">
        #{result,jdbcType=LONGVARCHAR},
      </if>
      <if test="paramsSnapshot != null">
        #{paramsSnapshot,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccountExample" resultType="java.lang.Long">

    select count(*) from sys_quartz_schedule_task_statement_of_account
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">

    update sys_quartz_schedule_task_statement_of_account
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.dimCreateBy != null">
        dim_create_by = #{record.dimCreateBy,jdbcType=TINYINT},
      </if>
      <if test="record.statementOfAccountName != null">
        statement_of_account_name = #{record.statementOfAccountName,jdbcType=VARCHAR},
      </if>
      <if test="record.statementOfAccountType != null">
        statement_of_account_type = #{record.statementOfAccountType,jdbcType=TINYINT},
      </if>
      <if test="record.serviceId != null">
        service_id = #{record.serviceId,jdbcType=INTEGER},
      </if>
      <if test="record.serviceNo != null">
        service_no = #{record.serviceNo,jdbcType=VARCHAR},
      </if>
      <if test="record.serviceName != null">
        service_name = #{record.serviceName,jdbcType=VARCHAR},
      </if>
      <if test="record.sysOrgId != null">
        sys_org_id = #{record.sysOrgId,jdbcType=BIGINT},
      </if>
      <if test="record.sysVirtId != null">
        sys_virt_id = #{record.sysVirtId,jdbcType=BIGINT},
      </if>
      <if test="record.outOrgId != null">
        out_org_id = #{record.outOrgId,jdbcType=BIGINT},
      </if>
      <if test="record.outVirtId != null">
        out_virt_id = #{record.outVirtId,jdbcType=BIGINT},
      </if>
      <if test="record.cycleBeginTime != null">
        cycle_begin_time = #{record.cycleBeginTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.cycleEndTime != null">
        cycle_end_time = #{record.cycleEndTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.isPause != null">
        is_pause = #{record.isPause,jdbcType=TINYINT},
      </if>
      <if test="record.jobId != null">
        job_id = #{record.jobId,jdbcType=BIGINT},
      </if>
      <if test="record.runState != null">
        run_state = #{record.runState,jdbcType=TINYINT},
      </if>
      <if test="record.remark != null">
        remark = #{record.remark,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.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.runTime != null">
        run_time = #{record.runTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.finishTime != null">
        finish_time = #{record.finishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.accountingOrderSn != null">
        accounting_order_sn = #{record.accountingOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="record.params != null">
        params = #{record.params,jdbcType=VARCHAR},
      </if>
      <if test="record.result != null">
        result = #{record.result,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.paramsSnapshot != null">
        params_snapshot = #{record.paramsSnapshot,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">

    update sys_quartz_schedule_task_statement_of_account
    set id = #{record.id,jdbcType=BIGINT},
      dim_create_by = #{record.dimCreateBy,jdbcType=TINYINT},
      statement_of_account_name = #{record.statementOfAccountName,jdbcType=VARCHAR},
      statement_of_account_type = #{record.statementOfAccountType,jdbcType=TINYINT},
      service_id = #{record.serviceId,jdbcType=INTEGER},
      service_no = #{record.serviceNo,jdbcType=VARCHAR},
      service_name = #{record.serviceName,jdbcType=VARCHAR},
      sys_org_id = #{record.sysOrgId,jdbcType=BIGINT},
      sys_virt_id = #{record.sysVirtId,jdbcType=BIGINT},
      out_org_id = #{record.outOrgId,jdbcType=BIGINT},
      out_virt_id = #{record.outVirtId,jdbcType=BIGINT},
      cycle_begin_time = #{record.cycleBeginTime,jdbcType=TIMESTAMP},
      cycle_end_time = #{record.cycleEndTime,jdbcType=TIMESTAMP},
      is_pause = #{record.isPause,jdbcType=TINYINT},
      job_id = #{record.jobId,jdbcType=BIGINT},
      run_state = #{record.runState,jdbcType=TINYINT},
      remark = #{record.remark,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_user_id = #{record.createUserId,jdbcType=BIGINT},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      run_time = #{record.runTime,jdbcType=TIMESTAMP},
      finish_time = #{record.finishTime,jdbcType=TIMESTAMP},
      accounting_order_sn = #{record.accountingOrderSn,jdbcType=VARCHAR},
      params = #{record.params,jdbcType=VARCHAR},
      result = #{record.result,jdbcType=LONGVARCHAR},
      params_snapshot = #{record.paramsSnapshot,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">

    update sys_quartz_schedule_task_statement_of_account
    set id = #{record.id,jdbcType=BIGINT},
      dim_create_by = #{record.dimCreateBy,jdbcType=TINYINT},
      statement_of_account_name = #{record.statementOfAccountName,jdbcType=VARCHAR},
      statement_of_account_type = #{record.statementOfAccountType,jdbcType=TINYINT},
      service_id = #{record.serviceId,jdbcType=INTEGER},
      service_no = #{record.serviceNo,jdbcType=VARCHAR},
      service_name = #{record.serviceName,jdbcType=VARCHAR},
      sys_org_id = #{record.sysOrgId,jdbcType=BIGINT},
      sys_virt_id = #{record.sysVirtId,jdbcType=BIGINT},
      out_org_id = #{record.outOrgId,jdbcType=BIGINT},
      out_virt_id = #{record.outVirtId,jdbcType=BIGINT},
      cycle_begin_time = #{record.cycleBeginTime,jdbcType=TIMESTAMP},
      cycle_end_time = #{record.cycleEndTime,jdbcType=TIMESTAMP},
      is_pause = #{record.isPause,jdbcType=TINYINT},
      job_id = #{record.jobId,jdbcType=BIGINT},
      run_state = #{record.runState,jdbcType=TINYINT},
      remark = #{record.remark,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_user_id = #{record.createUserId,jdbcType=BIGINT},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      run_time = #{record.runTime,jdbcType=TIMESTAMP},
      finish_time = #{record.finishTime,jdbcType=TIMESTAMP},
      accounting_order_sn = #{record.accountingOrderSn,jdbcType=VARCHAR},
      params = #{record.params,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccount">

    update sys_quartz_schedule_task_statement_of_account
    <set>
      <if test="dimCreateBy != null">
        dim_create_by = #{dimCreateBy,jdbcType=TINYINT},
      </if>
      <if test="statementOfAccountName != null">
        statement_of_account_name = #{statementOfAccountName,jdbcType=VARCHAR},
      </if>
      <if test="statementOfAccountType != null">
        statement_of_account_type = #{statementOfAccountType,jdbcType=TINYINT},
      </if>
      <if test="serviceId != null">
        service_id = #{serviceId,jdbcType=INTEGER},
      </if>
      <if test="serviceNo != null">
        service_no = #{serviceNo,jdbcType=VARCHAR},
      </if>
      <if test="serviceName != null">
        service_name = #{serviceName,jdbcType=VARCHAR},
      </if>
      <if test="sysOrgId != null">
        sys_org_id = #{sysOrgId,jdbcType=BIGINT},
      </if>
      <if test="sysVirtId != null">
        sys_virt_id = #{sysVirtId,jdbcType=BIGINT},
      </if>
      <if test="outOrgId != null">
        out_org_id = #{outOrgId,jdbcType=BIGINT},
      </if>
      <if test="outVirtId != null">
        out_virt_id = #{outVirtId,jdbcType=BIGINT},
      </if>
      <if test="cycleBeginTime != null">
        cycle_begin_time = #{cycleBeginTime,jdbcType=TIMESTAMP},
      </if>
      <if test="cycleEndTime != null">
        cycle_end_time = #{cycleEndTime,jdbcType=TIMESTAMP},
      </if>
      <if test="isPause != null">
        is_pause = #{isPause,jdbcType=TINYINT},
      </if>
      <if test="jobId != null">
        job_id = #{jobId,jdbcType=BIGINT},
      </if>
      <if test="runState != null">
        run_state = #{runState,jdbcType=TINYINT},
      </if>
      <if test="remark != null">
        remark = #{remark,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="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        update_user_id = #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="runTime != null">
        run_time = #{runTime,jdbcType=TIMESTAMP},
      </if>
      <if test="finishTime != null">
        finish_time = #{finishTime,jdbcType=TIMESTAMP},
      </if>
      <if test="accountingOrderSn != null">
        accounting_order_sn = #{accountingOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="params != null">
        params = #{params,jdbcType=VARCHAR},
      </if>
      <if test="result != null">
        result = #{result,jdbcType=LONGVARCHAR},
      </if>
      <if test="paramsSnapshot != null">
        params_snapshot = #{paramsSnapshot,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccount">

    update sys_quartz_schedule_task_statement_of_account
    set dim_create_by = #{dimCreateBy,jdbcType=TINYINT},
      statement_of_account_name = #{statementOfAccountName,jdbcType=VARCHAR},
      statement_of_account_type = #{statementOfAccountType,jdbcType=TINYINT},
      service_id = #{serviceId,jdbcType=INTEGER},
      service_no = #{serviceNo,jdbcType=VARCHAR},
      service_name = #{serviceName,jdbcType=VARCHAR},
      sys_org_id = #{sysOrgId,jdbcType=BIGINT},
      sys_virt_id = #{sysVirtId,jdbcType=BIGINT},
      out_org_id = #{outOrgId,jdbcType=BIGINT},
      out_virt_id = #{outVirtId,jdbcType=BIGINT},
      cycle_begin_time = #{cycleBeginTime,jdbcType=TIMESTAMP},
      cycle_end_time = #{cycleEndTime,jdbcType=TIMESTAMP},
      is_pause = #{isPause,jdbcType=TINYINT},
      job_id = #{jobId,jdbcType=BIGINT},
      run_state = #{runState,jdbcType=TINYINT},
      remark = #{remark,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_user_id = #{createUserId,jdbcType=BIGINT},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{updateUserId,jdbcType=BIGINT},
      run_time = #{runTime,jdbcType=TIMESTAMP},
      finish_time = #{finishTime,jdbcType=TIMESTAMP},
      accounting_order_sn = #{accountingOrderSn,jdbcType=VARCHAR},
      params = #{params,jdbcType=VARCHAR},
      result = #{result,jdbcType=LONGVARCHAR},
      params_snapshot = #{paramsSnapshot,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.scheduler.SysQuartzScheduleTaskStatementOfAccount">

    update sys_quartz_schedule_task_statement_of_account
    set dim_create_by = #{dimCreateBy,jdbcType=TINYINT},
      statement_of_account_name = #{statementOfAccountName,jdbcType=VARCHAR},
      statement_of_account_type = #{statementOfAccountType,jdbcType=TINYINT},
      service_id = #{serviceId,jdbcType=INTEGER},
      service_no = #{serviceNo,jdbcType=VARCHAR},
      service_name = #{serviceName,jdbcType=VARCHAR},
      sys_org_id = #{sysOrgId,jdbcType=BIGINT},
      sys_virt_id = #{sysVirtId,jdbcType=BIGINT},
      out_org_id = #{outOrgId,jdbcType=BIGINT},
      out_virt_id = #{outVirtId,jdbcType=BIGINT},
      cycle_begin_time = #{cycleBeginTime,jdbcType=TIMESTAMP},
      cycle_end_time = #{cycleEndTime,jdbcType=TIMESTAMP},
      is_pause = #{isPause,jdbcType=TINYINT},
      job_id = #{jobId,jdbcType=BIGINT},
      run_state = #{runState,jdbcType=TINYINT},
      remark = #{remark,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_user_id = #{createUserId,jdbcType=BIGINT},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{updateUserId,jdbcType=BIGINT},
      run_time = #{runTime,jdbcType=TIMESTAMP},
      finish_time = #{finishTime,jdbcType=TIMESTAMP},
      accounting_order_sn = #{accountingOrderSn,jdbcType=VARCHAR},
      params = #{params,jdbcType=VARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>