Explorar o código

解决时间查询bug

dzx hai 1 ano
pai
achega
5d3054358f
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/main/resources/mapper/ledger/WfSubscriptionMapper.xml

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

@@ -9,10 +9,10 @@
         left join xjr_user t3 on t1.user_id = t3.id
         where 1 = 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 t2.shen_qing_ri_qi4752 between #{dto.startDate} and #{dto.endDate}
+            and t1.shen_qing_ri_qi4752 between #{dto.startDate} and #{dto.endDate}
         </if>
         <if test="dto.userName != null and dto.userName != ''">
             and t3.name like concat('%', #{dto.userName}, '%')
@@ -26,10 +26,10 @@
         left join xjr_user t3 on t1.user_id = t3.id
         where 1 = 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 t2.shen_qing_ri_qi4752 between #{dto.startDate} and #{dto.endDate}
+            and t1.shen_qing_ri_qi4752 between #{dto.startDate} and #{dto.endDate}
         </if>
         <if test="dto.userName != null and dto.userName != ''">
             and t3.name like concat('%', #{dto.userName}, '%')