| | |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="tagname" column="tagname"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatArchivetagVo"> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectPatArchivetagAndBaseTagList" parameterType="com.smartor.domain.PatArchivetag" |
| | | resultMap="PatArchivetagResult"> |
| | | select a.id, |
| | | a.tagcategoryid, |
| | | a.tagid, |
| | | a.orgid, |
| | | a. del_flag, |
| | | a.update_by, |
| | | a.update_time, |
| | | a.create_by, |
| | | a.create_time, |
| | | a.isupload, |
| | | a.upload_time, |
| | | a.patid, |
| | | b.tagname |
| | | from pat_archivetag a ,base_tag b |
| | | <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="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"> |
| | | <include refid="selectPatArchivetagVo"/> |
| | | where id = #{id} |