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/SelfCheckInfoMapper.xml | 123 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 123 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/SelfCheckInfoMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/SelfCheckInfoMapper.xml
new file mode 100644
index 0000000..887a66c
--- /dev/null
+++ b/src/main/java/com/gk/firework/Mapper/mybatis/SelfCheckInfoMapper.xml
@@ -0,0 +1,123 @@
+<?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.SelfCheckInfoMapper" >
+ <resultMap id="BaseResultMap" type="com.gk.firework.Domain.SelfCheckInfo" >
+ <!-- -->
+ <id column="id" property="id" jdbcType="BIGINT" />
+ <result column="type" property="type" jdbcType="VARCHAR" />
+ <result column="content" property="content" jdbcType="VARCHAR" />
+ <result column="standard" property="standard" jdbcType="VARCHAR" />
+ <result column="sort" property="sort" jdbcType="INTEGER" />
+ <result column="isdel" property="isdel" jdbcType="TINYINT" />
+ <result column="description" property="description" 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" />
+ </resultMap>
+ <sql id="Base_Column_List" >
+ <!-- -->
+ id, type, content, standard, sort, isdel, description, createdby, createddate, modifiedby,
+ modifieddate
+ </sql>
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
+ <!-- -->
+ select
+ <include refid="Base_Column_List" />
+ from selfcheck
+ where id = #{id,jdbcType=BIGINT}
+ </select>
+ <select id="selctByType" resultType="com.gk.firework.Domain.SelfCheckInfo">
+ select
+ <include refid="Base_Column_List" />
+ from selfcheck
+ where isdel = 0
+ and type = #{type}
+ ORDER BY sort ASC
+ </select>
+ <select id="selectDataGrid" resultType="com.gk.firework.Domain.SelfCheckInfo">
+ select
+ <include refid="Base_Column_List" />
+ from selfcheck
+ <where>
+ isdel = 0
+ <if test="condition.type != null and condition.type != ''">
+ and type = #{condition.type}
+ </if>
+ <if test="condition.content != null and condition.content != ''">
+ and content like concat('%',#{condition.content},'%')
+ </if>
+ </where>
+ </select>
+ <select id="selectByIds" resultType="com.gk.firework.Domain.SelfCheckInfo">
+ select
+ <include refid="Base_Column_List" />
+ from selfcheck
+ <where>
+ isdel = 0
+ <if test="idList != null and idList.size > 0">
+ and id in
+ <foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
+ #{item}
+ </foreach>
+ </if>
+ </where>
+ </select>
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
+ <!-- -->
+ delete from selfcheck
+ where id = #{id,jdbcType=BIGINT}
+ </delete>
+ <update id="updateByPrimaryKeySelective" parameterType="com.gk.firework.Domain.SelfCheckInfo" >
+ <!-- -->
+ update selfcheck
+ <set >
+ <if test="type != null" >
+ type = #{type,jdbcType=VARCHAR},
+ </if>
+ <if test="content != null" >
+ content = #{content,jdbcType=VARCHAR},
+ </if>
+ <if test="standard != null" >
+ standard = #{standard,jdbcType=VARCHAR},
+ </if>
+ <if test="sort != null" >
+ sort = #{sort,jdbcType=INTEGER},
+ </if>
+ <if test="isdel != null" >
+ isdel = #{isdel,jdbcType=TINYINT},
+ </if>
+ <if test="description != null" >
+ description = #{description,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>
+ </set>
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+ <update id="updateByPrimaryKey" parameterType="com.gk.firework.Domain.SelfCheckInfo" >
+ <!-- -->
+ update selfcheck
+ set type = #{type,jdbcType=VARCHAR},
+ content = #{content,jdbcType=VARCHAR},
+ standard = #{standard,jdbcType=VARCHAR},
+ sort = #{sort,jdbcType=INTEGER},
+ isdel = #{isdel,jdbcType=TINYINT},
+ description = #{description,jdbcType=VARCHAR},
+ createdby = #{createdby,jdbcType=VARCHAR},
+ createddate = #{createddate,jdbcType=TIMESTAMP},
+ modifiedby = #{modifiedby,jdbcType=VARCHAR},
+ modifieddate = #{modifieddate,jdbcType=TIMESTAMP}
+ where id = #{id,jdbcType=BIGINT}
+ </update>
+</mapper>
--
Gitblit v1.9.2