FeedBackDao.xml 1.32 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.FeedBackDaoImpl">

	 <resultMap type="com.diligrp.mobsite.getway.domain.FeedBack" id="feedBackResultMap">
		<id property="id" column="id" />
		<result property="userId" column="user_id" />
		<result property="marketId" column="market_id" />
		<result property="deviceType" column="device_type" />
		<result property="userAccountName" column="username" />
		<result property="deviceVersion" column="device_version" />
		<result property="appVersion" column="app_version" />
		<result property="content" column="content" />
		<result property="status" column="status" />
		<result property="created" column="created" />
		<result property="modified" column="modified" />
		<result property="yn" column="yn" />
	</resultMap>

	<insert id="save" parameterType="com.diligrp.mobsite.getway.domain.FeedBack" useGeneratedKeys="true" keyProperty="id">
		<![CDATA[
			INSERT INTO T_FEEDBACK (user_id,market_id,device_type,username,device_version,app_version,system_type,status,content)
			VALUES(#{userId},#{marketId},#{deviceType},#{userAccountName},#{deviceVersion},#{appVersion},#{systemType},#{status},#{content})
		]]>
	</insert>

</mapper>