kongdeqiang
2023-02-22 9812f31d6402a268fa6fd35e8c3a2a59582b720d
src/main/resources/mybatis/mapper/WorkLoggingMapper.xml
@@ -5,7 +5,7 @@
      <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">
@@ -69,14 +69,14 @@
       <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>