|
|
@ -5,8 +5,10 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.kms.yg.sz.domain.BsSgcSzGcda; |
|
|
|
import com.kms.yg.sz.mapper.BsSgcSzGcdaMapper; |
|
|
|
import com.kms.yxgh.sz.domain.SzChecking; |
|
|
|
import com.kms.yxgh.sz.domain.SzProjectCheckingRel; |
|
|
|
import com.kms.yxgh.sz.dto.*; |
|
|
|
import com.kms.yxgh.sz.mapper.SzCheckingMapper; |
|
|
|
import com.kms.yxgh.sz.mapper.SzProjectCheckingRelMapper; |
|
|
|
import com.shuili.common.core.domain.SearchParam; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
@ -31,7 +33,7 @@ public class SzProjectService { |
|
|
|
|
|
|
|
private final BsSgcSzGcdaMapper bsSgcSzGcdaMapper; |
|
|
|
private final SzProjectCheckingRelMapper szProjectCheckingRelMapper; |
|
|
|
|
|
|
|
private final SzCheckingMapper szCheckingMapper; |
|
|
|
|
|
|
|
public IPage<SzProjectListDto> getProjectList(SearchParam<BsSgcSzGcda> sp) { |
|
|
|
Page<SzProjectListDto> page = new Page<>(sp.getPageNum(), sp.getPageSize()); |
|
|
@ -88,6 +90,7 @@ public class SzProjectService { |
|
|
|
SzProjectCheckingRelDto.Checking checking = new SzProjectCheckingRelDto.Checking(); |
|
|
|
checking.setXcId(rel.getXcId()); |
|
|
|
checking.setType(rel.getType()); |
|
|
|
checking.setName(Optional.ofNullable(szCheckingMapper.selectById(rel.getXcId())).map(SzChecking::getName).orElse("")); |
|
|
|
return checking; |
|
|
|
}).collect(Collectors.toList())); |
|
|
|
return relDto; |
|
|
|