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.
54 lines
1.5 KiB
54 lines
1.5 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.DimCustomerPartymemberDao">
|
||
|
|
||
|
<!-- 批量插入党员信息 -->
|
||
|
<insert id="insertPartyMemberInfo">
|
||
|
INSERT INTO dim_customer_partymember (
|
||
|
ID,
|
||
|
CUSTOMER_ID,
|
||
|
GRID_ID,
|
||
|
AGENCY_ID,
|
||
|
PARENT_ID,
|
||
|
DATE_ID,
|
||
|
WEEK_ID,
|
||
|
MONTH_ID,
|
||
|
QUARTER_ID,
|
||
|
YEAR_ID,
|
||
|
USER_ID,
|
||
|
ID_CARD,
|
||
|
BIRTHDAY,
|
||
|
DEL_FLAG,
|
||
|
REVISION,
|
||
|
CREATED_BY,
|
||
|
CREATED_TIME,
|
||
|
UPDATED_BY,
|
||
|
UPDATED_TIME
|
||
|
)
|
||
|
VALUES
|
||
|
<foreach collection="partyMemberInfos" item="item" separator=",">
|
||
|
(
|
||
|
REPLACE ( UUID(), '-', '' ),
|
||
|
#{item.customerId},
|
||
|
#{item.gridId},
|
||
|
#{item.agencyId},
|
||
|
#{item.parentId},
|
||
|
#{item.dateId},
|
||
|
#{item.weekId},
|
||
|
#{item.monthId},
|
||
|
#{item.quarterId},
|
||
|
#{item.yearId},
|
||
|
#{item.userId},
|
||
|
#{item.idCard},
|
||
|
#{item.birthday},
|
||
|
#{item.delFlag},
|
||
|
#{item.revision},
|
||
|
#{item.createdBy},
|
||
|
NOW(),
|
||
|
#{item.updatedBy},
|
||
|
NOW()
|
||
|
)
|
||
|
</foreach>
|
||
|
</insert>
|
||
|
</mapper>
|