Sfoglia il codice sorgente

领取客户判定修改

anderx 1 anno fa
parent
commit
18059da359

+ 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>