| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.PatArchivetagMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatArchivetag" id="PatArchivetagResult"> |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.PatArchivetag" id="PatArchivetagResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="tagcategoryid" column="tagcategoryid"/> |
| | | <result property="tagid" column="tagid"/> |
| | |
| | | from pat_archivetag |
| | | </sql> |
| | | |
| | | <select id="selectPatArchivetagAndBaseTagList" parameterType="com.smartor.domain.PatArchivetag" |
| | | <select id="selectPatArchivetagAndBaseTagList" parameterType="com.ruoyi.common.core.domain.entity.PatArchivetag" |
| | | resultMap="PatArchivetagResult"> |
| | | select a.id, |
| | | a.tagcategoryid, |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatArchivetag" parameterType="com.smartor.domain.PatArchivetag" useGeneratedKeys="true" |
| | | <insert id="insertPatArchivetag" parameterType="com.ruoyi.common.core.domain.entity.PatArchivetag" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into pat_archivetag |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatArchivetag" parameterType="com.smartor.domain.PatArchivetag"> |
| | | <update id="updatePatArchivetag" parameterType="com.ruoyi.common.core.domain.entity.PatArchivetag"> |
| | | update pat_archivetag |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="tagcategoryid != null">tagcategoryid = #{tagcategoryid},</if> |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deletePatArchivetagById" parameterType="com.smartor.domain.PatArchivetag"> |
| | | <delete id="deletePatArchivetagById" parameterType="com.ruoyi.common.core.domain.entity.PatArchivetag"> |
| | | update pat_archivetag |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |