| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.model.ResultBody; |
| | |
| | | |
| | | @Override |
| | | public List<DataNeedExcel> findListExportByParam(Map<String, Object> params) { |
| | | List<DataNeed> dataNeeds = baseMapper.selectByMap(params); |
| | | QueryWrapper queryWrapper=new QueryWrapper(); |
| | | String doctor_name = MapUtils.getString(params, "doctor_name"); |
| | | if(doctor_name!=null){ |
| | | queryWrapper.like("doctor_name","%"+doctor_name+"%"); |
| | | } |
| | | String need_begintime = MapUtils.getString(params, "need_begintime"); |
| | | if(need_begintime!=null){ |
| | | queryWrapper.gt("need_begintime",need_begintime); |
| | | } |
| | | String need_endtime = MapUtils.getString(params, "need_endtime"); |
| | | if(need_endtime!=null){ |
| | | queryWrapper.gt("need_endtime",need_endtime); |
| | | } |
| | | queryWrapper.eq("is_del",0); |
| | | List<DataNeed> dataNeeds = baseMapper.selectList(queryWrapper); |
| | | List<DataNeedExcel> voList=new ArrayList<>(); |
| | | dataNeeds.forEach(e ->{ |
| | | DataNeedExcel vo=new DataNeedExcel(); |