Kaynağa Gözat

feat:停用状态添加查询条件,查询框。

ly 11 ay önce
ebeveyn
işleme
530c1e1833

+ 2 - 1
src/main/resources/mybatis/business/BizWorkOrderUpdateMapper.xml

@@ -86,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
             orderupdate.id is null and t1.type = 1 and t1.deleted = 0
             <if test="tenantId != null "> AND t1.tenant_id = #{tenantId}</if>
+            <if test="isStop != null "> AND t1.is_stop = #{isStop}</if>
             <if test="companyName != null and companyName != '' "> AND t2.name like concat('%', #{companyName}, '%')</if>
         </trim>
     </select>
@@ -93,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         SELECT count(*) FROM biz_work_order t1
         left join biz_work_order_update orderupdate on orderupdate.id = t1.id and orderupdate.deleted = 0
         <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
-            orderupdate.id is null and t1.type = 1 and t1.deleted = 0
+            orderupdate.id is null and t1.type = 1 and t1.deleted = 0 and t1.is_stop = 0
             <if test="tenantId != null "> AND t1.tenant_id = #{tenantId}</if>
         </trim>
     </select>