| | |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_grid.dao.*; |
| | | import com.panzhihua.service_grid.model.dos.*; |
| | | import com.panzhihua.service_grid.service.EventGridDataService; |
| | | import com.panzhihua.service_grid.service.EventResourceService; |
| | | import com.panzhihua.service_grid.service.EventService; |
| | | import com.panzhihua.service_grid.service.EventTransferRecordService; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author cedoo |
| | |
| | | private EventGridDataMapper eventGridDataMapper; |
| | | @Resource |
| | | private EventGridMemberRelationMapper eventGridMemberRelationMapper; |
| | | @Resource |
| | | private EventGridDataService eventGridDataService; |
| | | |
| | | /** |
| | | * 分页查找事件 |
| | |
| | | } |
| | | eventDetailsVO.setTrans(eventTransferRecordVOS); |
| | | |
| | | //查询事件发布人头像 |
| | | String imageUrl = eventMapper.getGridMemberImageUrl(eventDO.getGridMemberId()); |
| | | if (StringUtils.isNotEmpty(imageUrl)) { |
| | | eventDetailsVO.setGridMemberImageUrl(imageUrl); |
| | | //查询网格员头像,姓名 |
| | | Map<String,Object> userBaseInfoMap = eventMapper.getUserBaseInfo(eventDO.getGridMemberId()); |
| | | if (!CollectionUtils.isEmpty(userBaseInfoMap)) { |
| | | eventDetailsVO.setCreator(userBaseInfoMap.get("name") == null ? "" : userBaseInfoMap.get("name").toString()); |
| | | eventDetailsVO.setGridMemberImageUrl(userBaseInfoMap.get("image_url") == null ? "" : userBaseInfoMap.get("image_url").toString()); |
| | | } |
| | | |
| | | return R.ok(eventDetailsVO); |