|
@@ -28,6 +28,7 @@ import com.diagbot.entity.HomeDiagnoseInfo;
|
|
import com.diagbot.entity.HomeOperationInfo;
|
|
import com.diagbot.entity.HomeOperationInfo;
|
|
import com.diagbot.entity.HomePage;
|
|
import com.diagbot.entity.HomePage;
|
|
import com.diagbot.entity.MedicalRecord;
|
|
import com.diagbot.entity.MedicalRecord;
|
|
|
|
+import com.diagbot.entity.SysUserDept;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
import com.diagbot.exception.CommonException;
|
|
import com.diagbot.exception.CommonException;
|
|
@@ -957,4 +958,31 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
ExcelUtils.exportExcel(res, null, "导出sheet1", ExportExcelDTO.class, "测试user.xls", response);
|
|
ExcelUtils.exportExcel(res, null, "导出sheet1", ExportExcelDTO.class, "测试user.xls", response);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 科室质控结果导出
|
|
|
|
+ *
|
|
|
|
+ * @param response
|
|
|
|
+ * @param exportQcresultVO
|
|
|
|
+ */
|
|
|
|
+ public void exportQcresultByDept(HttpServletResponse response, ExportQcresultVO exportQcresultVO) {
|
|
|
|
+ String hospitalId = SysUserUtils.getCurrentHospitalID();
|
|
|
|
+ String userId = SysUserUtils.getCurrentPrincipleID();
|
|
|
|
+ exportQcresultVO.setHospitalId(hospitalId);
|
|
|
|
+ exportQcresultVO.setUserId(Long.valueOf(userId));
|
|
|
|
+ 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.exportQcresultByDept(exportQcresultVO);
|
|
|
|
+ response.setContentType("text/html;charset=UTF-8");
|
|
|
|
+ ExcelUtils.exportExcel(res, null, "导出sheet1", ExportExcelDTO.class, "测试user.xls", response);
|
|
|
|
+ }
|
|
}
|
|
}
|