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/EnterpriseLicenseMapper.xml | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 210 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/EnterpriseLicenseMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/EnterpriseLicenseMapper.xml
new file mode 100644
index 0000000..f5cf64b
--- /dev/null
+++ b/src/main/java/com/gk/firework/Mapper/mybatis/EnterpriseLicenseMapper.xml
@@ -0,0 +1,210 @@
+<?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.EnterpriseLicenseMapper" >
+ <resultMap id="BaseResultMap" type="com.gk.firework.Domain.EnterpriseLicense" >
+ <!-- -->
+ <id column="id" property="id" jdbcType="BIGINT" />
+ <result column="licensenumber" property="licensenumber" jdbcType="VARCHAR" />
+ <result column="licensename" property="licensename" jdbcType="VARCHAR" />
+ <result column="authority" property="authority" jdbcType="VARCHAR" />
+ <result column="ranges" property="ranges" jdbcType="VARCHAR" />
+ <result column="validstarttime" property="validstarttime" jdbcType="TIMESTAMP" />
+ <result column="validendtime" property="validendtime" jdbcType="TIMESTAMP" />
+ <result column="enterpriseid" property="enterpriseid" jdbcType="BIGINT" />
+ <result column="createby" property="createby" jdbcType="BIGINT" />
+ <result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
+ <result column="createbyname" property="createbyname" jdbcType="VARCHAR" />
+ <result column="updateby" property="updateby" jdbcType="BIGINT" />
+ <result column="updatebyname" property="updatebyname" jdbcType="VARCHAR" />
+ <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
+ <result column="validflag" property="validflag" jdbcType="BIT" />
+ <collection property="enterpriseResources"
+ javaType="java.util.List"
+ ofType="com.gk.firework.Domain.EnterpriseResource"
+ column="{elid=id,tabletype=tabletype}"
+ select="selectInner">
+ </collection>
+ </resultMap>
+ <sql id="Base_Column_List" >
+ <!-- -->
+ id, licensenumber, licensename, authority, ranges, validstarttime, validendtime, enterpriseid,
+ createby, createbyname, updateby, updatebyname, validflag
+ </sql>
+
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
+ <!-- -->
+ select
+ <include refid="Base_Column_List" />
+ from enterpriselicense
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+
+ <select id="selectInner" parameterType = "java.util.Map" resultType="com.gk.firework.Domain.EnterpriseResource">
+ select er.id id, er.url,er.filename,er.tabletype
+ from enterpriseresource er
+ where er.validflag = 1
+ and tabletype = #{tabletype}
+ and belongid = #{elid}
+ </select>
+
+ <select id="selectPages" parameterType = "java.util.Map" resultMap="BaseResultMap">
+ select el.*,
+ #{params.tabletype} tabletype
+ from enterpriselicense el
+ where el.validflag = 1
+ and el.enterpriseid = #{params.id}
+ order by el.createtime desc
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
+ <!-- -->
+ delete from enterpriselicense
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+
+ <insert id="insertSelective" parameterType="com.gk.firework.Domain.EnterpriseLicense" >
+ <!-- -->
+ insert into enterpriselicense
+ <trim prefix="(" suffix=")" suffixOverrides="," >
+ <if test="id != null" >
+ id,
+ </if>
+ <if test="licensenumber != null" >
+ licensenumber,
+ </if>
+ <if test="licensename != null" >
+ licensename,
+ </if>
+ <if test="authority != null" >
+ authority,
+ </if>
+ <if test="ranges != null" >
+ ranges,
+ </if>
+ <if test="validstarttime != null" >
+ validstarttime,
+ </if>
+ <if test="validendtime != null" >
+ validendtime,
+ </if>
+ <if test="enterpriseid != null" >
+ enterpriseid,
+ </if>
+ <if test="createby != null" >
+ createby,
+ </if>
+ <if test="createbyname != null" >
+ createbyname,
+ </if>
+ <if test="updateby != null" >
+ updateby,
+ </if>
+ <if test="updatebyname != null" >
+ updatebyname,
+ </if>
+ <if test="validflag != null" >
+ validflag,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
+ <if test="id != null" >
+ #{id,jdbcType=BIGINT},
+ </if>
+ <if test="licensenumber != null" >
+ #{licensenumber,jdbcType=VARCHAR},
+ </if>
+ <if test="licensename != null" >
+ #{licensename,jdbcType=VARCHAR},
+ </if>
+ <if test="authority != null" >
+ #{authority,jdbcType=VARCHAR},
+ </if>
+ <if test="ranges != null" >
+ #{ranges,jdbcType=VARCHAR},
+ </if>
+ <if test="validstarttime != null" >
+ #{validstarttime,jdbcType=TIMESTAMP},
+ </if>
+ <if test="validendtime != null" >
+ #{validendtime,jdbcType=TIMESTAMP},
+ </if>
+ <if test="enterpriseid != null" >
+ #{enterpriseid,jdbcType=BIGINT},
+ </if>
+ <if test="createby != null" >
+ #{createby,jdbcType=BIGINT},
+ </if>
+ <if test="createbyname != null" >
+ #{createbyname,jdbcType=VARCHAR},
+ </if>
+ <if test="updateby != null" >
+ #{updateby,jdbcType=BIGINT},
+ </if>
+ <if test="updatebyname != null" >
+ #{updatebyname,jdbcType=VARCHAR},
+ </if>
+ <if test="validflag != null" >
+ #{validflag,jdbcType=BIT},
+ </if>
+ </trim>
+ </insert>
+ <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.EnterpriseLicense" >
+ <!-- -->
+ update enterpriselicense
+ <set >
+ <if test="licensenumber != null" >
+ licensenumber = #{licensenumber,jdbcType=VARCHAR},
+ </if>
+ <if test="licensename != null" >
+ licensename = #{licensename,jdbcType=VARCHAR},
+ </if>
+ <if test="authority != null" >
+ authority = #{authority,jdbcType=VARCHAR},
+ </if>
+ <if test="ranges != null" >
+ ranges = #{ranges,jdbcType=VARCHAR},
+ </if>
+ <if test="validstarttime != null" >
+ validstarttime = #{validstarttime,jdbcType=TIMESTAMP},
+ </if>
+ <if test="validendtime != null" >
+ validendtime = #{validendtime,jdbcType=TIMESTAMP},
+ </if>
+ <if test="enterpriseid != null" >
+ enterpriseid = #{enterpriseid,jdbcType=BIGINT},
+ </if>
+ <if test="createby != null" >
+ createby = #{createby,jdbcType=BIGINT},
+ </if>
+ <if test="createbyname != null" >
+ createbyname = #{createbyname,jdbcType=VARCHAR},
+ </if>
+ <if test="updateby != null" >
+ updateby = #{updateby,jdbcType=BIGINT},
+ </if>
+ <if test="updatebyname != null" >
+ updatebyname = #{updatebyname,jdbcType=VARCHAR},
+ </if>
+ <if test="validflag != null" >
+ validflag = #{validflag,jdbcType=BIT},
+ </if>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.EnterpriseLicense" >
+ <!-- -->
+ update enterpriselicense
+ set licensenumber = #{licensenumber,jdbcType=VARCHAR},
+ licensename = #{licensename,jdbcType=VARCHAR},
+ authority = #{authority,jdbcType=VARCHAR},
+ ranges = #{ranges,jdbcType=VARCHAR},
+ validstarttime = #{validstarttime,jdbcType=TIMESTAMP},
+ validendtime = #{validendtime,jdbcType=TIMESTAMP},
+ enterpriseid = #{enterpriseid,jdbcType=BIGINT},
+ createby = #{createby,jdbcType=BIGINT},
+ createbyname = #{createbyname,jdbcType=VARCHAR},
+ updateby = #{updateby,jdbcType=BIGINT},
+ updatebyname = #{updatebyname,jdbcType=VARCHAR},
+ validflag = #{validflag,jdbcType=BIT}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+</mapper>
\ No newline at end of file
--
Gitblit v1.9.2