id, countyId, townId, villageId, blockid, divideId, `name`, virtualId, clientNum,
    districtNum, districtTitle, phone, idCard, area, typeId, address, remarks, `operator`, 
    operateDt, disabled, deleted
  
  
  
    
    delete from se_client
    where id = #{id,jdbcType=BIGINT}
  
  
    
    insert into se_client (id, countyId, townId, 
      villageId, blockId, divideId, 
      `name`, virtualId, clientNum, 
      districtNum, districtTitle, phone, 
      idCard, area, typeId, 
      address, remarks, `operator`, 
      operateDt, disabled, deleted
      )
    values (#{id,jdbcType=BIGINT}, #{countyid,jdbcType=BIGINT}, #{townid,jdbcType=BIGINT}, 
      #{villageid,jdbcType=BIGINT}, #{blockid,jdbcType=BIGINT}, #{divideid,jdbcType=BIGINT},
      #{name,jdbcType=VARCHAR}, #{virtualid,jdbcType=BIGINT}, #{clientnum,jdbcType=VARCHAR}, 
      #{districtnum,jdbcType=BIGINT}, #{districttitle,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, 
      #{idcard,jdbcType=VARCHAR}, #{area,jdbcType=DOUBLE}, #{typeid,jdbcType=BIGINT}, 
      #{address,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, 
      #{operatedt,jdbcType=TIMESTAMP}, #{disabled,jdbcType=TINYINT}, #{deleted,jdbcType=TINYINT}
      )
  
  
    
    insert into se_client
    
      
        id,
      
      
        countyId,
      
      
        townId,
      
      
        villageId,
      
      
        blockId,
      
      
        divideId,
      
      
        `name`,
      
      
        virtualId,
      
      
        clientNum,
      
      
        districtNum,
      
      
        districtTitle,
      
      
        phone,
      
      
        idCard,
      
      
        area,
      
      
        typeId,
      
      
        address,
      
      
        remarks,
      
      
        `operator`,
      
      
        operateDt,
      
      
        disabled,
      
      
        deleted,
      
    
    
      
        #{id,jdbcType=BIGINT},
      
      
        #{countyid,jdbcType=BIGINT},
      
      
        #{townid,jdbcType=BIGINT},
      
      
        #{villageid,jdbcType=BIGINT},
      
      
        #{blockid,jdbcType=BIGINT},
      
      
        #{divideid,jdbcType=BIGINT},
      
      
        #{name,jdbcType=VARCHAR},
      
      
        #{virtualid,jdbcType=BIGINT},
      
      
        #{clientnum,jdbcType=VARCHAR},
      
      
        #{districtnum,jdbcType=BIGINT},
      
      
        #{districttitle,jdbcType=VARCHAR},
      
      
        #{phone,jdbcType=VARCHAR},
      
      
        #{idcard,jdbcType=VARCHAR},
      
      
        #{area,jdbcType=DOUBLE},
      
      
        #{typeid,jdbcType=BIGINT},
      
      
        #{address,jdbcType=VARCHAR},
      
      
        #{remarks,jdbcType=VARCHAR},
      
      
        #{operator,jdbcType=BIGINT},
      
      
        #{operatedt,jdbcType=TIMESTAMP},
      
      
        #{disabled,jdbcType=TINYINT},
      
      
        #{deleted,jdbcType=TINYINT},
      
    
  
  
    
    update se_client
    
      
        countyId = #{countyid,jdbcType=BIGINT},
      
      
        townId = #{townid,jdbcType=BIGINT},
      
      
        villageId = #{villageid,jdbcType=BIGINT},
      
      
        blockId = #{blockid,jdbcType=BIGINT},
      
      
        divideId = #{divideid,jdbcType=BIGINT},
      
      
        `name` = #{name,jdbcType=VARCHAR},
      
      
        virtualId = #{virtualid,jdbcType=BIGINT},
      
      
        clientNum = #{clientnum,jdbcType=VARCHAR},
      
      
        districtNum = #{districtnum,jdbcType=BIGINT},
      
      
        districtTitle = #{districttitle,jdbcType=VARCHAR},
      
      
        phone = #{phone,jdbcType=VARCHAR},
      
      
        idCard = #{idcard,jdbcType=VARCHAR},
      
      
        area = #{area,jdbcType=DOUBLE},
      
      
        typeId = #{typeid,jdbcType=BIGINT},
      
      
        address = #{address,jdbcType=VARCHAR},
      
      
        remarks = #{remarks,jdbcType=VARCHAR},
      
      
        `operator` = #{operator,jdbcType=BIGINT},
      
      
        operateDt = #{operatedt,jdbcType=TIMESTAMP},
      
      
        disabled = #{disabled,jdbcType=TINYINT},
      
      
        deleted = #{deleted,jdbcType=TINYINT},
      
    
    where id = #{id,jdbcType=BIGINT}
  
  
    
    update se_client
    set countyId = #{countyid,jdbcType=BIGINT},
      townId = #{townid,jdbcType=BIGINT},
      villageId = #{villageid,jdbcType=BIGINT},
      blockId = #{blockid,jdbcType=BIGINT},
      divideId = #{divideid,jdbcType=BIGINT},
      `name` = #{name,jdbcType=VARCHAR},
      clientNum = #{clientnum,jdbcType=VARCHAR},
      districtNum = #{districtnum,jdbcType=BIGINT},
      districtTitle = #{districttitle,jdbcType=VARCHAR},
      phone = #{phone,jdbcType=VARCHAR},
      idCard = #{idcard,jdbcType=VARCHAR},
      area = #{area,jdbcType=DOUBLE},
      typeId = #{typeid,jdbcType=BIGINT},
      address = #{address,jdbcType=VARCHAR},
      remarks = #{remarks,jdbcType=VARCHAR},
      `operator` = #{operator,jdbcType=BIGINT},
      operateDt = #{operatedt,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
    update se_client set deleted = 1
    
      
        AND id = #{id}