You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.8 KiB
42 lines
1.8 KiB
5 years ago
|
<?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.epmet.dao.stats.FactArticlePublishedGridDailyDao">
|
||
|
|
||
|
<resultMap type="com.epmet.entity.stats.FactArticlePublishedGridDailyEntity" id="factArticlePublishedGridDailyMap">
|
||
|
<result property="id" column="ID"/>
|
||
|
<result property="customerId" column="CUSTOMER_ID"/>
|
||
|
<result property="agencyId" column="AGENCY_ID"/>
|
||
|
<result property="gridId" column="GRID_ID"/>
|
||
|
<result property="articleTotalCount" column="ARTICLE_TOTAL_COUNT"/>
|
||
|
<result property="articlePublishedCount" column="ARTICLE_PUBLISHED_COUNT"/>
|
||
|
<result property="dateId" column="DATE_ID"/>
|
||
|
<result property="weekId" column="WEEK_ID"/>
|
||
|
<result property="monthId" column="MONTH_ID"/>
|
||
|
<result property="quarterId" column="QUARTER_ID"/>
|
||
|
<result property="yearId" column="YEAR_ID"/>
|
||
|
<result property="delFlag" column="DEL_FLAG"/>
|
||
|
<result property="revision" column="REVISION"/>
|
||
|
<result property="createdBy" column="CREATED_BY"/>
|
||
|
<result property="createdTime" column="CREATED_TIME"/>
|
||
|
<result property="updatedBy" column="UPDATED_BY"/>
|
||
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
||
|
</resultMap>
|
||
|
<select id="getByBeforeDay" resultType="com.epmet.entity.stats.FactArticlePublishedAgencyDailyEntity">
|
||
|
SELECT
|
||
|
CUSTOMER_ID,
|
||
|
AGENCY_ID,
|
||
|
GRID_ID,
|
||
|
DATE_ID,
|
||
|
ARTICLE_TOTAL_COUNT,
|
||
|
ARTICLE_PUBLISHED_COUNT
|
||
|
FROM
|
||
|
fact_article_published_grid_daily
|
||
|
WHERE
|
||
|
DEL_FLAG = 0
|
||
|
AND CUSTOMER_ID = #{customerId,jdbcType=VARCHAR}
|
||
|
AND DATE_ID = #{dateId,jdbcType=TIMESTAMP}
|
||
|
</select>
|
||
|
|
||
|
|
||
|
</mapper>
|