|
@@ -65,6 +65,15 @@ public class ZsyzQktjServiceImpl implements IZsyzQktjService {
|
|
|
ZsyzQktj zsyzQktj = zsyzQktjMapper.selectZsyzQktjById(id);
|
|
|
if(zsyzQktj.getZsyzFjList().size()<=0){
|
|
|
zsyzQktj.setZsyzFjList(new ArrayList<>());
|
|
|
+ }else{
|
|
|
+ List<ZsyzFj> zsyzFjList = new ArrayList<>();
|
|
|
+ //只拿type为6的附件
|
|
|
+ for (ZsyzFj zsyzFj : zsyzQktj.getZsyzFjList()) {
|
|
|
+ if(zsyzFj.getType().equals("6")){
|
|
|
+ zsyzFjList.add(zsyzFj);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ zsyzQktj.setZsyzFjList(zsyzFjList);
|
|
|
}
|
|
|
if(zsyzQktj.getZsyzFjList().size()==1 && StringUtils.isEmpty(zsyzQktj.getZsyzFjList().get(0).getPath())){
|
|
|
zsyzQktj.setZsyzFjList(new ArrayList<>());
|