Forráskód Böngészése

物品申购,解决部门查询不生效的问题

dzx 1 éve
szülő
commit
69f512bccc

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

@@ -9,7 +9,7 @@
         left join xjr_user t3 on t1.user_id = t3.id
         where t1.status = 1
         <if test="dto.orgId != null">
-            and t1.id = #{dto.orgId}
+            and t2.id = #{dto.orgId}
         </if>
         <if test="dto.startDate != null and dto.startDate != '' and dto.endDate != null and dto.endDate != ''">
             and t1.shen_qing_ri_qi4752 between #{dto.startDate} and #{dto.endDate}
@@ -26,7 +26,7 @@
         left join xjr_user t3 on t1.user_id = t3.id
         where t1.status = 1
         <if test="dto.orgId != null">
-            and t1.id = #{dto.orgId}
+            and t2.id = #{dto.orgId}
         </if>
         <if test="dto.startDate != null and dto.startDate != '' and dto.endDate != null and dto.endDate != ''">
             and t1.shen_qing_ri_qi4752 between #{dto.startDate} and #{dto.endDate}