Browse Source

fix #I3AX6E

tanghc 3 years ago
parent
commit
6f53e08521
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gen/src/main/resources/mybatis/TemplateConfigMapper.xml

+ 2 - 1
gen/src/main/resources/mybatis/TemplateConfigMapper.xml

@@ -35,6 +35,7 @@
         <include refid="baseColumns"/>
         FROM template_config t
         WHERE name = #{name} AND group_id=#{groupId}
+        AND is_deleted=0
         LIMIT 1
     </select>
 
@@ -170,7 +171,7 @@
         SELECT
         <include refid="baseColumns" />
         FROM template_config t
-        WHERE group_id = #{groupId}
+        WHERE group_id = #{groupId} and is_deleted=0
     </select>
 
     <update id="updateGroupNameByGroupId">