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/WarningInfoMapper.xml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/WarningInfoMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/WarningInfoMapper.xml new file mode 100644 index 0000000..a9e3a9d --- /dev/null +++ b/src/main/java/com/gk/firework/Mapper/mybatis/WarningInfoMapper.xml @@ -0,0 +1,47 @@ +<?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.WarningInfoMapper" > + <resultMap id="BaseResultMap" type="com.gk.firework.Domain.WarningInfo" > + <!-- --> + <id column="id" property="id" jdbcType="BIGINT" /> + <result column="warntype" property="warntype" jdbcType="VARCHAR" /> + <result column="period" property="period" jdbcType="INTEGER" /> + <result column="enterprisetype" property="enterprisetype" jdbcType="VARCHAR" /> + <result column="issms" property="issms" jdbcType="TINYINT" /> + <result column="minimum" property="minimum" jdbcType="INTEGER" /> + <result column="maximum" property="maximum" jdbcType="INTEGER" /> + <result column="modifiedby" property="modifiedby" jdbcType="VARCHAR" /> + <result column="modifieddate" property="modifieddate" jdbcType="TIMESTAMP" /> + </resultMap> + <sql id="Base_Column_List" > + <!-- --> + id, warntype, period, enterprisetype, issms, minimum, maximum, modifiedby, modifieddate + </sql> + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > + <!-- --> + select + <include refid="Base_Column_List" /> + from warning + where id = #{id,jdbcType=BIGINT} + </select> + <select id="selectDataGrid" resultType="com.gk.firework.Domain.WarningInfo"> + select + <include refid="Base_Column_List" /> + from warning + <where> + 1=1 + <if test="condition.warntype != null and condition.warntype != ''"> + and warntype = #{condition.warntype} + </if> + <if test="condition.enterprisetype != null and condition.enterprisetype != ''"> + and enterprisetype = #{condition.enterprisetype} + </if> + </where> + </select> + <select id="selectByType" resultType="com.gk.firework.Domain.WarningInfo"> + select + <include refid="Base_Column_List" /> + from warning + where warntype = #{warntype} + </select> +</mapper> -- Gitblit v1.9.2