|
@@ -93,8 +93,8 @@ public class CaseFrontSheetService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<List<PureCodeName>> getUserWards() {
|
|
|
-// List<PureCodeName> list = createdDao.getUserWards(TokenUtil.getTokenUserId());
|
|
|
- List<PureCodeName> list = createdDao.getUserWards("01387");
|
|
|
+ List<PureCodeName> list = createdDao.getUserWards(TokenUtil.getTokenUserId());
|
|
|
+// List<PureCodeName> list = createdDao.getUserWards("01387");
|
|
|
list.removeIf(Objects::isNull);
|
|
|
return ResultVoUtil.success(list);
|
|
|
}
|
|
@@ -111,13 +111,15 @@ public class CaseFrontSheetService {
|
|
|
public ResultVo<List<SheetOverview>> getOutPatient(GetOutSheetParam param) {
|
|
|
param.setEnd(param.getEnd() + " 23:59:59");
|
|
|
log.info("获取出院病人>>> {}", param.toString());
|
|
|
- param.setWard(param.getWard() + "%");
|
|
|
+ if (StringUtil.isBlank(param.getWard())) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "请选择科室!");
|
|
|
+ }
|
|
|
return ResultVoUtil.success(dao.getOutPatients(param));
|
|
|
}
|
|
|
|
|
|
public ResultVo<GetBasOverviewRet> getOutPatientForBas(GetOutSheetParam param) {
|
|
|
GetBasOverviewRet ret = new GetBasOverviewRet();
|
|
|
- if (!param.getWard().equals("")) {
|
|
|
+ if (!StringUtil.isBlank(param.getWard())) {
|
|
|
int cd = dao.getCDBlfxCount(param.getWard());
|
|
|
int all = dao.getAllDisPatientCount(param.getWard());
|
|
|
if (cd == 0 || all == 0) {
|
|
@@ -143,7 +145,7 @@ public class CaseFrontSheetService {
|
|
|
ret.setList(list);
|
|
|
return ResultVoUtil.success(ret);
|
|
|
}
|
|
|
- if (!param.getWard().equals("")) {
|
|
|
+ if (!StringUtil.isBlank(param.getWard())) {
|
|
|
if (param.getFileStatus() == 0) {
|
|
|
list = basDao.selectPatientsForBasByWard(param);
|
|
|
} else {
|