package com.smartor.service.impl; import com.smartor.domain.PatMedOuthosp; import com.smartor.domain.PatMedOuthospQueryReq; import com.smartor.domain.PerSonWorkbenchDto; import com.smartor.mapper.PatArchiveOutMapper; import com.smartor.mapper.PatMedOuthospMapper; import com.smartor.service.PersonWorkbenchService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Arrays; import java.util.List; /** * 疾病Service业务层处理 * * @author ruoyi * @date 2023-12-21 */ @Service public class PersonWorkbenchServiceImpl implements PersonWorkbenchService { @Autowired private PatArchiveOutMapper patArchiveOutMapper; @Autowired private PatMedOuthospMapper patMedOuthospMapper; @Override public List getPatCount(String deptcode, String drCode) { List deptIds = Arrays.asList(deptcode.split(",")); String[] drCodes = drCode.split(","); List perSonWorkbenchDtos = patArchiveOutMapper.selectPatArchiveCount(deptIds, drCodes); return perSonWorkbenchDtos; } }