From f65443d8abeaedc9d102324565e8368e7c9d90c8 Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: Mon, 19 Jun 2023 14:41:54 +0800
Subject: [PATCH] commit
---
src/main/java/com/gk/firework/Mapper/mybatis/DictionaryItemInfoMapper.xml | 217 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 217 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/DictionaryItemInfoMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/DictionaryItemInfoMapper.xml
new file mode 100644
index 0000000..8420898
--- /dev/null
+++ b/src/main/java/com/gk/firework/Mapper/mybatis/DictionaryItemInfoMapper.xml
@@ -0,0 +1,217 @@
+<?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.DictionaryItemInfoMapper" >
+ <resultMap id="BaseResultMap" type="com.gk.firework.Domain.DictionaryItemInfo" >
+ <!-- -->
+ <id column="id" property="id" jdbcType="BIGINT" />
+ <result column="sort" property="sort" jdbcType="INTEGER" />
+ <result column="status" property="status" jdbcType="TINYINT" />
+ <result column="text" property="text" jdbcType="VARCHAR" />
+ <result column="value" property="value" 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" />
+ <result column="typeid" property="typeid" jdbcType="BIGINT" />
+ </resultMap>
+ <sql id="Base_Column_List" >
+ <!-- -->
+ id, sort, status, text, value, createdby, createddate, modifiedby, modifieddate,
+ description, typeid
+ </sql>
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
+ <!-- -->
+ select
+ <include refid="Base_Column_List" />
+ from dictionaryitem
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <select id="selectDataGrid" resultType="com.gk.firework.Domain.DictionaryItemInfo">
+ select
+ <include refid="Base_Column_List" />
+ from dictionaryitem
+ <where>
+ 1=1
+ and status = 1
+ <if test="condition.name != null and condition.name != ''">
+ and text like concat('%',#{condition.name},'%')
+ </if>
+ <if test="condition.dictionaryTypeId != null">
+ and typeid = #{condition.dictionaryTypeId}
+ </if>
+ </where>
+ </select>
+ <select id="selectExistInfo" resultType="com.gk.firework.Domain.DictionaryTypeInfo">
+ select
+ <include refid="Base_Column_List" />
+ from dictionaryitem
+ <where>
+ 1=1
+ and id != #{id}
+ <if test="value != null and value != ''">
+ and value = #{value}
+ </if>
+ <if test="text != null and text !=''">
+ and text = #{text}
+ </if>
+ </where>
+ </select>
+ <select id="selectByType" resultType="com.gk.firework.Domain.DictionaryItemInfo">
+ select
+ dictionaryitem.*
+ from dictionaryitem
+ left join dictionarytype on dictionarytype.id = dictionaryitem.typeid
+ <where>
+ 1=1
+ and dictionarytype.status = 1
+ and dictionaryitem.status = 1
+ <if test="dictionaryType != null and dictionaryType !=''">
+ and dictionarytype.text = #{dictionaryType}
+ </if>
+ </where>
+ order by dictionaryitem.sort asc
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
+ <!-- -->
+ delete from dictionaryitem
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <insert id="insert" parameterType="com.gk.firework.Domain.DictionaryItemInfo" >
+ <!-- -->
+ insert into dictionaryitem (id, sort, status,
+ text, value, createdby,
+ createddate, modifiedby, modifieddate,
+ description, typeid)
+ values (#{id,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER}, #{status,jdbcType=TINYINT},
+ #{text,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR}, #{createdby,jdbcType=VARCHAR},
+ #{createddate,jdbcType=TIMESTAMP}, #{modifiedby,jdbcType=VARCHAR}, #{modifieddate,jdbcType=TIMESTAMP},
+ #{description,jdbcType=VARCHAR}, #{typeid,jdbcType=BIGINT})
+ </insert>
+ <insert id="insertSelective" parameterType="com.gk.firework.Domain.DictionaryItemInfo" >
+ <!-- -->
+ insert into dictionaryitem
+ <trim prefix="(" suffix=")" suffixOverrides="," >
+ <if test="id != null" >
+ id,
+ </if>
+ <if test="sort != null" >
+ sort,
+ </if>
+ <if test="status != null" >
+ status,
+ </if>
+ <if test="text != null" >
+ text,
+ </if>
+ <if test="value != null" >
+ value,
+ </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>
+ <if test="typeid != null" >
+ typeid,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
+ <if test="id != null" >
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="sort != null" >
+ #{sort,jdbcType=INTEGER},
+ </if>
+ <if test="status != null" >
+ #{status,jdbcType=TINYINT},
+ </if>
+ <if test="text != null" >
+ #{text,jdbcType=VARCHAR},
+ </if>
+ <if test="value != null" >
+ #{value,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>
+ <if test="typeid != null" >
+ #{typeid,jdbcType=BIGINT},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.DictionaryItemInfo" >
+ <!-- -->
+ update dictionaryitem
+ <set >
+ <if test="sort != null" >
+ sort = #{sort,jdbcType=INTEGER},
+ </if>
+ <if test="status != null" >
+ status = #{status,jdbcType=TINYINT},
+ </if>
+ <if test="text != null" >
+ text = #{text,jdbcType=VARCHAR},
+ </if>
+ <if test="value != null" >
+ value = #{value,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>
+ <if test="typeid != null" >
+ typeid = #{typeid,jdbcType=BIGINT},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.DictionaryItemInfo" >
+ <!-- -->
+ update dictionaryitem
+ set sort = #{sort,jdbcType=INTEGER},
+ status = #{status,jdbcType=TINYINT},
+ text = #{text,jdbcType=VARCHAR},
+ value = #{value,jdbcType=VARCHAR},
+ createdby = #{createdby,jdbcType=VARCHAR},
+ createddate = #{createddate,jdbcType=TIMESTAMP},
+ modifiedby = #{modifiedby,jdbcType=VARCHAR},
+ modifieddate = #{modifieddate,jdbcType=TIMESTAMP},
+ description = #{description,jdbcType=VARCHAR},
+ typeid = #{typeid,jdbcType=BIGINT}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+</mapper>
--
Gitblit v1.9.2