<?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="edu.whut.infrastructure.dao.ICrowdTagsDetailDao">

    <resultMap id="dataMap" type="edu.whut.infrastructure.dao.po.CrowdTagsDetail">
        <id column="id" property="id"/>
        <result column="tag_id" property="tagId"/>
        <result column="user_id" property="userId"/>
        <result column="create_time" property="createTime"/>
        <result column="update_time" property="updateTime"/>
    </resultMap>

    <insert id="addCrowdTagsUserId" parameterType="edu.whut.infrastructure.dao.po.CrowdTagsDetail">
        insert into crowd_tags_detail(tag_id, user_id, create_time, update_time)
        values (#{tagId}, #{userId}, now(), now())
    </insert>

</mapper>
