All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mapper.SysTaskDetailMapper.xml Maven / Gradle / Ivy

<?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="system.mapper.SysTaskDetailMapper">
  <!--
      @mgp-generator
      base/*Mapper由系统生成,不要修改,重新生成将被覆盖
      本同名文件用于撰写自已的SQL,重新生成不会覆盖
      两个文件在运行时将会自动合并
      参考: https://www.xiaobo.li/project/projects/jishi-mgp/wiki
    -->
  <select id="list" parameterType="system.entity.SysTaskDetail" resultType="system.entity.SysTaskDetail">
    SELECT
    <include refid="All_Column_List" />
    FROM sys_task_detail
    <where>
       <include refid="whereAll" />
    </where>
    ORDER BY id DESC
  </select>
  <!-- 覆盖tk的insertSelective默认实现 -->
  <insert id="insertSelective" keyProperty="id" parameterType="system.entity.SysTaskDetail" useGeneratedKeys="true">
    INSERT INTO sys_task_detail (
    <trim suffixOverrides=",">
      <if test="id != null">id,</if>
      <if test="detail != null">detail,</if>
    </trim>
    ) VALUES (
    <trim suffixOverrides=",">
      <if test="id != null">#{id,jdbcType=VARCHAR},</if>
      <if test="detail != null">#{detail,jdbcType=LONGVARCHAR},</if>
    </trim>
    )
  </insert>
  <!-- 主体更新方法: 1. 注释不允许修改的字段 2. 表结构调整后需要手动添加或删除 -->
  <update id="updateBody" parameterType="system.entity.SysTaskDetail">
    UPDATE sys_task_detail
    <set>
      <!-- id = #{id,jdbcType=VARCHAR}, -->
      detail = #{detail,jdbcType=LONGVARCHAR},
    </set>
    <where>
       AND id = #{id,jdbcType=VARCHAR}
    </where>
  </update>
</mapper>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy