| | |
| | | <?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="com.wgcloud.mapper.SystemInfoMapper"> |
| | | <resultMap id="resultMap" type="com.wgcloud.entity.SystemInfo"> |
| | | <mapper namespace="se.wgcloud.mapper.SystemInfoMapper"> |
| | | <resultMap id="resultMap" type="se.wgcloud.entity.SystemInfo"> |
| | | <id column="ID" property="id" jdbcType="CHAR" /> |
| | | <result column="HOST_NAME" property="hostname" jdbcType="CHAR" /> |
| | | <result column="VERSION" property="version" jdbcType="CHAR" /> |
| | |
| | | <result column="CPU_CORE_NUM" property="cpuCoreNum" jdbcType="CHAR" /> |
| | | <result column="CPU_XH" property="cpuXh" jdbcType="CHAR" /> |
| | | <result column="STATE" property="state" jdbcType="CHAR" /> |
| | | <result column="REMARK" property="remark" jdbcType="CHAR" /> |
| | | <result column="REMARK" property="remark" javaType="CHAR" /> |
| | | <result column="CREATE_TIME" property="createTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | |
| | |
| | | </foreach> |
| | | </update> |
| | | |
| | | <insert id="save" parameterType="com.wgcloud.entity.SystemInfo"> |
| | | <insert id="save" parameterType="se.wgcloud.entity.SystemInfo"> |
| | | INSERT INTO SYSTEM_INFO |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" >ID,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateById" parameterType="com.wgcloud.entity.SystemInfo"> |
| | | <update id="updateById" parameterType="se.wgcloud.entity.SystemInfo"> |
| | | UPDATE SYSTEM_INFO |
| | | <set> |
| | | <if test="hostname != null"> |