Bladeren bron

物品申购台账,只查询流程审批通过的

dzx 1 jaar geleden
bovenliggende
commit
98170312be
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      src/main/resources/mapper/ledger/WfSubscriptionMapper.xml

+ 2 - 2
src/main/resources/mapper/ledger/WfSubscriptionMapper.xml

@@ -7,7 +7,7 @@
         select t1.id,t2.name as org_name,t3.name as user_name,t1.shen_qing_ri_qi4752,t1.folder_id,t1.number,t1.total_amount from wf_subscription t1
         left join xjr_department t2 on t1.application_department = t2.id
         left join xjr_user t3 on t1.user_id = t3.id
-        where 1 = 1
+        where t1.status = 1
         <if test="dto.orgId != null">
             and t1.id = #{dto.orgId}
         </if>
@@ -24,7 +24,7 @@
         select t1.id,t2.name as org_name,t3.name as user_name,t1.shen_qing_ri_qi4752, t1.folder_id,t1.number,t1.total_amount from wf_subscription t1
         left join xjr_department t2 on t1.application_department = t2.id
         left join xjr_user t3 on t1.user_id = t3.id
-        where 1 = 1
+        where t1.status = 1
         <if test="dto.orgId != null">
             and t1.id = #{dto.orgId}
         </if>