소스 검색

公出统计sql优化

anderx 4 주 전
부모
커밋
0be0f2b926
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

+ 1 - 1
src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

@@ -944,7 +944,7 @@
         if(a.status=2 and a.type < 5,1,0)tg,
         if(a.status=2 and (a.type=5 or a.type=6),1,0)xds,
         if(a.status=2,a.duration,0)duration
-        from public_release a left join admin c on a.aid =c.id
+        from public_release a
         inner join (select prid ,sum(if(clock_in=1,1,0))dk from public_release_details where 1=1
         <if test="clockStart != null and clockEnd != null">
             and clock_in_time  between #{clockStart} and #{clockEnd}