Antiloveg 8 years ago
parent
commit
9ee96abf16

+ 1 - 1
src/main/java/com/goafanti/cognizance/service/impl/OrgCognizanceServiceImpl.java

@@ -348,7 +348,7 @@ public class OrgCognizanceServiceImpl extends BaseMybatisDao<OrgCognizanceMapper
 		BusinessCountBo bcb = new BusinessCountBo();
 		bcb.setUid(uid);
 		bcb.setCopyrightDone(copyrightInfoMapper.countCopyrightDone(uid));
-		bcb.setCopyrightUndone(copyrightInfoMapper.countCopyrightDone(uid));
+		bcb.setCopyrightUndone(copyrightInfoMapper.countCopyrightUnDone(uid));
 		bcb.setPatentDone(patentInfoMapper.countPatentDone(uid));
 		bcb.setPatentUndone(patentInfoMapper.countPatentUndone(uid));
 		bcb.setTechProjectDone(techProjectMapper.countTechProjectDone(uid));

+ 2 - 0
src/main/java/com/goafanti/common/dao/CopyrightInfoMapper.java

@@ -40,4 +40,6 @@ public interface CopyrightInfoMapper {
 	int batchDeleteByContractId(List<String> id);
 
 	Integer findCopyrightInfoNumByUid(String uid);
+
+	Integer countCopyrightUnDone(String uid);
 }

+ 6 - 0
src/main/java/com/goafanti/common/mapper/CopyrightInfoMapper.xml

@@ -497,4 +497,10 @@
   		delete_sign = 0
   	and uid = #{uid,jdbcType=VARCHAR}
   </select>
+  
+   <select id="countCopyrightUnDone" parameterType="java.lang.String" resultType="java.lang.Integer">
+   select count(1) from copyright_info 
+   where uid = #{uid,jdbcType=VARCHAR}
+   and delete_sign = 0 and status not in (8,9) 
+  </select>
 </mapper>