mapper.base.SysTaskDetailMapper.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of task Show documentation
Show all versions of task Show documentation
jishi series products task on java
<?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"> <resultMap id="BaseResultMap" type="system.entity.SysTaskDetail"> <!-- WARNING - @mbg.generated --> <id column="id" jdbcType="VARCHAR" property="id" /> </resultMap> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="system.entity.SysTaskDetail"> <!-- WARNING - @mbg.generated --> <result column="detail" jdbcType="LONGVARCHAR" property="detail" /> </resultMap> <sql id="Base_Column_List"> <!-- WARNING - @mbg.generated --> id </sql> <sql id="Blob_Column_List"> <!-- WARNING - @mbg.generated --> detail </sql> <sql id="All_Column_List"> id, detail </sql> <sql id="whereAll"> <if test="id != null and id != '' "> AND id = #{id,jdbcType=VARCHAR} </if> <if test="detail != null and detail != '' "> AND detail = #{detail,jdbcType=LONGVARCHAR} </if> </sql> <sql id="setAll"> <if test="detail != null "> detail = #{detail,jdbcType=LONGVARCHAR}, </if> </sql> <sql id="conditionFields"> <if test="id != null "> id, </if> <if test="detail != null "> detail, </if> </sql> <sql id="conditionValues"> <if test="id != null "> #{id,jdbcType=VARCHAR}, </if> <if test="detail != null "> #{detail,jdbcType=LONGVARCHAR}, </if> </sql> <select id="loadByIds" resultType="system.entity.SysTaskDetail"> SELECT <include refid="All_Column_List" /> FROM sys_task_detail <where> <choose> <when test="ids != null and ids.size() != 0"> id IN <foreach collection="ids" item="id" index="index" open="(" close=")" separator=",">#{id}</foreach> </when> <otherwise> 1 = 0 </otherwise> </choose> </where> </select> <select id="loadByNotIds" resultType="system.entity.SysTaskDetail"> SELECT <include refid="All_Column_List" /> FROM sys_task_detail <where> <choose> <when test="ids != null and ids.size() != 0"> id NOT IN <foreach collection="ids" item="id" index="index" open="(" close=")" separator=",">#{id}</foreach> </when> <otherwise> 1 = 0 </otherwise> </choose> </where> </select> <delete id="deleteByIds"> DELETE FROM sys_task_detail <where> <choose> <when test="ids != null and ids.size() != 0"> id IN <foreach collection="ids" item="id" index="index" open="(" close=")" separator=",">#{id}</foreach> </when> <otherwise> 1 = 0 </otherwise> </choose> </where> </delete> <delete id="deleteByNotIds"> DELETE FROM sys_task_detail <where> <choose> <when test="ids != null and ids.size() != 0"> id NOT IN <foreach collection="ids" item="id" index="index" open="(" close=")" separator=",">#{id}</foreach> </when> <otherwise> 1 = 0 </otherwise> </choose> </where> </delete> </mapper>