|
|
@@ -33,6 +33,7 @@ import thyyxxk.webserver.dao.his.inpatient.DismissDao;
|
|
|
import thyyxxk.webserver.dao.his.medicalinsurance.SiLogDao;
|
|
|
import thyyxxk.webserver.dao.his.medicalinsurance.SiQueryDao;
|
|
|
import thyyxxk.webserver.dao.his.medicalinsurance.UpIdCollectionDao;
|
|
|
+import thyyxxk.webserver.entity.HeadInfo;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
import thyyxxk.webserver.entity.casefrontsheet.CaseFrontsheetMain;
|
|
|
import thyyxxk.webserver.entity.casefrontsheet.SheetOverview;
|
|
|
@@ -969,7 +970,7 @@ public class SetlListUpldService {
|
|
|
**/
|
|
|
private boolean isDrghiPaymtd(List<Integer> hiPaymtds){
|
|
|
if(ListUtil.notBlank(hiPaymtds)){
|
|
|
- return hiPaymtds.stream().anyMatch(obj -> "4".equals(obj));
|
|
|
+ return hiPaymtds.stream().anyMatch(obj -> obj==4);
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
@@ -1202,6 +1203,9 @@ public class SetlListUpldService {
|
|
|
if (param.getTimes() != null) {
|
|
|
qw.eq("a.times", param.getTimes());
|
|
|
}
|
|
|
+ if (StringUtil.notBlank(param.getName())) {
|
|
|
+ qw.likeRight("a.psn_name", param.getName());
|
|
|
+ }
|
|
|
if (ListUtil.notBlank(param.getInsutype())) {
|
|
|
qw.in("insutype", param.getInsutype());
|
|
|
}
|
|
|
@@ -1914,25 +1918,19 @@ public class SetlListUpldService {
|
|
|
}
|
|
|
|
|
|
public void exportAutoUploadInfo(HttpServletResponse response,AutoUploadBill query) {
|
|
|
- List<AutoUploadBill> list = autoUploadBillService.list(autoUploadBillService.getAutoUploadBillQueryWrapper(query));
|
|
|
+ query.setCurrentPage(1);
|
|
|
+ query.setPageSize(100000);
|
|
|
+ IPage<AutoUploadBill> autoUploadBillIPage = autoUploadBillService.queryPage(query);
|
|
|
+ List<AutoUploadBill> list = autoUploadBillIPage.getRecords();
|
|
|
if (ListUtil.isBlank(list)) {
|
|
|
throw new BizException(ExceptionEnum.INTERNAL_SERVER_ERROR, "没有查到数据");
|
|
|
}
|
|
|
- String[] title = {"住院号", "住院次数", "上传类型","上传人","上传结果标识","上传时间", "日志", "患者结算时间"};
|
|
|
- String[][] content = new String[list.size()][];
|
|
|
- for (int i = 0, len = list.size(); i < len; i++) {
|
|
|
- content[i] = new String[title.length];
|
|
|
- AutoUploadBill pojo = list.get(i);
|
|
|
- content[i][0] = pojo.getPatNo();
|
|
|
- content[i][1] = pojo.getTimes().toString();
|
|
|
- content[i][2] = pojo.getTypeFlag()==AutoUploadBill.TypeFlag.AUTO_UPLOAD.getCode() ? AutoUploadBill.TypeFlag.AUTO_UPLOAD.getName():AutoUploadBill.TypeFlag.SD_UPLOAD.getName();
|
|
|
- content[i][3] = StringUtil.isBlank(pojo.getUploadName())?"":pojo.getUploadName();
|
|
|
- content[i][4] = pojo.getFlag()==AutoUploadBill.FLAG.UPLOAD_SUCCESS.getCode() ? AutoUploadBill.FLAG.UPLOAD_SUCCESS.getName():AutoUploadBill.FLAG.UPLOAD_FAIL.getName();
|
|
|
- content[i][5] = DateUtil.formatDatetime(pojo.getCreatedDate());
|
|
|
- content[i][6] = pojo.getLogText();
|
|
|
- content[i][7] = DateUtil.formatDatetime(pojo.getSetlTime(), DateUtil.DEFAULT_PATTERN);
|
|
|
- }
|
|
|
- ExcelUtil.exportExcel(response, title, content);
|
|
|
+ List<Map<String, Object>> result = ExcelUtil.beanToMap(list,AutoUploadBill.class);
|
|
|
+ String[] display = {"住院号", "住院次数","账页号","出院科室", "上传类型","上传人","上传结果标识","上传时间", "患者结算时间", "日志"};
|
|
|
+ String[] names = {"patNo","times","ledgerSn","outDeptName","typeFlagName","uploadName","flagName","createdDate","setlTime","logText"};
|
|
|
+ List<HeadInfo> headList = ExcelUtil.createHeadInfos(display, names);
|
|
|
+ ExcelUtil.exportExcelReport(response,result,headList,"上传日志");
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|