|
@@ -0,0 +1,394 @@
|
|
|
+<?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.mapper.Guiji_naturalresources_Mapper2">
|
|
|
+
|
|
|
+ <sql id="global_name">
|
|
|
+ id,create_time,cd_time,cd_batch,cd_operation,cd_source,
|
|
|
+ </sql>
|
|
|
+ <sql id="global_value">
|
|
|
+ #{id},now(),#{cd_time},#{cd_batch},#{cd_operation},#{cd_source},
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <sql id="update_sql">
|
|
|
+ create_time = now(),cd_batch = #{cd_batch},cd_operation = #{cd_operation},cd_source =#{cd_source},
|
|
|
+ </sql>
|
|
|
+
|
|
|
+
|
|
|
+ <parameterMap id="pm_qlrjbxx" type="com.sooka.model.bo.Guiji_naturalresources_qlrjbxx_Bean"></parameterMap>
|
|
|
+ <insert id="add_guiji_naturalresources_qlrjbxx" parameterMap="pm_qlrjbxx">
|
|
|
+ insert into t_guiji_naturalresources_qlrjbxx (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ DJBH,QLRLX,QLBH,QLRBH,QLLB,QLRMC,SXH,ZJLB,ZJHM,FZJG,SSHY,GJDQ,HJSZSS,XB,DH,DZ,YB,GZDW,DZYJ,
|
|
|
+ QDFS,QLRXZ,QLMJ,QLBL,GYFS,QSZT,QZH,ZSBH,FRLX,FRDB,CSRQ,SFZTP,BZ)
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{DJBH},#{QLRLX},#{QLBH},#{QLRBH},#{QLLB},#{QLRMC},#{SXH},#{ZJLB},#{ZJHM},#{FZJG},
|
|
|
+ #{SSHY},#{GJDQ},#{HJSZSS},#{XB},#{DH},#{DZ},#{YB},#{GZDW},#{DZYJ},#{QDFS},#{QLRXZ},
|
|
|
+ #{QLMJ},#{QLBL},#{GYFS},#{QSZT},#{QZH},#{ZSBH},#{FRLX},#{FRDB},#{CSRQ},#{SFZTP},#{BZ}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <update id="update_guiji_naturalresources_qlrjbxx" parameterMap="pm_qlrjbxx">
|
|
|
+ update t_guiji_naturalresources_qlrjbxx
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="DJBH != null and DJBH != ''">
|
|
|
+ DJBH = #{DJBH},
|
|
|
+ </if>
|
|
|
+ <if test="QLRLX != null and QLRLX != ''">
|
|
|
+ QLRLX = #{QLRLX},
|
|
|
+ </if>
|
|
|
+ <if test="QLBH != null and QLBH != ''">
|
|
|
+ QLBH = #{QLBH},
|
|
|
+ </if>
|
|
|
+ <if test="QLRBH != null and QLRBH != ''">
|
|
|
+ QLRBH = #{QLRBH},
|
|
|
+ </if>
|
|
|
+ <if test="QLLB != null and QLLB != ''">
|
|
|
+ QLLB = #{QLLB},
|
|
|
+ </if>
|
|
|
+ <if test="QLRMC != null and QLRMC != ''">
|
|
|
+ QLRMC = #{QLRMC},
|
|
|
+ </if>
|
|
|
+ <if test="SXH != null and SXH != ''">
|
|
|
+ SXH = #{SXH},
|
|
|
+ </if>
|
|
|
+ <if test="ZJLB != null and ZJLB != ''">
|
|
|
+ ZJLB = #{ZJLB},
|
|
|
+ </if>
|
|
|
+ <if test="ZJHM != null and ZJHM != ''">
|
|
|
+ ZJHM = #{ZJHM},
|
|
|
+ </if>
|
|
|
+ <if test="FZJG != null and FZJG != ''">
|
|
|
+ FZJG = #{FZJG},
|
|
|
+ </if>
|
|
|
+ <if test="SSHY != null and SSHY != ''">
|
|
|
+ SSHY = #{SSHY},
|
|
|
+ </if>
|
|
|
+ <if test="GJDQ != null and GJDQ != ''">
|
|
|
+ GJDQ = #{GJDQ},
|
|
|
+ </if>
|
|
|
+ <if test="HJSZSS != null and HJSZSS != ''">
|
|
|
+ HJSZSS = #{HJSZSS},
|
|
|
+ </if>
|
|
|
+ <if test="XB != null and XB != ''">
|
|
|
+ XB = #{XB},
|
|
|
+ </if>
|
|
|
+ <if test="DH != null and DH != ''">
|
|
|
+ DH = #{DH},
|
|
|
+ </if>
|
|
|
+ <if test="DZ != null and DZ != ''">
|
|
|
+ DZ = #{DZ},
|
|
|
+ </if>
|
|
|
+ <if test="YB != null and YB != ''">
|
|
|
+ YB = #{YB},
|
|
|
+ </if>
|
|
|
+ <if test="GZDW != null and GZDW != ''">
|
|
|
+ GZDW = #{GZDW},
|
|
|
+ </if>
|
|
|
+ <if test="DZYJ != null and DZYJ != ''">
|
|
|
+ DZYJ = #{DZYJ},
|
|
|
+ </if>
|
|
|
+ <if test="QDFS != null and QDFS != ''">
|
|
|
+ QDFS = #{QDFS},
|
|
|
+ </if>
|
|
|
+ <if test="QLRXZ != null and QLRXZ != ''">
|
|
|
+ QLRXZ = #{QLRXZ},
|
|
|
+ </if>
|
|
|
+ <if test="QLMJ != null and QLMJ != ''">
|
|
|
+ QLMJ = #{QLMJ},
|
|
|
+ </if>
|
|
|
+ <if test="QLBL != null and QLBL != ''">
|
|
|
+ QLBL = #{QLBL},
|
|
|
+ </if>
|
|
|
+ <if test="GYFS != null and GYFS != ''">
|
|
|
+ GYFS = #{GYFS},
|
|
|
+ </if>
|
|
|
+ <if test="QSZT != null and QSZT != ''">
|
|
|
+ QSZT = #{QSZT},
|
|
|
+ </if>
|
|
|
+ <if test="QZH != null and QZH != ''">
|
|
|
+ QZH = #{QZH},
|
|
|
+ </if>
|
|
|
+ <if test="ZSBH != null and ZSBH != ''">
|
|
|
+ ZSBH = #{ZSBH},
|
|
|
+ </if>
|
|
|
+ <if test="FRLX != null and FRLX != ''">
|
|
|
+ FRLX = #{FRLX},
|
|
|
+ </if>
|
|
|
+ <if test="FRDB != null and FRDB != ''">
|
|
|
+ FRDB = #{FRDB},
|
|
|
+ </if>
|
|
|
+ <if test="CSRQ != null and CSRQ != ''">
|
|
|
+ CSRQ = #{CSRQ},
|
|
|
+ </if>
|
|
|
+ <if test="SFZTP != null and SFZTP != ''">
|
|
|
+ cardno = #{cardno},
|
|
|
+ </if>
|
|
|
+ <if test="BZ != null and BZ != ''">
|
|
|
+ BZ = #{BZ},
|
|
|
+ </if>
|
|
|
+
|
|
|
+
|
|
|
+ </trim>
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <parameterMap id="pm_bdcdjzxx" type="com.sooka.model.bo.Guiji_naturalresources_bdcdjzxx_Bean"></parameterMap>
|
|
|
+ <insert id="add_guiji_naturalresources_bdcdjzxx" parameterMap="pm_bdcdjzxx">
|
|
|
+ insert into t_guiji_naturalresources_bdcdjzxx (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ DJBH,QLRMC,GYFS,FWZL,BDCDYH,QLLX,QLXZ,YT,MJ,QZRQ,TQ,BZ
|
|
|
+ )
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{DJBH},#{QLRMC},#{GYFS},#{FWZL},#{BDCDYH},#{QLLX},#{QLXZ},#{YT},#{MJ},#{QZRQ},#{TQ},#{BZ})
|
|
|
+ </insert>
|
|
|
+ <update id="update_guiji_naturalresources_bdcdjzxx" parameterMap="pm_bdcdjzxx">
|
|
|
+ update t_guiji_naturalresources_bdcdjzxx
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="DJBH != null and DJBH != ''">
|
|
|
+ DJBH = #{DJBH},
|
|
|
+ </if>
|
|
|
+ <if test="QLRMC != null and QLRMC != ''">
|
|
|
+ QLRMC = #{QLRMC},
|
|
|
+ </if>
|
|
|
+ <if test="GYFS != null and GYFS != ''">
|
|
|
+ GYFS = #{GYFS},
|
|
|
+ </if>
|
|
|
+ <if test="FWZL != null and FWZL != ''">
|
|
|
+ FWZL = #{FWZL},
|
|
|
+ </if>
|
|
|
+ <if test="BDCDYH != null and BDCDYH != ''">
|
|
|
+ BDCDYH = #{BDCDYH},
|
|
|
+ </if>
|
|
|
+ <if test="QLLX != null and QLLX != ''">
|
|
|
+ QLLX = #{QLLX},
|
|
|
+ </if>
|
|
|
+ <if test="QLXZ != null and QLXZ != ''">
|
|
|
+ QLXZ = #{QLXZ},
|
|
|
+ </if>
|
|
|
+ <if test="YT != null and YT != ''">
|
|
|
+ YT = #{YT},
|
|
|
+ </if>
|
|
|
+ <if test="MJ != null and MJ != ''">
|
|
|
+ MJ = #{MJ},
|
|
|
+ </if>
|
|
|
+ <if test="QZRQ != null and QZRQ != ''">
|
|
|
+ QZRQ = #{QZRQ},
|
|
|
+ </if>
|
|
|
+ <if test="TQ != null and TQ != ''">
|
|
|
+ TQ = #{TQ},
|
|
|
+ </if>
|
|
|
+ <if test="BZ != null and BZ != ''">
|
|
|
+ BZ = #{BZ},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <parameterMap id="pm_bdcdjxx" type="com.sooka.model.bo.Guiji_naturalresources_bdcdjxx_Bean"></parameterMap>
|
|
|
+
|
|
|
+ <insert id="add_guiji_naturalresources_bdcdjxx" parameterMap="pm_bdcdjxx">
|
|
|
+ insert into t_guiji_naturalresources_bdcdjxx (
|
|
|
+ <include refid="global_name"></include>
|
|
|
+ DJBH,FDZL,GYFS,QLLX,CQXZ,CZFS,ZPGJ,QSJE,ZCJJ,QSJS,WXZJ,YYS,WSRQ,CQAZHTRQ,DJYY,FJ,HH,ZCS,SZC,GHYT,
|
|
|
+ FWJG,FWXZ,SCJZMJ,SCZYJZMJ,SCFTJZMJ,JGSJ,FWZL,TDQLXZ,TDQLLX,TDYT,TDSYQXKS,TDSYQXJS,SYNX,DYTDMJ,
|
|
|
+ FTTDMJ,GYTDMJ,ZDDM,BDCDYH,BDCID
|
|
|
+ )
|
|
|
+ values (
|
|
|
+ <include refid="global_value"></include>
|
|
|
+ #{DJBH},#{FDZL},#{GYFS},#{QLLX},#{CQXZ},#{CZFS},#{ZPGJ},#{QSJE},#{ZCJJ},#{QSJS},#{WXZJ},#{YYS},#{WSRQ},
|
|
|
+ #{CQAZHTRQ},#{DJYY},#{FJ},#{HH},#{ZCS},#{SZC},#{GHYT},#{FWJG},#{FWXZ},
|
|
|
+ #{SCJZMJ},#{SCZYJZMJ},#{SCFTJZMJ},#{JGSJ},#{FWZL},#{TDQLXZ},#{TDQLLX},#{TDYT},#{TDSYQXKS},
|
|
|
+ #{TDSYQXJS},#{SYNX},#{DYTDMJ},#{FTTDMJ},#{GYTDMJ},#{ZDDM},#{BDCDYH},#{BDCID}
|
|
|
+ )
|
|
|
+
|
|
|
+
|
|
|
+ </insert>
|
|
|
+ <update id="update_guiji_naturalresources_bdcdjxx" parameterMap="pm_bdcdjxx">
|
|
|
+ update t_gguiji_naturalresources_bdcdjxx
|
|
|
+
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <include refid="update_sql"></include>
|
|
|
+ <if test="DJBH != null and DJBH != ''">
|
|
|
+ DJBH = #{DJBH}
|
|
|
+ </if>
|
|
|
+ <if test="FDZL != null and FDZL != ''">
|
|
|
+ FDZL = #{FDZL}
|
|
|
+ </if>
|
|
|
+ <if test="GYFS != null and GYFS != ''">
|
|
|
+ GYFS = #{GYFS}
|
|
|
+ </if>
|
|
|
+ <if test="QLLX != null and QLLX != ''">
|
|
|
+ QLLX = #{QLLX}
|
|
|
+ </if>
|
|
|
+ <if test="CQXZ != null and CQXZ != ''">
|
|
|
+ CQXZ = #{CQXZ}
|
|
|
+ </if>
|
|
|
+ <if test="CZFS != null and CZFS != ''">
|
|
|
+ CZFS = #{CZFS}
|
|
|
+ </if>
|
|
|
+ <if test="ZPGJ != null and ZPGJ != ''">
|
|
|
+ ZPGJ = #{ZPGJ}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="QSJE != null and QSJE != ''">
|
|
|
+ QSJE = #{QSJE}
|
|
|
+ </if>
|
|
|
+ <if test="ZCJJ != null and ZCJJ != ''">
|
|
|
+ ZCJJ = #{ZCJJ}
|
|
|
+ </if>
|
|
|
+ <if test="QSJS != null and QSJS != ''">
|
|
|
+ QSJS = #{QSJS}
|
|
|
+ </if>
|
|
|
+ <if test="WXZJ != null and WXZJ != ''">
|
|
|
+ WXZJ = #{WXZJ}
|
|
|
+ </if>
|
|
|
+ <if test="YYS != null and YYS != ''">
|
|
|
+ YYS = #{YYS}
|
|
|
+ </if>
|
|
|
+ <if test="WSRQ != null and WSRQ != ''">
|
|
|
+ WSRQ = #{WSRQ}
|
|
|
+ </if>
|
|
|
+ <if test="CQAZHTRQ != null and CQAZHTRQ != ''">
|
|
|
+ CQAZHTRQ = #{CQAZHTRQ}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="DJYY != null and DJYY != ''">
|
|
|
+ DJYY = #{DJYY}
|
|
|
+ </if>
|
|
|
+ <if test="FJ != null and FJ != ''">
|
|
|
+ FJ = #{FJ}
|
|
|
+ </if>
|
|
|
+ <if test="HH != null and HH != ''">
|
|
|
+ HH = #{HH}
|
|
|
+ </if>
|
|
|
+ <if test="ZCS != null and ZCS != ''">
|
|
|
+ ZCS = #{ZCS}
|
|
|
+ </if>
|
|
|
+ <if test="SZC != null and SZC != ''">
|
|
|
+ SZC = #{SZC}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="GHYT != null and GHYT != ''">
|
|
|
+ GHYT = #{GHYT}
|
|
|
+ </if>
|
|
|
+ <if test="FWJG != null and FWJG != ''">
|
|
|
+ FWJG = #{FWJG}
|
|
|
+ </if>
|
|
|
+ <if test="FWXZ != null and FWXZ != ''">
|
|
|
+ FWXZ = #{FWXZ}
|
|
|
+ </if>
|
|
|
+ <if test="SCJZMJ != null and SCJZMJ != ''">
|
|
|
+ SCJZMJ = #{SCJZMJ}
|
|
|
+ </if>
|
|
|
+ <if test="SCZYJZMJ != null and SCZYJZMJ != ''">
|
|
|
+ SCZYJZMJ = #{SCZYJZMJ}
|
|
|
+ </if>
|
|
|
+ <if test="SCFTJZMJ != null and SCFTJZMJ != ''">
|
|
|
+ SCFTJZMJ = #{SCFTJZMJ}
|
|
|
+ </if>
|
|
|
+ <if test="JGSJ != null and JGSJ != ''">
|
|
|
+ JGSJ = #{JGSJ}
|
|
|
+ </if>
|
|
|
+ ,,,,,,,,,,,,,,,,,,,
|
|
|
+
|
|
|
+ <if test="FWZL != null and FWZL != ''">
|
|
|
+ FWZL = #{FWZL}
|
|
|
+ </if>
|
|
|
+ <if test="TDQLXZ != null and TDQLXZ != ''">
|
|
|
+ TDQLXZ = #{TDQLXZ}
|
|
|
+ </if>
|
|
|
+ <if test="TDQLLX != null and TDQLLX != ''">
|
|
|
+ TDQLLX = #{TDQLLX}
|
|
|
+ </if>
|
|
|
+ <if test="TDYT != null and TDYT != ''">
|
|
|
+ TDYT = #{TDYT}
|
|
|
+ </if>
|
|
|
+ <if test="TDSYQXKS != null and TDSYQXKS != ''">
|
|
|
+ TDSYQXKS = #{TDSYQXKS}
|
|
|
+ </if>
|
|
|
+ <if test="TDSYQXJS != null and TDSYQXJS != ''">
|
|
|
+ TDSYQXJS = #{TDSYQXJS}
|
|
|
+ </if>
|
|
|
+ <if test="SYNX != null and SYNX != ''">
|
|
|
+ SYNX = #{SYNX}
|
|
|
+ </if>
|
|
|
+ <if test="DYTDMJ != null and DYTDMJ != ''">
|
|
|
+ DYTDMJ = #{DYTDMJ}
|
|
|
+ </if>
|
|
|
+ <if test="FTTDMJ != null and FTTDMJ != ''">
|
|
|
+ FTTDMJ = #{FTTDMJ}
|
|
|
+ </if>
|
|
|
+ <if test="GYTDMJ != null and GYTDMJ != ''">
|
|
|
+ GYTDMJ = #{GYTDMJ}
|
|
|
+ </if>
|
|
|
+ <if test="ZDDM != null and ZDDM != ''">
|
|
|
+ ZDDM = #{ZDDM}
|
|
|
+ </if>
|
|
|
+ <if test="BDCDYH != null and BDCDYH != ''">
|
|
|
+ BDCDYH = #{BDCDYH}
|
|
|
+ </if>
|
|
|
+ <if test="BDCID != null and BDCID != ''">
|
|
|
+ BDCID = #{BDCID}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </trim>
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <resultMap id="rm_qlrjbxx" type="com.sooka.model.bo.Guiji_naturalresources_qlrjbxx_Bean"></resultMap>
|
|
|
+
|
|
|
+ <select id="qlrjbxx_select_genren" resultMap="rm_qlrjbxx">
|
|
|
+ select DJBH,QLRLX,QLBH,QLRBH,QLLB,QLRMC,SXH,ZJLB,ZJHM,FZJG,SSHY,GJDQ,
|
|
|
+ HJSZSS,XB,DH,DZ,YB,GZDW,DZYJ,
|
|
|
+ QDFS,QLRXZ,QLMJ,QLBL,GYFS,QSZT,QZH,ZSBH,FRLX,FRDB,CSRQ,SFZTP,BZ
|
|
|
+ from t_guiji_naturalresources_qlrjbxx
|
|
|
+ where QLRXZ = '个人'
|
|
|
+
|
|
|
+ <if test="DJBH != null and DJBH != ''">
|
|
|
+ and DJBH = #{DJBH}
|
|
|
+ </if>
|
|
|
+ <if test="DJBH == null or DJBH == ''">
|
|
|
+ and 1=2
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="qlrjbxx_select_qiye" resultMap="rm_qlrjbxx">
|
|
|
+ select DJBH,QLRLX,QLBH,QLRBH,QLLB,QLRMC,SXH,ZJLB,ZJHM,FZJG,SSHY,GJDQ,
|
|
|
+ HJSZSS,XB,DH,DZ,YB,GZDW,DZYJ,
|
|
|
+ QDFS,QLRXZ,QLMJ,QLBL,GYFS,QSZT,QZH,ZSBH,FRLX,FRDB,CSRQ,SFZTP,BZ
|
|
|
+ from t_guiji_naturalresources_qlrjbxx
|
|
|
+ where QLRXZ = '企业'
|
|
|
+
|
|
|
+ <if test="DJBH != null and DJBH != ''">
|
|
|
+ and DJBH = #{DJBH}
|
|
|
+ </if>
|
|
|
+ <if test="DJBH == null or DJBH == ''">
|
|
|
+ and 1=2
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="qlrjbxx_select_qita" resultMap="rm_qlrjbxx">
|
|
|
+
|
|
|
+ select DJBH,QLRLX,QLBH,QLRBH,QLLB,QLRMC,SXH,ZJLB,ZJHM,FZJG,SSHY,GJDQ,
|
|
|
+ HJSZSS,XB,DH,DZ,YB,GZDW,DZYJ,
|
|
|
+ QDFS,QLRXZ,QLMJ,QLBL,GYFS,QSZT,QZH,ZSBH,FRLX,FRDB,CSRQ,SFZTP,BZ
|
|
|
+ from t_guiji_naturalresources_qlrjbxx
|
|
|
+ where (QLRXZ != '个人' and QLRXZ != '企业')
|
|
|
+
|
|
|
+ <if test="DJBH != null and DJBH != ''">
|
|
|
+ and DJBH = #{DJBH}
|
|
|
+ </if>
|
|
|
+ <if test="DJBH == null or DJBH == ''">
|
|
|
+ and 1=2
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|