| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.reserve.ComActReserveSubListVO; |
| | | import com.panzhihua.service_community.dao.ComActReserveSubMapper; |
| | | import com.panzhihua.service_community.model.dos.ComActReserveSubDO; |
| | | import com.panzhihua.service_community.service.ComActReserveSubService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @auther lyq |
| | |
| | | @Service |
| | | public class ComActReserveSubServiceImpl extends ServiceImpl<ComActReserveSubMapper, ComActReserveSubDO> implements ComActReserveSubService { |
| | | |
| | | /** |
| | | * 查询预约登记题目列表 |
| | | * @param reserveId 预约登记id |
| | | * @return 约登记题目列表 |
| | | */ |
| | | @Override |
| | | public R subjectListAdmin(Long reserveId){ |
| | | List<ComActReserveSubListVO> resultList = new ArrayList<>(100); |
| | | resultList.add(new ComActReserveSubListVO("nub","序号")); |
| | | resultList.add(new ComActReserveSubListVO("time","登记时间")); |
| | | resultList.add(new ComActReserveSubListVO("nickName","用户昵称")); |
| | | List<ComActReserveSubListVO> subList = this.baseMapper.getReserveSubjectList(reserveId); |
| | | if(subList != null && !subList.isEmpty()){ |
| | | subList.forEach(list -> { |
| | | if(!list.getType().equals(5)){ |
| | | resultList.add(list); |
| | | } |
| | | }); |
| | | // resultList.addAll(list); |
| | | } |
| | | resultList.add(new ComActReserveSubListVO("id","登记流水")); |
| | | return R.ok(resultList); |
| | | } |
| | | |
| | | } |