|
@@ -7,8 +7,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.imed.costaccount.common.exception.CostException;
|
|
import com.imed.costaccount.common.exception.CostException;
|
|
import com.imed.costaccount.mapper.ReportFormMapper;
|
|
import com.imed.costaccount.mapper.ReportFormMapper;
|
|
import com.imed.costaccount.mapper.ReportRelationMapper;
|
|
import com.imed.costaccount.mapper.ReportRelationMapper;
|
|
-import com.imed.costaccount.model.Accounting;
|
|
|
|
-import com.imed.costaccount.model.CostShareParam;
|
|
|
|
import com.imed.costaccount.model.ReportForm;
|
|
import com.imed.costaccount.model.ReportForm;
|
|
import com.imed.costaccount.model.ReportRelation;
|
|
import com.imed.costaccount.model.ReportRelation;
|
|
import com.imed.costaccount.model.dto.ReportRelationDTO;
|
|
import com.imed.costaccount.model.dto.ReportRelationDTO;
|
|
@@ -31,13 +29,9 @@ import java.util.stream.Collectors;
|
|
@Service("reportRelationService")
|
|
@Service("reportRelationService")
|
|
public class ReportRelationServiceImpl extends ServiceImpl<ReportRelationMapper, ReportRelation> implements ReportRelationService {
|
|
public class ReportRelationServiceImpl extends ServiceImpl<ReportRelationMapper, ReportRelation> implements ReportRelationService {
|
|
|
|
|
|
- private final AccountingService accountingService;
|
|
|
|
- private final CostShareParamService shareParamService;
|
|
|
|
private final ReportFormMapper reportFormMapper;
|
|
private final ReportFormMapper reportFormMapper;
|
|
|
|
|
|
- public ReportRelationServiceImpl(AccountingService accountingService, CostShareParamService shareParamService, ReportFormMapper reportFormMapper) {
|
|
|
|
- this.accountingService = accountingService;
|
|
|
|
- this.shareParamService = shareParamService;
|
|
|
|
|
|
+ public ReportRelationServiceImpl(ReportFormMapper reportFormMapper) {
|
|
this.reportFormMapper = reportFormMapper;
|
|
this.reportFormMapper = reportFormMapper;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -54,14 +48,14 @@ public class ReportRelationServiceImpl extends ServiceImpl<ReportRelationMapper,
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 报表项目关联的分摊参数对象
|
|
|
|
|
|
+ * 报表项目关联的分摊层级对象
|
|
*
|
|
*
|
|
* @param reportId 报表项目id
|
|
* @param reportId 报表项目id
|
|
* @param hospId 医院id
|
|
* @param hospId 医院id
|
|
* @return {@link RelationVO}
|
|
* @return {@link RelationVO}
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public List<RelationVO> getShareParam(Long reportId, Long hospId) {
|
|
|
|
|
|
+ public List<RelationVO> getShareLevel(Long reportId, Long hospId) {
|
|
return baseMapper.getShareParam(reportId, hospId);
|
|
return baseMapper.getShareParam(reportId, hospId);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -99,7 +93,7 @@ public class ReportRelationServiceImpl extends ServiceImpl<ReportRelationMapper,
|
|
// }
|
|
// }
|
|
|
|
|
|
} else if (relation == 2) {
|
|
} else if (relation == 2) {
|
|
- list = this.getShareParam(reportId, hospId);
|
|
|
|
|
|
+ list = this.getShareLevel(reportId, hospId);
|
|
// List<CostShareParam> accounts = shareParamService.list(new LambdaQueryWrapper<CostShareParam>().select(CostShareParam::getShareParamCode, CostShareParam::getShareParamName).eq(CostShareParam::getHospId, hospId));
|
|
// List<CostShareParam> accounts = shareParamService.list(new LambdaQueryWrapper<CostShareParam>().select(CostShareParam::getShareParamCode, CostShareParam::getShareParamName).eq(CostShareParam::getHospId, hospId));
|
|
// if (accounts.isEmpty()) {
|
|
// if (accounts.isEmpty()) {
|
|
// return list;
|
|
// return list;
|