| | |
| | | public R export(ComActAcidRecordDTO comActAcidRecordDTO) { |
| | | List<ComActAcidRecordExcelVO> comActAcidRecordExcelVOS=this.baseMapper.export(comActAcidRecordDTO); |
| | | comActAcidRecordExcelVOS.forEach(comActAcidRecordExcelVO -> { |
| | | if(StringUtils.isNotEmpty(comActAcidRecordExcelVO.getTouristCity())){ |
| | | if(StringUtils.isNotEmpty(comActAcidRecordExcelVO.getTouristCity())&&comActAcidRecordExcelVO.getTouristCity().contains("[")){ |
| | | JSONArray jsonArray = JSON.parseArray(comActAcidRecordExcelVO.getTouristCity()); |
| | | if(jsonArray.isEmpty()){ |
| | | comActAcidRecordExcelVO.setTouristCity(""); |
| | |
| | | StringBuilder touristCity= new StringBuilder(); |
| | | for(int i=0;i<jsonArray.size();i++){ |
| | | JSONObject jsonObject=jsonArray.getJSONObject(i); |
| | | touristCity.append(jsonObject.get(i)).append(","); |
| | | touristCity.append(jsonObject.getString("name")).append(";"); |
| | | } |
| | | comActAcidRecordExcelVO.setTouristCity(touristCity.toString()); |
| | | } |
| | | } |
| | | }); |
| | | return R.ok(); |
| | | return R.ok(comActAcidRecordExcelVOS); |
| | | } |
| | | |
| | | @Override |