|
|
@@ -5,10 +5,10 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.kcim.common.constants.NumberConstant;
|
|
|
+import com.kcim.common.util.PageUtils;
|
|
|
import com.kcim.common.util.UserContext;
|
|
|
import com.kcim.dao.mapper.ImportPatientItemMapper;
|
|
|
import com.kcim.dao.model.ImportPatientItem;
|
|
|
-import com.kcim.dao.model.dto.ComputeDrugCostPageDto;
|
|
|
import com.kcim.dao.model.dto.PatientItemDepartmentGroupVo;
|
|
|
import com.kcim.dao.model.dto.PatientItemVo;
|
|
|
import com.kcim.vo.PatientInfoVo;
|
|
|
@@ -172,9 +172,15 @@ public class ImportPatientItemRepository extends ServiceImpl<ImportPatientItemMa
|
|
|
return this.list(queryWrapper);
|
|
|
}
|
|
|
|
|
|
- public List<PatientInfoVo> getPatientItemPatientInfo(Integer current, Integer pageSize,String computeDate, String filter) {
|
|
|
- Page<ComputeDrugCostPageDto> page = new Page<>(current,pageSize);
|
|
|
- return this.baseMapper.getPatientItemPatientInfo(page,computeDate, filter, UserContext.getHospId());
|
|
|
+ public PageUtils getPatientItemPatientInfo(Integer current, Integer pageSize,String computeDate, String filter) {
|
|
|
+ Page<PatientInfoVo> page = new Page<>(current,pageSize);
|
|
|
+ List<PatientInfoVo> byPage = this.baseMapper.getPatientItemPatientInfo(page,computeDate, filter, UserContext.getHospId());
|
|
|
+ if(!CollectionUtils.isEmpty(byPage)){
|
|
|
+ page.setRecords(byPage);
|
|
|
+ }
|
|
|
+ PageUtils pageUtils = new PageUtils(page);
|
|
|
+ pageUtils.setList(byPage);
|
|
|
+ return pageUtils;
|
|
|
}
|
|
|
|
|
|
public void removePatientItemByFileId(String computeDate, Long fileId) {
|