123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521 |
- <?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,TSDW,TQ)
- 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},#{TSDW},#{TQ}
- )
- </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>
- <if test="TSDW != null and TSDW != ''">
- TSDW = #{TSDW},
- </if>
- <if test="TQ != null and TQ != ''">
- TQ = #{TQ},
- </if>
- </trim>
- where id =#{id}
- </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,ZSBH,YT,MJ,QZH,BZ,TSDW,FWXZ,DBSJ,DYQR,DYR,DYZTS,CQJE,ZWLXQS,ZWLXQZ,
- TXQZH,DYYGQLR,DYYGYWR,DYYGZMH,DYYGDJLX,YGQLR,YGYWR,YGZMH,YGDJLX,CS,FWJG,HH,ZCS,SZC,SCJZMJ,SCZYJZMJ,
- SCFTJZMJ,XZ,LX,TDYT,TDSYQXKS,TDSYQXJS,YWMS,ZSMC
- )
- values (
- <include refid="global_value"></include>
- #{DJBH},#{QLRMC},#{GYFS},#{FWZL},#{BDCDYH},#{ZSBH},#{YT},#{MJ},#{QZH},#{BZ},#{TSDW},#{FWXZ},
- #{DBSJ},#{DYQR},#{DYR},#{DYZTS},#{CQJE},#{ZWLXQS},#{ZWLXQZ},#{TXQZH},#{DYYGQLR},#{DYYGYWR},
- #{DYYGZMH},#{DYYGDJLX},#{YGQLR},#{YGYWR},#{YGZMH},#{YGDJLX},#{CS},#{FWJG},#{HH},#{ZCS},#{SZC},
- #{SCJZMJ},#{SCZYJZMJ},#{SCFTJZMJ},#{XZ},#{LX},
- #{TDYT},#{TDSYQXKS},#{TDSYQXJS},#{YWMS},#{ZSMC}
- )
- </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="ZSBH != null and ZSBH != ''">
- ZSBH = #{ZSBH},
- </if>
- <if test="YT != null and YT != ''">
- YT = #{YT},
- </if>
- <if test="MJ != null and MJ != ''">
- MJ = #{MJ},
- </if>
- <if test="QZH != null and QZH != ''">
- QZH = #{QZH},
- </if>
- <if test="BZ != null and BZ != ''">
- BZ = #{BZ},
- </if>
- <if test="TSDW != null and TSDW != ''">
- TSDW = #{TSDW},
- </if>
- <if test="FWXZ != null and FWXZ != ''">
- FWXZ = #{FWXZ},
- </if>
- <if test="DBSJ != null and DBSJ != ''">
- DBSJ = #{DBSJ},
- </if>
- <if test="DYQR != null and DYQR != ''">
- DYQR = #{DYQR},
- </if>
- <if test="DYZTS != null and DYZTS != ''">
- DYZTS = #{DYZTS},
- </if>
- <if test="DYR != null and DYR != ''">
- DYR = #{DYR},
- </if>
- <if test="CQJE != null and CQJE != ''">
- CQJE = #{CQJE},
- </if>
- <if test="ZWLXQS != null and ZWLXQS != ''">
- ZWLXQS = #{ZWLXQS},
- </if>
- <if test="ZWLXQZ != null and ZWLXQZ != ''">
- ZWLXQZ = #{ZWLXQZ},
- </if>
- <if test="TXQZH != null and TXQZH != ''">
- TXQZH = #{TXQZH},
- </if>
- <if test="DYYGQLR != null and DYYGQLR != ''">
- DYYGQLR = #{DYYGQLR},
- </if>
- <if test="DYYGYWR != null and DYYGYWR != ''">
- DYYGYWR = #{DYYGYWR},
- </if>
- <if test="DYYGZMH != null and DYYGZMH != ''">
- DYYGZMH = #{DYYGZMH},
- </if>
- <if test="DYYGDJLX != null and DYYGDJLX != ''">
- DYYGDJLX = #{DYYGDJLX},
- </if>
- <if test="YGQLR != null and YGQLR != ''">
- YGQLR = #{YGQLR},
- </if>
- <if test="YGYWR != null and YGYWR != ''">
- YGYWR = #{YGYWR},
- </if>
- <if test="YGZMH != null and YGZMH != ''">
- YGZMH = #{YGZMH},
- </if>
- <if test="YGDJLX != null and YGDJLX != ''">
- YGDJLX = #{YGDJLX},
- </if>
- <if test="CS != null and CS != ''">
- CS = #{CS},
- </if>
- <if test="FWJG != null and FWJG != ''">
- FWJG = #{FWJG},
- </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="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="XZ != null and XZ != ''">
- XZ = #{XZ},
- </if>
- <if test="LX != null and LX != ''">
- LX = #{LX},
- </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="YWMS != null and YWMS != ''">
- YWMS = #{YWMS},
- </if>
- <if test="ZSMC != null and ZSMC != ''">
- ZSMC = #{ZSMC},
- </if>
- </trim>
- where id =#{id}
- </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,TSDW
- )
- 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},#{TSDW}
- )
- </insert>
- <update id="update_guiji_naturalresources_bdcdjxx" parameterMap="pm_bdcdjxx">
- update t_guiji_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>
- <if test="TSDW != null and TSDW != ''">
- TSDW = #{TSDW},
- </if>
- </trim>
- where id =#{id}
- </update>
- <resultMap id="rm_qlrjbxx" type="com.sooka.model.bo.Guiji_naturalresources_qlrjbxx_Bean"></resultMap>
- <select id="qlrjbxx_select" parameterMap="pm_qlrjbxx" 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,TSDW,TQ
- from t_guiji_naturalresources_qlrjbxx
- where
- <if test="QLRXZ == '个人' or QLRXZ == '企业'">
- QLRXZ=#{QLRXZ}
- </if>
- <if test="QLRXZ == '其他'">
- (QLRXZ is null OR QLRXZ = '' or (QLRXZ != '个人' and QLRXZ != '企业'))
- </if>
- <if test="QLRMC != null and QLRMC != ''">
- and QLRMC = #{QLRMC}
- </if>
- <if test="ZJHM != null and ZJHM != ''">
- and ZJHM =#{ZJHM}
- </if>
- </select>
- <resultMap id="rm_bdcdjxx" type="com.sooka.model.bo.Guiji_naturalresources_bdcdjxx_Bean"></resultMap>
- <select id="bdcdjxx_select" parameterMap="pm_bdcdjxx" resultMap="rm_bdcdjxx">
- select 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,TSDW from t_guiji_naturalresources_bdcdjxx
- where
- <if test="GHYT == '住宅' or GHYT == '办公' or GHYT == '商业服务'">
- GHYT = #{GHYT}
- </if>
- <if test="GHYT == '其他'">
- (GHYT is null OR GHYT = '' or (GHYT != '住宅' and GHYT != '办公' and GHYT != '商业服务'))
- </if>
- <if test="DJBH != null and DJBH != ''">
- and DJBH=#{DJBH}
- </if>
- <if test="FDZL != null and FDZL != ''">
- and FDZL= #{FDZL}
- </if>
- </select>
- <resultMap id="rm_bdcdjzxx" type="com.sooka.model.bo.Guiji_naturalresources_bdcdjzxx_Bean"></resultMap>
- <select id="bdcdjzxx_select" resultMap="rm_bdcdjzxx" parameterMap="pm_bdcdjzxx">
- select
- DJBH,QLRMC,GYFS,FWZL,BDCDYH,ZSBH,YT,MJ,QZH,BZ,TSDW,FWXZ,DBSJ,DYQR,DYR,DYZTS,CQJE,ZWLXQS,ZWLXQZ,
- TXQZH,DYYGQLR,DYYGYWR,DYYGZMH,DYYGDJLX,YGQLR,YGYWR,YGZMH,YGDJLX,CS,FWJG,HH,ZCS,SZC,SCJZMJ,SCZYJZMJ,
- SCFTJZMJ,XZ,LX,TDYT,TDSYQXKS,TDSYQXJS,YWMS,ZSMC
- from t_guiji_naturalresources_bdcdjzxx
- where
- <if test="YT == '住宅' or YT == '办公' or YT == '商业服务'">
- YT = #{YT}
- </if>
- <if test="YT == '其他'">
- (YT is null OR YT = '' or (YT != '住宅' and YT != '办公' and YT != '商业服务'))
- </if>
- <if test="DJBH != null and DJBH != ''">
- and DJBH = #{DJBH}
- </if>
- <if test="QLRMC != null and QLRMC != ''">
- and QLRMC = #{QLRMC}
- </if>
- </select>
- </mapper>
|