소스 검색

领取客户判定修改

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

+ 4 - 4
src/main/java/com/goafanti/common/mapper/RestrictProjectMapper.xml

@@ -208,10 +208,10 @@
         </if>
     </select>
     <select id="selectPrivateByAid" resultType="java.lang.Integer">
-            select count(*)
-            from restrict_project
-            where type=1
-              and aid = #{aid,jdbcType=VARCHAR}
+        select sum(if(a.aid=b.aid ,0,1))counts
+        from restrict_project a left join user b on a.uid =b.id
+        where a.type=1
+          and a.aid = #{aid,jdbcType=VARCHAR}
     </select>