From 69830f1a3b084ad6800c8013268624a11d7fa5f3 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Thu, 11 Jan 2024 09:56:48 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/cms' into anentang --- src/main/resources/mapper/CmsTemplateMapper.xml | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/CmsTemplateMapper.xml b/src/main/resources/mapper/CmsTemplateMapper.xml index 23e70df..a4af9d7 100644 --- a/src/main/resources/mapper/CmsTemplateMapper.xml +++ b/src/main/resources/mapper/CmsTemplateMapper.xml @@ -19,4 +19,20 @@ and company_id=#{companyId} </if> </delete> + + <select id="selectByIdAndCompanyId" resultType="com.xcong.farmer.cms.modules.system.entity.CmsTemplateEntity"> + select * from cms_template + where id = #{id} + <if test="companyId != null and companyId != 0"> + and company_id = #{companyId} + </if> + </select> + + <select id="selectByPathAndCompanyId" resultType="com.xcong.farmer.cms.modules.system.entity.CmsTemplateEntity"> + select * from cms_template + where path = #{path} + <if test="companyId != null and companyId != 0"> + and company_id = #{companyId} + </if> + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1