<?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.cordys.crm.system.mapper.ExtWorkerNodeMapper">

  <insert id="insert" parameterType="cn.cordys.crm.system.domain.WorkerNode" useGeneratedKeys="true" keyProperty="id">
    insert into worker_node (host_name, port, type, launch_date, modified, created)
    values (#{hostName,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR},  #{type,jdbcType=INTEGER}, #{launchDate,jdbcType=BIGINT}, #{modified,jdbcType=BIGINT}, #{created,jdbcType=BIGINT})
  </insert>
</mapper>