| | |
| | | a.patid, |
| | | b.tagname |
| | | from pat_archivetag a ,base_tag b |
| | | <where> |
| | | a.tagid=b.tagid |
| | | where 1=1 |
| | | and a.tagid=b.tagid |
| | | <if test="tagcategoryid != null ">and a.tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagid != null ">and a.tagid = #{tagid}</if> |
| | | <if test="orgid != null and orgid != ''">and a.orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and a.isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and a.upload_time = #{uploadTime}</if> |
| | | <if test="patid != null ">and a.patid = #{patid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatArchivetagById" parameterType="Long" resultMap="PatArchivetagResult"> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | </trim> |
| | | <where> |
| | | where 1=1 |
| | | <if test="tagid != null">and tagid = #{tagid}</if> |
| | | <if test="patid != null">and patid = #{patid}</if> |
| | | </where> |
| | | </delete> |
| | | |
| | | <delete id="deletePatArchivetagByIds" parameterType="String"> |