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.
97 lines
3.7 KiB
97 lines
3.7 KiB
<?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.indexcoll.FactIndexPartyAblityCpcMonthlyDao">
|
|
|
|
<resultMap type="com.epmet.entity.indexcoll.FactIndexPartyAblityCpcMonthlyEntity" id="factIndexPartyAblityCpcMonthlyMap">
|
|
<result property="id" column="ID"/>
|
|
<result property="customerId" column="CUSTOMER_ID"/>
|
|
<result property="agencyId" column="AGENCY_ID"/>
|
|
<result property="parentId" column="PARENT_ID"/>
|
|
<result property="gridId" column="GRID_ID"/>
|
|
<result property="monthId" column="MONTH_ID"/>
|
|
<result property="quarterId" column="QUARTER_ID"/>
|
|
<result property="yearId" column="YEAR_ID"/>
|
|
<result property="createTopicCount" column="CREATE_TOPIC_COUNT"/>
|
|
<result property="joinTopicCount" column="JOIN__TOPIC_COUNT"/>
|
|
<result property="shiftIssueCount" column="SHIFT_ISSUE_COUNT"/>
|
|
<result property="shiftProjectCount" column="SHIFT_PROJECT_COUNT"/>
|
|
<result property="joinThreeMeetsCount" column="JOIN_THREE_MEETS_COUNT"/>
|
|
<result property="groupUserCount" column="GROUP_USER_COUNT"/>
|
|
<result property="groupTopicCount" column="GROUP_TOPIC_COUNT"/>
|
|
<result property="topicToIssueRatio" column="TOPIC_TO_ISSUE_RATIO"/>
|
|
<result property="groupActiveUserCount" column="GROUP_ACTIVE_USER_COUNT"/>
|
|
<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"/>
|
|
<result property="userId" column="USER_ID"/>
|
|
</resultMap>
|
|
|
|
<delete id="deleteFactIndexPartyAblityCpcMonthly">
|
|
delete from fact_index_party_ablity_cpc_monthly
|
|
where CUSTOMER_ID = #{customerId} AND AGENCY_ID = #{agencyId} AND GRID_ID = #{gridId} AND USER_ID = #{userId}
|
|
AND YEAR_ID = #{yearId} AND MONTH_ID = #{monthId} AND QUARTER_ID = #{quarterId}
|
|
</delete>
|
|
|
|
<insert id="batchInsertFactIndexPartyAblityCpcMonthly" parameterType="map">
|
|
insert into fact_index_party_ablity_cpc_monthly
|
|
(
|
|
ID,
|
|
CUSTOMER_ID,
|
|
AGENCY_ID,
|
|
PARENT_ID,
|
|
GRID_ID,
|
|
MONTH_ID,
|
|
QUARTER_ID,
|
|
YEAR_ID,
|
|
CREATE_TOPIC_COUNT,
|
|
JOIN__TOPIC_COUNT,
|
|
SHIFT_ISSUE_COUNT,
|
|
SHIFT_PROJECT_COUNT,
|
|
JOIN_THREE_MEETS_COUNT,
|
|
GROUP_USER_COUNT,
|
|
GROUP_TOPIC_COUNT,
|
|
TOPIC_TO_ISSUE_RATIO,
|
|
GROUP_ACTIVE_USER_COUNT,
|
|
DEL_FLAG,
|
|
REVISION,
|
|
CREATED_BY,
|
|
CREATED_TIME,
|
|
UPDATED_BY,
|
|
UPDATED_TIME,
|
|
USER_ID
|
|
) values
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
(
|
|
(SELECT REPLACE(UUID(), '-', '') AS id),
|
|
#{customerId},
|
|
#{item.agencyId},
|
|
#{item.parentId},
|
|
#{item.gridId},
|
|
#{item.monthId},
|
|
#{item.quarterId},
|
|
#{item.yearId},
|
|
#{item.createTopicCount},
|
|
#{item.joinTopicCount},
|
|
#{item.shiftIssueCount},
|
|
#{item.shiftProjectCount},
|
|
#{item.joinThreeMeetsCount},
|
|
#{item.groupUserCount},
|
|
#{item.groupTopicCount},
|
|
#{item.topicToIssueRatio},
|
|
#{item.groupActiveUserCount},
|
|
0,
|
|
0,
|
|
'APP_USER',
|
|
now(),
|
|
'APP_USER',
|
|
now(),
|
|
#{item.userId}
|
|
)
|
|
</foreach>
|
|
</insert>
|
|
|
|
</mapper>
|
|
|