烟台政务云平台
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.
 
 
 
 
 

60 lines
1.6 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.ScreenIndexDataYearlyDao">
<delete id="deleteIndexDataYearly">
delete from screen_index_data_yearly
where CUSTOMER_ID = #{customerId} AND YEAR_ID = #{yearId}
AND ORG_ID IN
<foreach item="item" collection="orgIds" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<insert id="batchInsertIndexDataYearly" parameterType="java.util.List">
insert into screen_index_data_yearly
(
ID,
CUSTOMER_ID,
YEAR_ID,
ORG_TYPE,
ORG_ID,
PARENT_ID,
ORG_NAME,
INDEX_TOTAL,
PARTY_DEV_ABLITY,
SERVICE_ABLITY,
GOVERN_ABLITY,
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),
#{item.customerId},
#{item.yearId},
#{item.orgType},
#{item.orgId},
#{item.parentId},
#{item.orgName},
#{item.indexTotal},
#{item.partyDevAblity},
#{item.serviceAblity},
#{item.governAblity},
0,
0,
'APP_USER',
now(),
'APP_USER',
now()
)
</foreach>
</insert>
</mapper>