| | |
| | | from pat_archivetag |
| | | </sql> |
| | | |
| | | <select id="selectPatArchivetagList" parameterType="com.smartor.domain.PatArchivetag" |
| | | resultMap="PatArchivetagResult"> |
| | | <include refid="selectPatArchivetagVo"/> |
| | | <where> |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectPatArchivetagAndBaseTagList" parameterType="com.smartor.domain.PatArchivetag" |
| | | resultMap="PatArchivetagResult"> |
| | | select a.id, |
| | |
| | | <where> |
| | | a.tagid=b.tagid |
| | | <if test="tagcategoryid != null ">and a.tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagid != null ">and b.tagid = #{tagid}</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> |