From 5b3ee26fed3c92253bef4e26a65e29a5dc7ba04d Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Wed, 20 Mar 2024 10:57:25 +0800 Subject: [PATCH] 首页菜单的首页二字改成英文的Main --- src/main/resources/mapper/CmsTemplateMapper.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/CmsTemplateMapper.xml b/src/main/resources/mapper/CmsTemplateMapper.xml index 57c06f3..a4af9d7 100644 --- a/src/main/resources/mapper/CmsTemplateMapper.xml +++ b/src/main/resources/mapper/CmsTemplateMapper.xml @@ -27,4 +27,12 @@ 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