浏览代码

删除标志修改

wangli 4 年之前
父节点
当前提交
d747cace66
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      user_center/src/main/resources/mapper/TenantMapper.xml

+ 5 - 5
user_center/src/main/resources/mapper/TenantMapper.xml

@@ -30,7 +30,7 @@
         <include refid="Base_Column_List"/>
         from uims_tenant t
         <include refid="tenantJoins"/>
-        where t.ID = #{id} and t.state = 1
+        where t.ID = #{id} and t.status = 1
     </select>
 
     <!-- 查询全部 -->
@@ -39,7 +39,7 @@
         <include refid="Base_Column_List"/>
         from uims_tenant t
         <include refid="tenantJoins"/>
-        where t.state = 1
+        where t.status = 1
     </select>
 
     <!--通过实体作为筛选条件查询-->
@@ -49,7 +49,7 @@
         from uims_tenant t
         <include refid="tenantJoins"/>
         <where>
-            t.state = 1
+            t.status = 1
             <if test="tenantName != null and tenantName != ''">
                 and TENANT_NAME like concat('%',#{tenantName},'%')
             </if>
@@ -120,7 +120,7 @@
     <!--通过主键删除-->
     <delete id="deleteById">
         /*delete from uims_tenant where ID = #{id}*/
-        update  uims_tenant set state = 0 where ID = #{id}
+        update  uims_tenant set status = 0 where ID = #{id}
     </delete>
 
     <!-- 总数 -->
@@ -141,7 +141,7 @@
         from uims_tenant t
         <include refid="tenantJoins"/>
         <where>
-            t.state = 1
+            t.status = 1
             <if test="tenantDto.tenantName != null and tenantDto.tenantName != ''">
                 and t.TENANT_NAME like concat('%',#{tenantDto.tenantName},'%')
             </if>