From 59e91a4e9ddaf23cebb12993c774aa899ab22d16 Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: Mon, 19 Jun 2023 14:22:45 +0800
Subject: [PATCH] 描述
---
src/main/java/com/gk/firework/Mapper/mybatis/DictionaryTypeInfoMapper.xml | 176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 176 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/DictionaryTypeInfoMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/DictionaryTypeInfoMapper.xml
new file mode 100644
index 0000000..686ea2a
--- /dev/null
+++ b/src/main/java/com/gk/firework/Mapper/mybatis/DictionaryTypeInfoMapper.xml
@@ -0,0 +1,176 @@
+<?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.gk.firework.Mapper.DictionaryTypeInfoMapper" >
+ <resultMap id="BaseResultMap" type="com.gk.firework.Domain.DictionaryTypeInfo" >
+ <!-- -->
+ <id column="id" property="id" jdbcType="BIGINT" />
+ <result column="code" property="code" jdbcType="VARCHAR" />
+ <result column="status" property="status" jdbcType="TINYINT" />
+ <result column="text" property="text" jdbcType="VARCHAR" />
+ <result column="createdby" property="createdby" jdbcType="VARCHAR" />
+ <result column="createddate" property="createddate" jdbcType="TIMESTAMP" />
+ <result column="modifiedby" property="modifiedby" jdbcType="VARCHAR" />
+ <result column="modifieddate" property="modifieddate" jdbcType="TIMESTAMP" />
+ <result column="description" property="description" jdbcType="VARCHAR" />
+ </resultMap>
+ <sql id="Base_Column_List" >
+ <!-- -->
+ id, code, status, text, createdby, createddate, modifiedby, modifieddate, description
+ </sql>
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
+ <!-- -->
+ select
+ <include refid="Base_Column_List" />
+ from dictionarytype
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <select id="selectDataGrid" resultType="com.gk.firework.Domain.DictionaryTypeInfo">
+ select
+ <include refid="Base_Column_List" />
+ from dictionarytype
+ <where>
+ 1=1
+ and status = 1
+ <if test="condition.name != null and condition.name != ''">
+ and text like concat('%',#{condition.name},'%')
+ </if>
+ </where>
+ </select>
+ <select id="selectExistInfo" resultType="com.gk.firework.Domain.DictionaryTypeInfo">
+ select
+ <include refid="Base_Column_List" />
+ from dictionarytype
+ <where>
+ 1=1
+ and id != #{id}
+ <if test="code != null and code !=''">
+ and code = #{code}
+ </if>
+ <if test="text != null and text !=''">
+ and text = #{text}
+ </if>
+ </where>
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
+ <!-- -->
+ delete from dictionarytype
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.gk.firework.Domain.DictionaryTypeInfo" >
+ <!-- -->
+ insert into dictionarytype (id, code, status,
+ text, createdby, createddate,
+ modifiedby, modifieddate, description
+ )
+ values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
+ #{text,jdbcType=VARCHAR}, #{createdby,jdbcType=VARCHAR}, #{createddate,jdbcType=TIMESTAMP},
+ #{modifiedby,jdbcType=VARCHAR}, #{modifieddate,jdbcType=TIMESTAMP}, #{description,jdbcType=VARCHAR}
+ )
+ </insert>
+ <insert id="insertSelective" parameterType="com.gk.firework.Domain.DictionaryTypeInfo" >
+ <!-- -->
+ insert into dictionarytype
+ <trim prefix="(" suffix=")" suffixOverrides="," >
+ <if test="id != null" >
+ id,
+ </if>
+ <if test="code != null" >
+ code,
+ </if>
+ <if test="status != null" >
+ status,
+ </if>
+ <if test="text != null" >
+ text,
+ </if>
+ <if test="createdby != null" >
+ createdby,
+ </if>
+ <if test="createddate != null" >
+ createddate,
+ </if>
+ <if test="modifiedby != null" >
+ modifiedby,
+ </if>
+ <if test="modifieddate != null" >
+ modifieddate,
+ </if>
+ <if test="description != null" >
+ description,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
+ <if test="id != null" >
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="code != null" >
+ #{code,jdbcType=VARCHAR},
+ </if>
+ <if test="status != null" >
+ #{status,jdbcType=TINYINT},
+ </if>
+ <if test="text != null" >
+ #{text,jdbcType=VARCHAR},
+ </if>
+ <if test="createdby != null" >
+ #{createdby,jdbcType=VARCHAR},
+ </if>
+ <if test="createddate != null" >
+ #{createddate,jdbcType=TIMESTAMP},
+ </if>
+ <if test="modifiedby != null" >
+ #{modifiedby,jdbcType=VARCHAR},
+ </if>
+ <if test="modifieddate != null" >
+ #{modifieddate,jdbcType=TIMESTAMP},
+ </if>
+ <if test="description != null" >
+ #{description,jdbcType=VARCHAR},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.DictionaryTypeInfo" >
+ <!-- -->
+ update dictionarytype
+ <set >
+ <if test="code != null" >
+ code = #{code,jdbcType=VARCHAR},
+ </if>
+ <if test="status != null" >
+ status = #{status,jdbcType=TINYINT},
+ </if>
+ <if test="text != null" >
+ text = #{text,jdbcType=VARCHAR},
+ </if>
+ <if test="createdby != null" >
+ createdby = #{createdby,jdbcType=VARCHAR},
+ </if>
+ <if test="createddate != null" >
+ createddate = #{createddate,jdbcType=TIMESTAMP},
+ </if>
+ <if test="modifiedby != null" >
+ modifiedby = #{modifiedby,jdbcType=VARCHAR},
+ </if>
+ <if test="modifieddate != null" >
+ modifieddate = #{modifieddate,jdbcType=TIMESTAMP},
+ </if>
+ <if test="description != null" >
+ description = #{description,jdbcType=VARCHAR},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.DictionaryTypeInfo" >
+ <!-- -->
+ update dictionarytype
+ set code = #{code,jdbcType=VARCHAR},
+ status = #{status,jdbcType=TINYINT},
+ text = #{text,jdbcType=VARCHAR},
+ createdby = #{createdby,jdbcType=VARCHAR},
+ createddate = #{createddate,jdbcType=TIMESTAMP},
+ modifiedby = #{modifiedby,jdbcType=VARCHAR},
+ modifieddate = #{modifieddate,jdbcType=TIMESTAMP},
+ description = #{description,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+</mapper>
--
Gitblit v1.9.2