|
@@ -13,9 +13,11 @@ import com.platform.dao.dto.fill.FillGatherDTO;
|
|
|
import com.platform.dao.entity.fill.FillGather;
|
|
|
import com.platform.dao.entity.fill.FillGatherInfo;
|
|
|
import com.platform.dao.entity.fill.FillGatherTask;
|
|
|
+import com.platform.dao.entity.fill.FillInfo;
|
|
|
import com.platform.dao.mapper.fill.FillGatherInfoMapper;
|
|
|
import com.platform.dao.mapper.fill.FillGatherMapper;
|
|
|
import com.platform.dao.mapper.fill.FillGatherTaskMapper;
|
|
|
+import com.platform.dao.mapper.fill.FillInfoMapper;
|
|
|
import com.platform.dao.vo.query.fill.FillGatherVO;
|
|
|
import com.platform.service.base.impl.BaseServiceImpl;
|
|
|
import com.platform.service.fill.FillGatherService;
|
|
@@ -40,6 +42,7 @@ public class FillGatherServiceImpl extends BaseServiceImpl<FillGatherMapper, Fil
|
|
|
|
|
|
private final FillGatherInfoMapper fillGatherInfoMapper;
|
|
|
private final FillGatherTaskMapper fillGatherTaskMapper;
|
|
|
+ private final FillInfoMapper fillInfoMapper;
|
|
|
@Override
|
|
|
public int batchDelete(List<String> ids) {
|
|
|
Weekend<FillGather> weekend = new Weekend<>(FillGather.class);
|
|
@@ -135,9 +138,12 @@ public class FillGatherServiceImpl extends BaseServiceImpl<FillGatherMapper, Fil
|
|
|
public FillGatherVO getVOById(String id) {
|
|
|
FillGather gather = mapper.selectByPrimaryKey(id);
|
|
|
FillGatherVO vo = BeanConverterUtil.copyObjectProperties(gather, FillGatherVO.class);
|
|
|
- FillGatherInfo queryInfo = new FillGatherInfo();
|
|
|
- queryInfo.setGatherId(id);
|
|
|
- vo.setInfos(fillGatherInfoMapper.select(queryInfo));
|
|
|
+ List<FillInfo> fillInfos = new ArrayList<>();
|
|
|
+ List<FillGatherInfo> infos = fillGatherInfoMapper.select(new FillGatherInfo().setGatherId(gather.getId()));
|
|
|
+ for(FillGatherInfo info : infos){
|
|
|
+ fillInfos.add(fillInfoMapper.selectByPrimaryKey(info.getInfoId()));
|
|
|
+ }
|
|
|
+ vo.setFillInfos(fillInfos);
|
|
|
return vo;
|
|
|
}
|
|
|
}
|