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/StandardLawListMapper.xml | 296 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 296 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/StandardLawListMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/StandardLawListMapper.xml new file mode 100644 index 0000000..7591e51 --- /dev/null +++ b/src/main/java/com/gk/firework/Mapper/mybatis/StandardLawListMapper.xml @@ -0,0 +1,296 @@ +<?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.StandardLawListMapper" > + <resultMap id="BaseResultMap" type="com.gk.firework.Domain.StandardLawList" > + <!-- --> + <id column="id" property="id" jdbcType="BIGINT" /> + <result column="claim" property="claim" jdbcType="VARCHAR" /> + <result column="effectivedate" property="effectivedate" jdbcType="TIMESTAMP" /> + <result column="department" property="department" jdbcType="VARCHAR" /> + <result column="number" property="number" jdbcType="VARCHAR" /> + <result column="description" property="description" jdbcType="VARCHAR" /> + <result column="ranges" property="ranges" jdbcType="VARCHAR" /> + <result column="updateinfo" property="updateinfo" jdbcType="VARCHAR" /> + <result column="orderindex" property="orderindex" jdbcType="INTEGER" /> + <result column="url" property="url" jdbcType="VARCHAR" /> + <result column="filename" property="filename" 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="BIGINT" /> + <result column="updatebyname" property="updatebyname" jdbcType="VARCHAR" /> + <result column="validflag" property="validflag" jdbcType="BIT" /> + </resultMap> + <sql id="Base_Column_List" > + <!-- --> + id, claim, effectivedate, department, number, description, ranges, updateinfo, orderindex, + url, filename, createtime, createby, createbyname, updatetime, updateby, updatebyname, + validflag + </sql> + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > + <!-- --> + select + <include refid="Base_Column_List" /> + from standardlawlist + where id = #{id,jdbcType=BIGINT} + </select> + <select id="selectPages" resultType="com.gk.firework.Domain.StandardLawList"> + + select sll.* + from standardlawlist as sll + left join enterprise as e on e.enterprisenumber = sll.enterprisenumber + where sll.validflag = 1 + <if test="params.name != null and params.name != ''"> + and sll.claim like concat("%",#{params.name},"%") + </if> + <choose> + <when test="params.enterprisenumber != null and params.enterprisenumber !=''"> + and sll.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> + order by sll.orderindex + + + </select> + <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > + <!-- --> + delete from standardlawlist + where id = #{id,jdbcType=BIGINT} + </delete> + + <insert id="insertSelective" parameterType="com.gk.firework.Domain.StandardLawList" > + <!-- --> + insert into standardlawlist + <trim prefix="(" suffix=")" suffixOverrides="," > + <if test="id != null" > + id, + </if> + <if test="claim != null" > + claim, + </if> + <if test="effectivedate != null" > + effectivedate, + </if> + <if test="department != null" > + department, + </if> + <if test="number != null" > + number, + </if> + <if test="description != null" > + description, + </if> + <if test="ranges != null" > + ranges, + </if> + <if test="updateinfo != null" > + updateinfo, + </if> + <if test="orderindex != null" > + orderindex, + </if> + <if test="url != null" > + url, + </if> + <if test="filename != null" > + filename, + </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> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides="," > + <if test="id != null" > + #{id,jdbcType=BIGINT}, + </if> + <if test="claim != null" > + #{claim,jdbcType=VARCHAR}, + </if> + <if test="effectivedate != null" > + #{effectivedate,jdbcType=TIMESTAMP}, + </if> + <if test="department != null" > + #{department,jdbcType=VARCHAR}, + </if> + <if test="number != null" > + #{number,jdbcType=VARCHAR}, + </if> + <if test="description != null" > + #{description,jdbcType=VARCHAR}, + </if> + <if test="ranges != null" > + #{ranges,jdbcType=VARCHAR}, + </if> + <if test="updateinfo != null" > + #{updateinfo,jdbcType=VARCHAR}, + </if> + <if test="orderindex != null" > + #{orderindex,jdbcType=INTEGER}, + </if> + <if test="url != null" > + #{url,jdbcType=VARCHAR}, + </if> + <if test="filename != null" > + #{filename,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=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.StandardLawList" > + <!-- --> + update standardlawlist + <set > + <if test="claim != null" > + claim = #{claim,jdbcType=VARCHAR}, + </if> + <if test="effectivedate != null" > + effectivedate = #{effectivedate,jdbcType=TIMESTAMP}, + </if> + <if test="department != null" > + department = #{department,jdbcType=VARCHAR}, + </if> + <if test="number != null" > + number = #{number,jdbcType=VARCHAR}, + </if> + <if test="description != null" > + description = #{description,jdbcType=VARCHAR}, + </if> + <if test="ranges != null" > + ranges = #{ranges,jdbcType=VARCHAR}, + </if> + <if test="updateinfo != null" > + updateinfo = #{updateinfo,jdbcType=VARCHAR}, + </if> + <if test="orderindex != null" > + orderindex = #{orderindex,jdbcType=INTEGER}, + </if> + <if test="url != null" > + url = #{url,jdbcType=VARCHAR}, + </if> + <if test="filename != null" > + filename = #{filename,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=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.StandardLawList" > + <!-- --> + update standardlawlist + set claim = #{claim,jdbcType=VARCHAR}, + effectivedate = #{effectivedate,jdbcType=TIMESTAMP}, + department = #{department,jdbcType=VARCHAR}, + number = #{number,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + ranges = #{ranges,jdbcType=VARCHAR}, + updateinfo = #{updateinfo,jdbcType=VARCHAR}, + orderindex = #{orderindex,jdbcType=INTEGER}, + url = #{url,jdbcType=VARCHAR}, + filename = #{filename,jdbcType=VARCHAR}, + createtime = #{createtime,jdbcType=TIMESTAMP}, + createby = #{createby,jdbcType=BIGINT}, + createbyname = #{createbyname,jdbcType=VARCHAR}, + updatetime = #{updatetime,jdbcType=TIMESTAMP}, + 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