| | |
| | | </resultMap> |
| | | |
| | | <select id="topList" resultMap="noticeResultMap"> |
| | | select * from blade_notice limit #{number} |
| | | select * from pl_org_notice limit #{number} |
| | | </select> |
| | | |
| | | <select id="selectNoticePage" resultMap="noticeVOResultMap"> |
| | |
| | | n.*, |
| | | d.dict_value AS categoryName |
| | | FROM |
| | | blade_notice n |
| | | LEFT JOIN ( SELECT * FROM blade_dict WHERE CODE = 'notice' ) d ON n.category = d.dict_key |
| | | pl_org_notice n |
| | | LEFT JOIN ( SELECT * FROM pl_sys_dict WHERE CODE = 'notice' ) d ON n.category = d.dict_key |
| | | WHERE |
| | | n.is_deleted = 0 and n.tenant_id = #{notice.tenantId} |
| | | <if test="notice.title!=null"> |