| | |
| | | <id column="ID" property="id" jdbcType="CHAR" /> |
| | | <result column="USERNAME" property="username" jdbcType="CHAR" /> |
| | | <result column="WORK_DATE" property="workDate" jdbcType="TIMESTAMP" /> |
| | | <result column="CONTENT" property="content" jdbcType="CHAR" /> |
| | | <result column="CONTENT_TEXT" property="contentText" jdbcType="CHAR" /> |
| | | </resultMap> |
| | | |
| | | <sql id="tableColumnList"> |
| | |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" >ID,</if> |
| | | <if test="username != null" >USERNAME,</if> |
| | | <if test="workDate != null" >WORK_DATE</if> |
| | | <if test="content != null" >CONTENT</if> |
| | | <if test="workDate != null" >WORK_DATE,</if> |
| | | <if test="contentText != null" >CONTENT_TEXT</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" >#{id},</if> |
| | | <if test="username != null" >#{username},</if> |
| | | <if test="workDate != null" >#{workDate},</if> |
| | | <if test="content != null" >#{content}</if> |
| | | <if test="contentText != null" >#{contentText}</if> |
| | | </trim> |
| | | </insert> |
| | | |