From 2fcd97552d16718cc7997629fd637a73a5a4483f Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: 星期一, 19 六月 2023 14:44:19 +0800
Subject: [PATCH] 删除

---
 src/main/java/com/gk/firework/Mapper/mybatis/StandardTemplate1Mapper.xml |  325 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 325 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/StandardTemplate1Mapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/StandardTemplate1Mapper.xml
new file mode 100644
index 0000000..12e5945
--- /dev/null
+++ b/src/main/java/com/gk/firework/Mapper/mybatis/StandardTemplate1Mapper.xml
@@ -0,0 +1,325 @@
+<?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.StandardTemplate1Mapper" >
+  <resultMap id="BaseResultMap" type="com.gk.firework.Domain.StandardTemplate1" >
+    <!--          -->
+    <id column="id" property="id" jdbcType="BIGINT" />
+    <result column="menu" property="menu" jdbcType="VARCHAR" />
+    <result column="url" property="url" jdbcType="VARCHAR" />
+    <result column="filename" property="filename" jdbcType="VARCHAR" />
+    <result column="settime" property="settime" jdbcType="TIMESTAMP" />
+    <result column="enterprisenumber" property="enterprisenumber" jdbcType="VARCHAR" />
+    <result column="enterprisename" property="enterprisename" jdbcType="VARCHAR" />
+    <result column="name" property="name" jdbcType="VARCHAR" />
+    <result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
+    <result column="createby" property="createby" jdbcType="BIGINT" />
+    <result column="createbyname" property="createbyname" jdbcType="VARCHAR" />
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
+    <result column="updateby" property="updateby" jdbcType="VARCHAR" />
+    <result column="updatebyname" property="updatebyname" jdbcType="VARCHAR" />
+    <result column="validflag" property="validflag" jdbcType="BIT" />
+    <result column="type" property="type" jdbcType="TINYINT" />
+  </resultMap>
+  <resultMap id="ResultMapWithBLOBs" type="com.gk.firework.Domain.StandardTemplate1" extends="BaseResultMap" >
+    <!--          -->
+    <result column="content" property="content" jdbcType="LONGVARCHAR" />
+  </resultMap>
+  <sql id="Base_Column_List" >
+    <!--          -->
+    id, menu, url, filename, settime, enterprisenumber, enterprisename, name, createtime, 
+    createby, createbyname, updatetime, updateby, updatebyname, validflag, type
+  </sql>
+  <sql id="Blob_Column_List" >
+    <!--          -->
+    content
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Long" >
+    <!--          -->
+    select 
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from standardtemplate1
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <select id="selectPages"  resultType="com.gk.firework.Domain.StandardTemplate1">
+    select st.*
+    from standardtemplate1 as st
+    left join enterprise as e on e.enterprisenumber = st.enterprisenumber
+    where  st.menu = #{params.menu}
+    and st.validflag = 1
+    <choose>
+      <when test="params.enterprisenumber != null and params.enterprisenumber !=''">
+        and st.enterprisenumber = #{params.enterprisenumber}
+      </when>
+      <otherwise>
+        <if test="params.enterprisename != null and params.enterprisename != ''">
+          and e.enterprisename like concat("%",#{params.enterprisename},"%")
+        </if>
+        <if test="params.safetysupervision != null and params.safetysupervision != ''">
+          and e.safetysupervision = #{params.safetysupervision}
+        </if>
+        <if test="params.province != null and params.province != ''">
+          and e.province = #{params.province}
+        </if>
+        <if test="params.city != null and params.city != ''">
+          and e.city = #{params.city}
+        </if>
+        <if test="params.district != null and params.district != ''">
+          and e.district = #{params.district}
+        </if>
+        <if test="params.street != null and params.street != ''">
+          and e.street = #{params.street}
+        </if>
+        <if test="params.committee != null and params.committee != ''">
+          and e.committee = #{params.committee}
+        </if>
+      </otherwise>
+    </choose>
+    <if test="params.filterProvince != null and params.filterProvince  != ''">
+      and e.province = #{params.filterProvince}
+    </if>
+    <if test="params.filterCity != null and  params.filterCity  != ''">
+      and e.city = #{params.filterCity}
+    </if>
+    <if test="params.filterDistrict != null and params.filterDistrict  != ''">
+      and e.district = #{params.filterDistrict}
+    </if>
+    <if test="params.filterStreet != null and params.filterStreet  != ''">
+      and e.street = #{params.filterStreet}
+    </if>
+    <if test="params.filterCommittee != null and params.filterCommittee  != ''">
+      and e.committee = #{params.filterCommittee}
+    </if>
+    <if test="params.type != null and params.type  != ''">
+      and st.type = #{params.type}
+    </if>
+    order by st.createtime desc
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
+    <!--          -->
+    delete from standardtemplate1
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <insert id="insert" parameterType="com.gk.firework.Domain.StandardTemplate1" >
+    <!--          -->
+    insert into standardtemplate1 (id, menu, url, 
+      filename, settime, enterprisenumber, 
+      enterprisename, name, createtime, 
+      createby, createbyname, updatetime, 
+      updateby, updatebyname, validflag, 
+      type, content)
+    values (#{id,jdbcType=BIGINT}, #{menu,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, 
+      #{filename,jdbcType=VARCHAR}, #{settime,jdbcType=TIMESTAMP}, #{enterprisenumber,jdbcType=VARCHAR}, 
+      #{enterprisename,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, 
+      #{createby,jdbcType=BIGINT}, #{createbyname,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, 
+      #{updateby,jdbcType=VARCHAR}, #{updatebyname,jdbcType=VARCHAR}, #{validflag,jdbcType=BIT}, 
+      #{type,jdbcType=TINYINT}, #{content,jdbcType=LONGVARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.gk.firework.Domain.StandardTemplate1" >
+    <!--          -->
+    insert into standardtemplate1
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        id,
+      </if>
+      <if test="menu != null" >
+        menu,
+      </if>
+      <if test="url != null" >
+        url,
+      </if>
+      <if test="filename != null" >
+        filename,
+      </if>
+      <if test="settime != null" >
+        settime,
+      </if>
+      <if test="enterprisenumber != null" >
+        enterprisenumber,
+      </if>
+      <if test="enterprisename != null" >
+        enterprisename,
+      </if>
+      <if test="name != null" >
+        name,
+      </if>
+      <if test="createtime != null" >
+        createtime,
+      </if>
+      <if test="createby != null" >
+        createby,
+      </if>
+      <if test="createbyname != null" >
+        createbyname,
+      </if>
+      <if test="updatetime != null" >
+        updatetime,
+      </if>
+      <if test="updateby != null" >
+        updateby,
+      </if>
+      <if test="updatebyname != null" >
+        updatebyname,
+      </if>
+      <if test="validflag != null" >
+        validflag,
+      </if>
+      <if test="type != null" >
+        type,
+      </if>
+      <if test="content != null" >
+        content,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        #{id,jdbcType=BIGINT},
+      </if>
+      <if test="menu != null" >
+        #{menu,jdbcType=VARCHAR},
+      </if>
+      <if test="url != null" >
+        #{url,jdbcType=VARCHAR},
+      </if>
+      <if test="filename != null" >
+        #{filename,jdbcType=VARCHAR},
+      </if>
+      <if test="settime != null" >
+        #{settime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="enterprisenumber != null" >
+        #{enterprisenumber,jdbcType=VARCHAR},
+      </if>
+      <if test="enterprisename != null" >
+        #{enterprisename,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null" >
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="createtime != null" >
+        #{createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createby != null" >
+        #{createby,jdbcType=BIGINT},
+      </if>
+      <if test="createbyname != null" >
+        #{createbyname,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null" >
+        #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateby != null" >
+        #{updateby,jdbcType=VARCHAR},
+      </if>
+      <if test="updatebyname != null" >
+        #{updatebyname,jdbcType=VARCHAR},
+      </if>
+      <if test="validflag != null" >
+        #{validflag,jdbcType=BIT},
+      </if>
+      <if test="type != null" >
+        #{type,jdbcType=TINYINT},
+      </if>
+      <if test="content != null" >
+        #{content,jdbcType=LONGVARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.StandardTemplate1" >
+    <!--          -->
+    update standardtemplate1
+    <set >
+      <if test="menu != null" >
+        menu = #{menu,jdbcType=VARCHAR},
+      </if>
+      <if test="url != null" >
+        url = #{url,jdbcType=VARCHAR},
+      </if>
+      <if test="filename != null" >
+        filename = #{filename,jdbcType=VARCHAR},
+      </if>
+      <if test="settime != null" >
+        settime = #{settime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="enterprisenumber != null" >
+        enterprisenumber = #{enterprisenumber,jdbcType=VARCHAR},
+      </if>
+      <if test="enterprisename != null" >
+        enterprisename = #{enterprisename,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null" >
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="createtime != null" >
+        createtime = #{createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="createby != null" >
+        createby = #{createby,jdbcType=BIGINT},
+      </if>
+      <if test="createbyname != null" >
+        createbyname = #{createbyname,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null" >
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateby != null" >
+        updateby = #{updateby,jdbcType=VARCHAR},
+      </if>
+      <if test="updatebyname != null" >
+        updatebyname = #{updatebyname,jdbcType=VARCHAR},
+      </if>
+      <if test="validflag != null" >
+        validflag = #{validflag,jdbcType=BIT},
+      </if>
+      <if test="type != null" >
+        type = #{type,jdbcType=TINYINT},
+      </if>
+      <if test="content != null" >
+        content = #{content,jdbcType=LONGVARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.gk.firework.Domain.StandardTemplate1" >
+    <!--          -->
+    update standardtemplate1
+    set menu = #{menu,jdbcType=VARCHAR},
+      url = #{url,jdbcType=VARCHAR},
+      filename = #{filename,jdbcType=VARCHAR},
+      settime = #{settime,jdbcType=TIMESTAMP},
+      enterprisenumber = #{enterprisenumber,jdbcType=VARCHAR},
+      enterprisename = #{enterprisename,jdbcType=VARCHAR},
+      name = #{name,jdbcType=VARCHAR},
+      createtime = #{createtime,jdbcType=TIMESTAMP},
+      createby = #{createby,jdbcType=BIGINT},
+      createbyname = #{createbyname,jdbcType=VARCHAR},
+      updatetime = #{updatetime,jdbcType=TIMESTAMP},
+      updateby = #{updateby,jdbcType=VARCHAR},
+      updatebyname = #{updatebyname,jdbcType=VARCHAR},
+      validflag = #{validflag,jdbcType=BIT},
+      type = #{type,jdbcType=TINYINT},
+      content = #{content,jdbcType=LONGVARCHAR}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.StandardTemplate1" >
+    <!--          -->
+    update standardtemplate1
+    set menu = #{menu,jdbcType=VARCHAR},
+      url = #{url,jdbcType=VARCHAR},
+      filename = #{filename,jdbcType=VARCHAR},
+      settime = #{settime,jdbcType=TIMESTAMP},
+      enterprisenumber = #{enterprisenumber,jdbcType=VARCHAR},
+      enterprisename = #{enterprisename,jdbcType=VARCHAR},
+      name = #{name,jdbcType=VARCHAR},
+      createtime = #{createtime,jdbcType=TIMESTAMP},
+      createby = #{createby,jdbcType=BIGINT},
+      createbyname = #{createbyname,jdbcType=VARCHAR},
+      updatetime = #{updatetime,jdbcType=TIMESTAMP},
+      updateby = #{updateby,jdbcType=VARCHAR},
+      updatebyname = #{updatebyname,jdbcType=VARCHAR},
+      validflag = #{validflag,jdbcType=BIT},
+      type = #{type,jdbcType=TINYINT}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.2