修改费用清单上传,出院时间位数处理

master
hcy 2 years ago
parent 38403093da
commit 14040be200

@ -1072,24 +1072,23 @@ public class CommomService {
}
//病案号转为数值型
//inpatientNo =String.valueOf(Long.parseLong(inpatientNo));
String disDateStr = "";
CommomVo commomVo = null;
if (disDate.length() >= 8) {
//格式化日期
String disDateStr = disDate.substring(0, 4) + "-" + disDate.substring(4, 6) + "-" + disDate.substring(6, 8);
CommomVo commomVo = commomMapper.getCommomTableList(inpatientNo, disDateStr);
if (ObjectUtils.isEmpty(commomVo)) {
disDateStr = disDate.substring(0, 4) + "-" + disDate.substring(4, 6) + "-" + disDate.substring(6, 8);
commomVo = commomMapper.getCommomTableList(inpatientNo, disDateStr);
}
//病案信息不存在或者pdf名称出院日期位数不对
if (ObjectUtils.isEmpty(commomVo) || disDate.length() < 8) {
exportInpVo = new ExportInpVo();
exportInpVo.setInpatientNo(inpatientNo);
exportInpVo.setDisDate(disDateStr);
exportInpVoList.add(exportInpVo);
continue;
}
if (commomVo != null && StringUtils.isNotBlank(commomVo.getFilePath())) {
/*File filePath = new File(commomVo.getFilePath());
if (!filePath.exists()) {

Loading…
Cancel
Save