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.
49 lines
1.4 KiB
49 lines
1.4 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.ResiUserBadgeDao">
|
|
|
|
<!-- 初始化党员徽章插入 -->
|
|
<insert id="insertResiUserBadge">
|
|
INSERT INTO resi_user_badge
|
|
(
|
|
ID,
|
|
CUSTOMER_ID,
|
|
GRID_ID,
|
|
USER_ID,
|
|
BADGE_ID,
|
|
IS_OPENED,
|
|
CERTIFICATION_AUTID_STATUS,
|
|
DEL_FLAG,
|
|
REVISION,
|
|
CREATED_TIME,
|
|
CREATED_BY,
|
|
UPDATED_TIME,
|
|
UPDATED_BY
|
|
)
|
|
VALUES
|
|
<foreach collection="badges" item="b" separator=",">
|
|
(
|
|
REPLACE(UUID(),'-',''),
|
|
#{b.customerId},
|
|
#{b.gridId},
|
|
#{b.userId},
|
|
#{b.badgeId},
|
|
#{b.isOpened},
|
|
#{b.certificationAutidStatus},
|
|
#{b.delFlag},
|
|
#{b.revision},
|
|
NOW(),
|
|
#{b.createdBy},
|
|
NOW(),
|
|
#{b.updatedBy}
|
|
)
|
|
</foreach>
|
|
</insert>
|
|
|
|
<select id="selectUserIds" resultType="com.epmet.dto.result.UserIdAndBadgeIdResultDTO">
|
|
SELECT USER_ID,BADGE_ID FROM resi_user_badge WHERE DEL_FLAG = 0
|
|
</select>
|
|
|
|
|
|
</mapper>
|