|
@@ -28,6 +28,7 @@ import thyyxxk.webserver.service.zhuyuanyisheng.emr.EmrServer;
|
|
|
import thyyxxk.webserver.utils.*;
|
|
|
|
|
|
import java.lang.reflect.Field;
|
|
|
+import java.lang.reflect.Method;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
|
@@ -139,14 +140,14 @@ public class CaseFrontSheetMainService {
|
|
|
* @return 返回数据
|
|
|
*/
|
|
|
public ResultVo<GetBasOverviewRet> getOutPatientForBas(GetOutSheet param) {
|
|
|
- GetBasOverviewRet ret = new GetBasOverviewRet();
|
|
|
+ GetBasOverviewRet response = new GetBasOverviewRet();
|
|
|
if (StringUtil.notBlank(param.getWard())) {
|
|
|
int cd = dao.getCDBlfxCount(param.getWard());
|
|
|
int all = dao.getAllDisPatientCount(param.getWard());
|
|
|
if (cd == 0 || all == 0) {
|
|
|
- ret.setCdPercentage("0.00%");
|
|
|
+ response.setCdPercentage("0.00%");
|
|
|
} else {
|
|
|
- ret.setCdPercentage(DecimalUtil.getPercent(cd, all));
|
|
|
+ response.setCdPercentage(DecimalUtil.getPercent(cd, all));
|
|
|
}
|
|
|
}
|
|
|
if (StringUtil.notBlank(param.getStart())) {
|
|
@@ -174,8 +175,8 @@ public class CaseFrontSheetMainService {
|
|
|
if (param.getLateFlag() != 3) {
|
|
|
list.removeIf(item -> !item.getLateFlag().equals(param.getLateFlag()));
|
|
|
}
|
|
|
- ret.setList(list);
|
|
|
- return ResultVoUtil.success(ret);
|
|
|
+ response.setList(list);
|
|
|
+ return ResultVoUtil.success(response);
|
|
|
}
|
|
|
if (StringUtil.notBlank(param.getWard())) {
|
|
|
if (param.getFileStatus() == 0) {
|
|
@@ -186,8 +187,8 @@ public class CaseFrontSheetMainService {
|
|
|
if (param.getLateFlag() != 3) {
|
|
|
list.removeIf(item -> !item.getLateFlag().equals(param.getLateFlag()));
|
|
|
}
|
|
|
- ret.setList(list);
|
|
|
- return ResultVoUtil.success(ret);
|
|
|
+ response.setList(list);
|
|
|
+ return ResultVoUtil.success(response);
|
|
|
}
|
|
|
if (param.getFileStatus() == 0) {
|
|
|
list = basDao.selectPatientsForBasByFileStatus(param);
|
|
@@ -197,8 +198,8 @@ public class CaseFrontSheetMainService {
|
|
|
if (param.getLateFlag() != 3) {
|
|
|
list.removeIf(item -> !item.getLateFlag().equals(param.getLateFlag()));
|
|
|
}
|
|
|
- ret.setList(list);
|
|
|
- return ResultVoUtil.success(ret);
|
|
|
+ response.setList(list);
|
|
|
+ return ResultVoUtil.success(response);
|
|
|
}
|
|
|
|
|
|
public ResultVo<CaseFrontsheetMain> getPatientInfo(SheetOverview overview) {
|
|
@@ -307,6 +308,17 @@ public class CaseFrontSheetMainService {
|
|
|
sheet.setStandardAddress(standardAddressMember.makeStandardAddress());
|
|
|
sheet.setLivePlaceCombo(standardAddressMember.makeAddressCombo() + sheet.getLivePlace());
|
|
|
}
|
|
|
+ List<CodeName> patCharges = dao.selectPatCharges(bah, times);
|
|
|
+ for (CodeName item : patCharges) {
|
|
|
+ String code = String.valueOf(item.getCode().charAt(0)).toUpperCase() +
|
|
|
+ item.getCode().substring(1);
|
|
|
+ try {
|
|
|
+ Method m = sheet.getClass().getMethod("set" + code, String.class);
|
|
|
+ m.invoke(sheet, item.getName());
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
autoFillPart(sheet);
|
|
|
return ResultVoUtil.success(sheet);
|
|
|
}
|