123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd" >
- <sqlMap namespace="xx_xwfb" >
- <resultMap id="ibatorgenerated_BaseResultMap" class="com.huimv.xx.dataobject.XxXwfb" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- <result column="ID" property="id" jdbcType="INTEGER" />
- <result column="BT" property="bt" jdbcType="VARCHAR" />
- <result column="XXLX" property="xxlx" jdbcType="VARCHAR" />
- <result column="ZZ" property="zz" jdbcType="VARCHAR" />
- <result column="FM" property="fm" jdbcType="VARCHAR" />
- <result column="ZY" property="zy" jdbcType="VARCHAR" />
- <result column="FBSJ" property="fbsj" jdbcType="TIMESTAMP" />
- <result column="FBR" property="fbr" jdbcType="INTEGER" />
- <result column="URL" property="url" jdbcType="VARCHAR" />
- <result column="ZFBZ" property="zfbz" jdbcType="INTEGER" />
- <result column="XGR" property="xgr" jdbcType="VARCHAR" />
- <result column="XGSJ" property="xgsj" jdbcType="TIMESTAMP" />
- </resultMap>
- <resultMap id="ibatorgenerated_ResultMapWithBLOBs" class="com.huimv.xx.dataobject.XxXwfb" extends="xx_xwfb.ibatorgenerated_BaseResultMap" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- <result column="ZW" property="zw" jdbcType="LONGVARCHAR" />
- </resultMap>
- <sql id="ibatorgenerated_Example_Where_Clause" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- <iterate property="oredCriteria" conjunction="or" prepend="where" removeFirstPrepend="iterate" >
- <isEqual property="oredCriteria[].valid" compareValue="true" >
- (
- <iterate prepend="and" property="oredCriteria[].criteriaWithoutValue" conjunction="and" >
- $oredCriteria[].criteriaWithoutValue[]$
- </iterate>
- <iterate prepend="and" property="oredCriteria[].criteriaWithSingleValue" conjunction="and" >
- $oredCriteria[].criteriaWithSingleValue[].condition$
- #oredCriteria[].criteriaWithSingleValue[].value#
- </iterate>
- <iterate prepend="and" property="oredCriteria[].criteriaWithListValue" conjunction="and" >
- $oredCriteria[].criteriaWithListValue[].condition$
- <iterate property="oredCriteria[].criteriaWithListValue[].values" open="(" close=")" conjunction="," >
- #oredCriteria[].criteriaWithListValue[].values[]#
- </iterate>
- </iterate>
- <iterate prepend="and" property="oredCriteria[].criteriaWithBetweenValue" conjunction="and" >
- $oredCriteria[].criteriaWithBetweenValue[].condition$
- #oredCriteria[].criteriaWithBetweenValue[].values[0]# and
- #oredCriteria[].criteriaWithBetweenValue[].values[1]#
- </iterate>
- )
- </isEqual>
- </iterate>
- </sql>
- <select id="ibatorgenerated_selectByExampleWithBLOBs" resultMap="ibatorgenerated_ResultMapWithBLOBs" parameterClass="com.huimv.xx.dataobject.XxXwfbExample" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- select ID, BT, XXLX, ZZ, FM, ZY, FBSJ, FBR, URL, ZFBZ, XGR, XGSJ, ZW
- from xx_xwfb
- <isParameterPresent >
- <include refid="xx_xwfb.ibatorgenerated_Example_Where_Clause" />
- <isNotNull property="orderByClause" >
- order by $orderByClause$
- </isNotNull>
- </isParameterPresent>
- </select>
- <select id="ibatorgenerated_selectByExample" resultMap="ibatorgenerated_BaseResultMap" parameterClass="com.huimv.xx.dataobject.XxXwfbExample" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Mon Aug 04 14:12:57 CST 2014.
- -->
- select ID, BT, XXLX, ZZ, FM, ZY, FBSJ, FBR, URL, ZFBZ, XGR, XGSJ
- from xx_xwfb
- <isParameterPresent >
- <include refid="xx_xwfb.ibatorgenerated_Example_Where_Clause" />
- <isNotNull property="orderByClause" >
- order by $orderByClause$
- </isNotNull>
- <isGreaterEqual property="start" compareValue="0" >
- limit $start$ , $limit$
- </isGreaterEqual>
- </isParameterPresent>
- </select>
- <select id="ibatorgenerated_selectByPrimaryKey" resultClass="com.huimv.xx.dataobject.XxXwfb" parameterClass="com.huimv.xx.dataobject.XxXwfb" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- <!-- select ID, BT, XXLX, ZZ, FM, ZY, FBSJ, FBR, URL, ZFBZ, ZW
- from xx_xwfb
- where ID = #id:INTEGER# -->
- select xx.ID, xx.BT, xx.XXLX, xx.ZZ, xx.FM, xx.ZY, xx.FBSJ, xx.FBR, xx.URL, xx.ZFBZ, xx.XGR, xx.XGSJ, xx.ZW, cz.YHXM AS FBRXM
- from xx_xwfb xx
- LEFT JOIN xt_czyh cz ON cz.ID = xx.FBR AND cz.ZFBZ = 0
- where xx.ID = #id:INTEGER#
- </select>
- <delete id="ibatorgenerated_deleteByPrimaryKey" parameterClass="com.huimv.xx.dataobject.XxXwfb" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- delete from xx_xwfb
- where ID = #id:INTEGER#
- </delete>
- <delete id="ibatorgenerated_deleteByExample" parameterClass="com.huimv.xx.dataobject.XxXwfbExample" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- delete from xx_xwfb
- <include refid="xx_xwfb.ibatorgenerated_Example_Where_Clause" />
- </delete>
- <insert id="ibatorgenerated_insert" parameterClass="com.huimv.xx.dataobject.XxXwfb" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- insert into xx_xwfb (ID, BT, XXLX, ZZ, FM, ZY, FBSJ, FBR, URL, ZFBZ, XGR, XGSJ, ZW)
- values (#id:INTEGER#, #bt:VARCHAR#, #xxlx:VARCHAR#, #zz:VARCHAR#, #fm:VARCHAR#, #zy:VARCHAR#,
- #fbsj:TIMESTAMP#, #fbr:INTEGER#, #url:VARCHAR#, #zfbz:INTEGER#, #xgr:VARCHAR#,
- #xgsj:TIMESTAMP#, #zw:LONGVARCHAR#)
- </insert>
- <insert id="ibatorgenerated_insertSelective" parameterClass="com.huimv.xx.dataobject.XxXwfb" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- insert into xx_xwfb
- <dynamic prepend="(" >
- <isNotNull prepend="," property="id" >
- ID
- </isNotNull>
- <isNotNull prepend="," property="bt" >
- BT
- </isNotNull>
- <isNotNull prepend="," property="xxlx" >
- XXLX
- </isNotNull>
- <isNotNull prepend="," property="zz" >
- ZZ
- </isNotNull>
- <isNotNull prepend="," property="fm" >
- FM
- </isNotNull>
- <isNotNull prepend="," property="zy" >
- ZY
- </isNotNull>
- <isNotNull prepend="," property="fbsj" >
- FBSJ
- </isNotNull>
- <isNotNull prepend="," property="fbr" >
- FBR
- </isNotNull>
- <isNotNull prepend="," property="url" >
- URL
- </isNotNull>
- <isNotNull prepend="," property="zfbz" >
- ZFBZ
- </isNotNull>
- <isNotNull prepend="," property="xgr" >
- XGR
- </isNotNull>
- <isNotNull prepend="," property="xgsj" >
- XGSJ
- </isNotNull>
- <isNotNull prepend="," property="zw" >
- ZW
- </isNotNull>
- )
- </dynamic>
- values
- <dynamic prepend="(" >
- <isNotNull prepend="," property="id" >
- #id:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="bt" >
- #bt:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="xxlx" >
- #xxlx:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="zz" >
- #zz:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="fm" >
- #fm:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="zy" >
- #zy:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="fbsj" >
- #fbsj:TIMESTAMP#
- </isNotNull>
- <isNotNull prepend="," property="fbr" >
- #fbr:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="url" >
- #url:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="zfbz" >
- #zfbz:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="xgr" >
- #xgr:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="xgsj" >
- #xgsj:TIMESTAMP#
- </isNotNull>
- <isNotNull prepend="," property="zw" >
- #zw:LONGVARCHAR#
- </isNotNull>
- )
- </dynamic>
- </insert>
- <select id="ibatorgenerated_countByExample" parameterClass="com.huimv.xx.dataobject.XxXwfbExample" resultClass="java.lang.Integer" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- select count(*) from xx_xwfb
- <include refid="xx_xwfb.ibatorgenerated_Example_Where_Clause" />
- </select>
- <update id="ibatorgenerated_updateByExampleSelective" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- update xx_xwfb
- <dynamic prepend="set" >
- <isNotNull prepend="," property="record.id" >
- ID = #record.id:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="record.bt" >
- BT = #record.bt:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="record.xxlx" >
- XXLX = #record.xxlx:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="record.zz" >
- ZZ = #record.zz:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="record.fm" >
- FM = #record.fm:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="record.zy" >
- ZY = #record.zy:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="record.fbsj" >
- FBSJ = #record.fbsj:TIMESTAMP#
- </isNotNull>
- <isNotNull prepend="," property="record.fbr" >
- FBR = #record.fbr:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="record.url" >
- URL = #record.url:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="record.zfbz" >
- ZFBZ = #record.zfbz:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="record.xgr" >
- XGR = #record.xgr:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="record.xgsj" >
- XGSJ = #record.xgsj:TIMESTAMP#
- </isNotNull>
- <isNotNull prepend="," property="record.zw" >
- ZW = #record.zw:LONGVARCHAR#
- </isNotNull>
- </dynamic>
- <isParameterPresent >
- <include refid="xx_xwfb.ibatorgenerated_Example_Where_Clause" />
- </isParameterPresent>
- </update>
- <update id="ibatorgenerated_updateByExampleWithBLOBs" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- update xx_xwfb
- set ID = #record.id:INTEGER#,
- BT = #record.bt:VARCHAR#,
- XXLX = #record.xxlx:VARCHAR#,
- ZZ = #record.zz:VARCHAR#,
- FM = #record.fm:VARCHAR#,
- ZY = #record.zy:VARCHAR#,
- FBSJ = #record.fbsj:TIMESTAMP#,
- FBR = #record.fbr:INTEGER#,
- URL = #record.url:VARCHAR#,
- ZFBZ = #record.zfbz:INTEGER#,
- XGR = #record.xgr:VARCHAR#,
- XGSJ = #record.xgsj:TIMESTAMP#,
- ZW = #record.zw:LONGVARCHAR#
- <isParameterPresent >
- <include refid="xx_xwfb.ibatorgenerated_Example_Where_Clause" />
- </isParameterPresent>
- </update>
- <update id="ibatorgenerated_updateByExample" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- update xx_xwfb
- set ID = #record.id:INTEGER#,
- BT = #record.bt:VARCHAR#,
- XXLX = #record.xxlx:VARCHAR#,
- ZZ = #record.zz:VARCHAR#,
- FM = #record.fm:VARCHAR#,
- ZY = #record.zy:VARCHAR#,
- FBSJ = #record.fbsj:TIMESTAMP#,
- FBR = #record.fbr:INTEGER#,
- URL = #record.url:VARCHAR#,
- ZFBZ = #record.zfbz:INTEGER#,
- XGR = #record.xgr:VARCHAR#,
- XGSJ = #record.xgsj:TIMESTAMP#
- <isParameterPresent >
- <include refid="xx_xwfb.ibatorgenerated_Example_Where_Clause" />
- </isParameterPresent>
- </update>
- <update id="ibatorgenerated_updateByPrimaryKeySelective" parameterClass="com.huimv.xx.dataobject.XxXwfb" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- update xx_xwfb
- <dynamic prepend="set" >
- <isNotNull prepend="," property="bt" >
- BT = #bt:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="xxlx" >
- XXLX = #xxlx:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="zz" >
- ZZ = #zz:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="fm" >
- FM = #fm:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="zy" >
- ZY = #zy:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="fbsj" >
- FBSJ = #fbsj:TIMESTAMP#
- </isNotNull>
- <isNotNull prepend="," property="fbr" >
- FBR = #fbr:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="url" >
- URL = #url:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="zfbz" >
- ZFBZ = #zfbz:INTEGER#
- </isNotNull>
- <isNotNull prepend="," property="xgr" >
- XGR = #xgr:VARCHAR#
- </isNotNull>
- <isNotNull prepend="," property="xgsj" >
- XGSJ = #xgsj:TIMESTAMP#
- </isNotNull>
- <isNotNull prepend="," property="zw" >
- ZW = #zw:LONGVARCHAR#
- </isNotNull>
- </dynamic>
- where ID = #id:INTEGER#
- </update>
- <update id="ibatorgenerated_updateByPrimaryKeyWithBLOBs" parameterClass="com.huimv.xx.dataobject.XxXwfb" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- update xx_xwfb
- set BT = #bt:VARCHAR#,
- XXLX = #xxlx:VARCHAR#,
- ZZ = #zz:VARCHAR#,
- FM = #fm:VARCHAR#,
- ZY = #zy:VARCHAR#,
- FBSJ = #fbsj:TIMESTAMP#,
- FBR = #fbr:INTEGER#,
- URL = #url:VARCHAR#,
- ZFBZ = #zfbz:INTEGER#,
- XGR = #xgr:VARCHAR#,
- XGSJ = #xgsj:TIMESTAMP#,
- ZW = #zw:LONGVARCHAR#
- where ID = #id:INTEGER#
- </update>
- <update id="ibatorgenerated_updateByPrimaryKey" parameterClass="com.huimv.xx.dataobject.XxXwfb" >
- <!--
- WARNING - This element is automatically generated by Apache iBATIS ibator, do not modify.
- This element was generated on Wed Jun 18 09:54:04 CST 2014.
- -->
- update xx_xwfb
- set BT = #bt:VARCHAR#,
- XXLX = #xxlx:VARCHAR#,
- ZZ = #zz:VARCHAR#,
- FM = #fm:VARCHAR#,
- ZY = #zy:VARCHAR#,
- FBSJ = #fbsj:TIMESTAMP#,
- FBR = #fbr:INTEGER#,
- URL = #url:VARCHAR#,
- ZFBZ = #zfbz:INTEGER#,
- XGR = #xgr:VARCHAR#,
- XGSJ = #xgsj:TIMESTAMP#
- where ID = #id:INTEGER#
- </update>
-
- <!-- XxXwfb的搜索条件 -->
- <sql id="xx.xwfb.where.cause">
- <dynamic>
- <isNotEmpty prepend="and" property="id">
- x.ID = #id#
- </isNotEmpty>
- <isNotEmpty prepend="and" property="bt">
- x.BT like '%$bt$%'
- </isNotEmpty>
- <isNotEmpty prepend="and" property="xxlx">
- g.DMID = #xxlx#
- </isNotEmpty>
- <isNotEmpty prepend="and" property="zz">
- x.ZZ like '%$zz$%'
- </isNotEmpty>
- <isNotEmpty prepend="and" property="ksrq">
- <![CDATA[x.FBSJ >= #ksrq#]]>
- </isNotEmpty>
- <isNotEmpty prepend="and" property="jsrq">
- <![CDATA[x.FBSJ <= #jsrq#]]>
- </isNotEmpty>
- <isNotEmpty prepend="and" property="fbr">
- c.YHXM like '%$fbr$%'
- </isNotEmpty>
- </dynamic>
- </sql>
-
- <!-- 根据指定搜索条件新闻 -->
- <select id="select.xwfb.by.param" resultClass="com.huimv.xx.dataobject.XxXwfb" parameterClass="java.util.Map">
- SELECT x.ID,x.BT,x.XXLX,g.DMMC as XXLXMC, x.ZZ,x.FM,x.ZY,x.ZW,x.FBSJ,x.XGR,x.XGSJ,c.YHXM as FBRXM,x.URL,x.ZFBZ
- FROM
- xx_xwfb x
- LEFT JOIN xt_czyh c ON x.FBR = c.ID AND c.ZFBZ = 0
- LEFT JOIN xt_gydm g ON g.DMID = x.XXLX AND g.LBID = '19' AND g.ZFBZ = 0
- where x.ZFBZ = 0
- <isParameterPresent>
- <include refid="xx.xwfb.where.cause" />
- </isParameterPresent>
- <dynamic prepend="order by">
- <isNotEmpty property="order">$order$</isNotEmpty>
- </dynamic>
- limit #startRecord#,#endRecord#
- </select>
-
- <select id="count.xwfb.by.param" parameterClass="java.util.Map" resultClass="java.lang.Integer">
- SELECT COUNT(*) FROM xx_xwfb x
- left join xt_czyh c on x.fbr = c.id and c.zfbz = 0
- left join xt_gydm g ON g.DMID = x.XXLX AND g.LBID = '19' AND g.ZFBZ = 0
- where x.ZFBZ = 0
- <isParameterPresent>
- <include refid="xx.xwfb.where.cause" />
- </isParameterPresent>
- </select>
-
- <select id="get.xwfb.max.id" resultClass="java.lang.Integer">
- SELECT MAX(ID) FROM xx_xwfb
- </select>
- </sqlMap>
|