|
@@ -0,0 +1,69 @@
|
|
|
+<?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.sooka.system.funeral.the_dead.mapper.TGuijiTheDeadMapper">
|
|
|
+
|
|
|
+ <sql id="selectVo">
|
|
|
+ select id, BNO,DNAME,DSFZH,DSEX,DMZ,DAGE,BIRTH,DHJLY,DXZQH,ADDRESS,DTIME,DREASON,DADDRESS, HHSJ,RELATIONSHIP,LINKMAN,LINKMANPHONE,LINKMANADDRESS,OPERTM,OPERID,OPERDW from t_guiji_funeral_the_dead
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectList" parameterType="TGuijiTheDead" resultType="TGuijiTheDead">
|
|
|
+ <include refid="selectVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="BNO != null and BNO != ''"> and BNO like concat('%', #{BNO}, '%')</if>
|
|
|
+ <if test="DNAME != null and DNAME != ''"> and DNAME like concat('%', #{DNAME}, '%')</if>
|
|
|
+ <if test="DSFZH != null and DSFZH != ''"> and DSFZH like concat('%', #{DSFZH}, '%')</if>
|
|
|
+ <if test="DSEX != null and DSEX != ''"> and DSEX like concat('%', #{DSEX}, '%')</if>
|
|
|
+ <if test="DMZ != null and DMZ != ''"> and DMZ like concat('%', #{DMZ}, '%')</if>
|
|
|
+ <if test="DAGE != null and DAGE != ''"> and DAGE like concat('%', #{DAGE}, '%')</if>
|
|
|
+ <if test="BIRTH != null and BIRTH != ''"> and BIRTH like concat('%', #{BIRTH}, '%')</if>
|
|
|
+ <if test="DHJLY != null and DHJLY != ''"> and DHJLY like concat('%', #{DHJLY}, '%')</if>
|
|
|
+ <if test="DXZQH != null and DXZQH != ''"> and DXZQH like concat('%', #{DXZQH}, '%')</if>
|
|
|
+ <if test="ADDRESS != null and ADDRESS != ''"> and ADDRESS like concat('%', #{ADDRESS}, '%')</if>
|
|
|
+ <if test="DTIME != null and DTIME != ''"> and DTIME like concat('%', #{DTIME}, '%')</if>
|
|
|
+ <if test="DREASON != null and DREASON != ''"> and DREASON like concat('%', #{DREASON}, '%')</if>
|
|
|
+ <if test="DADDRESS != null and DADDRESS != ''"> and DADDRESS like concat('%', #{DADDRESS}, '%')</if>
|
|
|
+ <if test="HHSJ != null and HHSJ != ''"> and HHSJ like concat('%', #{HHSJ}, '%')</if>
|
|
|
+ <if test="RELATIONSHIP != null and RELATIONSHIP != ''"> and RELATIONSHIP like concat('%', #{RELATIONSHIP}, '%')</if>
|
|
|
+ <if test="LINKMAN != null and LINKMAN != ''"> and LINKMAN like concat('%', #{LINKMAN}, '%')</if>
|
|
|
+ <if test="LINKMANPHONE != null and LINKMANPHONE != ''"> and LINKMANPHONE like concat('%', #{LINKMANPHONE}, '%')</if>
|
|
|
+ <if test="LINKMANADDRESS != null and LINKMANADDRESS != ''"> and LINKMANADDRESS like concat('%', #{LINKMANADDRESS}, '%')</if>
|
|
|
+ <if test="OPERTM != null and OPERTM != ''"> and OPERTM like concat('%', #{OPERTM}, '%')</if>
|
|
|
+ <if test="OPERID != null and OPERID != ''"> and OPERID like concat('%', #{OPERID}, '%')</if>
|
|
|
+ <if test="OPERDW != null and OPERDW != ''"> and OPERDW like concat('%', #{OPERDW}, '%')</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectById" parameterType="String" resultType="TGuijiTheDead">
|
|
|
+ <include refid="selectVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="TGuijiTheDead">
|
|
|
+ insert into t_guiji_funeral_the_dead
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update" parameterType="TGuijiTheDead">
|
|
|
+ update t_guiji_funeral_the_dead
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteById" parameterType="String">
|
|
|
+ delete from t_guiji_funeral_the_dead where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteByIds" parameterType="String">
|
|
|
+ delete from t_guiji_funeral_the_dead where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+
|
|
|
+</mapper>
|