|
@@ -47,6 +47,8 @@ import com.diagbot.vo.AnalyzeCodeVO;
|
|
import com.diagbot.vo.AnalyzeRunVO;
|
|
import com.diagbot.vo.AnalyzeRunVO;
|
|
import com.diagbot.vo.AnalyzeVO;
|
|
import com.diagbot.vo.AnalyzeVO;
|
|
import com.diagbot.vo.BehospitalPageVO;
|
|
import com.diagbot.vo.BehospitalPageVO;
|
|
|
|
+import com.diagbot.vo.ExportQcresultVO;
|
|
|
|
+import com.diagbot.vo.FilterVO;
|
|
import com.diagbot.vo.GetDetailVO;
|
|
import com.diagbot.vo.GetDetailVO;
|
|
import com.diagbot.vo.MedrecVo;
|
|
import com.diagbot.vo.MedrecVo;
|
|
import com.diagbot.vo.QcResultAlgQueryVO;
|
|
import com.diagbot.vo.QcResultAlgQueryVO;
|
|
@@ -59,6 +61,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
+import java.text.DateFormat;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
@@ -929,4 +932,29 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
String fileName = "mrqc";
|
|
String fileName = "mrqc";
|
|
ExcelUtils.exportExcelUser(res, null, "病案质控", ExportExcelDTO.class, fileName + ".xls", response);
|
|
ExcelUtils.exportExcelUser(res, null, "病案质控", ExportExcelDTO.class, fileName + ".xls", response);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 质控结果导出
|
|
|
|
+ *
|
|
|
|
+ * @param response
|
|
|
|
+ * @param exportQcresultVO
|
|
|
|
+ */
|
|
|
|
+ public void exportQcresult(HttpServletResponse response, ExportQcresultVO exportQcresultVO) {
|
|
|
|
+ String hospitalId = SysUserUtils.getCurrentHospitalID();
|
|
|
|
+ exportQcresultVO.setHospitalId(hospitalId);
|
|
|
|
+ Date startDate = exportQcresultVO.getLeaveHosDateStart();
|
|
|
|
+ Date endDate = exportQcresultVO.getLeaveHosDateEnd();
|
|
|
|
+ //时间间隔7天
|
|
|
|
+ long interval = 7 * 24 * 60 * 60 * 1000;
|
|
|
|
+ if (endDate.getTime() < startDate.getTime()) {
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_ERROR, "截止时间不能小于起始时间");
|
|
|
|
+ }
|
|
|
|
+ if (endDate.getTime() - startDate.getTime() > interval) {
|
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_ERROR, "统计区间不能大于7天");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<ExportExcelDTO> res = this.exportQcresult(exportQcresultVO);
|
|
|
|
+ response.setContentType("text/html;charset=UTF-8");
|
|
|
|
+ ExcelUtils.exportExcel(res, null, "导出sheet1", ExportExcelDTO.class, "测试user.xls", response);
|
|
|
|
+ }
|
|
}
|
|
}
|