DeviceInfoDao.xml
1.59 KB
<?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.diligrp.mobsite.getway.dao.version.impl.DeviceInfoDaoImpl">
<resultMap type="DeviceInfo" id="deviceInfoResultMap">
<id property="id" column="id" />
<result property="userId" column="user_id" />
<result property="accountName" column="account_name" />
<result property="deviceId" column="device_id" />
<result property="deviceSystem" column="device_system" />
<result property="systemVersion" column="system_version" />
<result property="systemVendor" column="system_vendor" />
<result property="deviceScreen" column="device_screen" />
<result property="deviceBarand" column="device_barand" />
<result property="deviceMsisdn" column="device_msisdn" />
<result property="created" column="created" />
</resultMap>
<!-- 所有查询列 -->
<sql id="QUERY_COLUMN_LIST">
<![CDATA[id,user_id,account_name,device_id,device_system,system_version,system_vendor,device_screen,device_barand,device_msisdn,created]]>
</sql>
<!-- 查询列来源表 -->
<sql id="QUERY_FROM_TABLE"><![CDATA[FROM T_DEVICE_INFO]]></sql>
<insert id="save" parameterType="deviceInfo" useGeneratedKeys="true" keyProperty="id">
<![CDATA[
INSERT INTO T_DEVICE_INFO (user_id,account_name,device_id,device_system,system_version,system_vendor,device_screen,device_barand,device_msisdn)
VALUES(#{userId},#{accountName},#{deviceId},#{deviceSystem},#{systemVersion},#{systemVendor},#{deviceScreen},#{deviceBarand},#{deviceMsisdn})
]]>
</insert>
</mapper>