|
|
@@ -465,24 +465,27 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
|
|
|
private void pushExamines(Pagination<OutPublicReleaseList> p) {
|
|
|
List<OutPublicReleaseList> list = (List<OutPublicReleaseList>) p.getList();
|
|
|
- List<Integer> ids=new ArrayList<>();
|
|
|
- list.forEach(e ->{ ids.add(e.getId()); });
|
|
|
- List<PublicExamine> publicExamines = publicExamineMapper.selectByIds(ids);
|
|
|
- for (OutPublicReleaseList e : list) {
|
|
|
- if (!publicExamines.isEmpty()){
|
|
|
- StringBuffer str =new StringBuffer();
|
|
|
- for (PublicExamine pe : publicExamines) {
|
|
|
- if (e.getId().equals(pe.getPrid())){
|
|
|
- str=str.append(pe.getAname());
|
|
|
- if (pe.getStatus()==0)str=str.append(" 未审核,");
|
|
|
- if (pe.getStatus()==1)str=str.append(" 已审核,");
|
|
|
+ if (!list.isEmpty()){
|
|
|
+ List<Integer> ids=new ArrayList<>();
|
|
|
+ list.forEach(e ->{ ids.add(e.getId()); });
|
|
|
+ List<PublicExamine> publicExamines = publicExamineMapper.selectByIds(ids);
|
|
|
+ for (OutPublicReleaseList e : list) {
|
|
|
+ if (!publicExamines.isEmpty()){
|
|
|
+ StringBuffer str =new StringBuffer();
|
|
|
+ for (PublicExamine pe : publicExamines) {
|
|
|
+ if (e.getId().equals(pe.getPrid())){
|
|
|
+ str=str.append(pe.getAname());
|
|
|
+ if (pe.getStatus()==0)str=str.append(" 未审核,");
|
|
|
+ if (pe.getStatus()==1)str=str.append(" 已审核,");
|
|
|
+ }
|
|
|
+ if (str.length()>1) e.setAdminExamine(str.substring(0,str.length()-1));
|
|
|
}
|
|
|
- if (str.length()>1) e.setAdminExamine(str.substring(0,str.length()-1));
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|