1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?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.minpay.db.table.own.mapper.NewsMapper">
- <select id="newsManageQuery" resultType="hashmap" parameterType="java.util.Map">
- SELECT AIF_ID "id",
- AIF_TITLE "title",
- AIF_CONTENT "content",
- AIF_MODULE "module",
- AIF_STATUS "status",
- AIF_IMG_SHOW "imgShow",
- AIF_CREATEUSER "createuser",
- AIF_CREATETIME "createtime",
- AIF_MODIFYUSER "modifyuser",
- AIF_MODIFYTIME "modifytime"
- FROM tp_article_inf a
- WHERE AIF_STATUS = '0'
- and AIF_MODULE = '04'
- <if test="titleId != null and titleId != ''">
- and AIF_TITLE like concat('%',#{titleId,jdbcType=VARCHAR},'%')
- </if>
- <if test="strDate !=null and strDate != ''">
- and substr(AIF_CREATETIME,1,8) between substr((#{strDate, jdbcType=VARCHAR}),1,8)
- and substr((#{strDate, jdbcType=VARCHAR}),12,19)
- </if>
- </select>
-
- <select id="queryOtherNews" resultType="hashmap" parameterType="java.util.Map">
- SELECT AIF_ID "id",
- AIF_TITLE "title",
- AIF_CONTENT "content",
- AIF_MODULE "module",
- AIF_STATUS "status",
- AIF_IMG_SHOW "imgShow",
- b.FRS_FILE_URL "imgUrl",
- AIF_CREATEUSER "createuser",
- AIF_CREATETIME "createtime",
- AIF_MODIFYUSER "modifyuser",
- AIF_MODIFYTIME "modifytime"
- FROM tp_article_inf a, pub_file_resources b
- WHERE AIF_STATUS = '0'
- and a.AIF_IMG_URL = b.FRS_NO
- and AIF_MODULE in ('00', '01', '02')
- <if test="titleId != null and titleId != ''">
- and AIF_TITLE like concat('%',#{titleId,jdbcType=VARCHAR},'%')
- </if>
- <if test="strDate !=null and strDate != ''">
- and substr(AIF_CREATETIME,1,8) between substr((#{strDate, jdbcType=VARCHAR}),1,8)
- and substr((#{strDate, jdbcType=VARCHAR}),12,19)
- </if>
- </select>
-
-
- </mapper>
|