forked from luyan/epmet-cloud-lingshan
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.
84 lines
2.8 KiB
84 lines
2.8 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.screen.ScreenPublicPartiTotalDataDao">
|
|
|
|
<resultMap type="com.epmet.entity.screen.ScreenPublicPartiTotalDataEntity" id="screenPublicPartiTotalDataMap">
|
|
<result property="id" column="ID"/>
|
|
<result property="customerId" column="CUSTOMER_ID"/>
|
|
<result property="orgType" column="ORG_TYPE"/>
|
|
<result property="orgId" column="ORG_ID"/>
|
|
<result property="parentId" column="PARENT_ID"/>
|
|
<result property="orgName" column="ORG_NAME"/>
|
|
<result property="dataEndTime" column="DATA_END_TIME"/>
|
|
<result property="topicTotal" column="TOPIC_TOTAL"/>
|
|
<result property="issueTotal" column="ISSUE_TOTAL"/>
|
|
<result property="projectTotal" column="PROJECT_TOTAL"/>
|
|
<result property="regUserTotal" column="REG_USER_TOTAL"/>
|
|
<result property="joinUserTotal" column="JOIN_USER_TOTAL"/>
|
|
<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>
|
|
|
|
<delete id="deletePublicPartiTotalData">
|
|
delete from screen_public_parti_total_data
|
|
where CUSTOMER_ID = #{customerId}
|
|
AND ORG_ID IN
|
|
<foreach item="item" collection="orgIds" open="(" separator="," close=")">
|
|
#{item}
|
|
</foreach>
|
|
</delete>
|
|
|
|
<insert id="batchInsertPublicPartiTotalData" parameterType="map">
|
|
insert into screen_public_parti_total_data
|
|
(
|
|
ID,
|
|
CUSTOMER_ID,
|
|
ORG_TYPE,
|
|
ORG_ID,
|
|
PARENT_ID,
|
|
ORG_NAME,
|
|
DATA_END_TIME,
|
|
TOPIC_TOTAL,
|
|
ISSUE_TOTAL,
|
|
PROJECT_TOTAL,
|
|
REG_USER_TOTAL,
|
|
JOIN_USER_TOTAL,
|
|
DEL_FLAG,
|
|
REVISION,
|
|
CREATED_BY,
|
|
CREATED_TIME,
|
|
UPDATED_BY,
|
|
UPDATED_TIME
|
|
) values
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
(
|
|
(SELECT REPLACE(UUID(), '-', '') AS id),
|
|
#{customerId},
|
|
#{item.orgType},
|
|
#{item.orgId},
|
|
#{item.parentId},
|
|
#{item.orgName},
|
|
#{item.dataEndTime},
|
|
#{item.topicTotal},
|
|
#{item.issueTotal},
|
|
#{item.projectTotal},
|
|
#{item.regUserTotal},
|
|
|
|
#{item.joinUserTotal},
|
|
0,
|
|
0,
|
|
'APP_USER',
|
|
now(),
|
|
'APP_USER',
|
|
now()
|
|
)
|
|
</foreach>
|
|
</insert>
|
|
|
|
|
|
</mapper>
|
|
|