Przeglądaj źródła

非公出协单开发

anderx 2 dni temu
rodzic
commit
6a3df37a95

+ 2 - 2
src/main/java/com/goafanti/common/mapper/UserMidMapper.xml

@@ -1191,13 +1191,13 @@
         left join public_release_details b on
         a.id = b.prid
         where status = 2
-        and uid = #{uid}
+        and b.uid = #{uid}
         group by b.uid) y on
         x.uid = y.uid
         set
         x.public_count = y.counts, x.assist_count = y.assistCount,
         x.public_assist_count = publicCount, x.non_public_count = y.nonPublicCount
-        where uid = #{uid}
+        where x.uid = #{uid}
     </insert>
 </mapper>
 

+ 1 - 1
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -1060,7 +1060,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 								}
 							}
 							if (str.length()>1)e.setAdminExamine(str.substring(0,str.length()-1)+" 未审核");
-						}else if (e.getType()==0&&e.getAssistProcess()==2){
+						}else if ((e.getType()==0||e.getType()>4)&&e.getAssistProcess()==2){
 							//获取技术协单
 							List<PublicRelease> publicReleases = publicReleaseMapper.selectByMainId(e.getId(), null, null);
 							StringBuffer str =new StringBuffer();