Browse Source

解决时间查询bug

dzx 1 year ago
parent
commit
40d00a3ea9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/resources/mapper/ledger/WfSubscriptionMapper.xml

+ 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 t2.id = #{dto.orgId}
+            and t1.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 t2.id = #{dto.orgId}
+            and t1.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}