/** * 更新 IMember * * @param context * @param request * @param iMember */ public ResultBean updateIMember( ServletContext context, HttpServletRequest request, IMember iMember) { IMember tmp = imedicalrecordService.getIMemberByPk(iMember.getPrimaryKey()); String empid = UtilTool.getEmployeeId(request); iMember.initUpdate(empid); imedicalrecordService.saveIMember(iMember); logger.info("更新 IMember..."); return WebUtilWork.WebResultPack(null); }
/** * 保存 IMember * * @param context * @param request * @param iMember */ public ResultBean saveIMember( ServletContext context, HttpServletRequest request, IMember iMember) { String empid = UtilTool.getEmployeeId(request); iMember.initSave(empid); iMember.setPrimaryKey(UtilPrimaryKey.getPrimaryKey()); imedicalrecordService.saveIMember(iMember); logger.info("保存 IMember..."); return WebUtilWork.WebResultPack(null); }
/** * 根据ID获得 IMember * * @param context * @param request * @param pk */ public ResultBean getIMemberByPk(ServletContext context, HttpServletRequest request, String pk) { IMember iMember = imedicalrecordService.getIMemberByPk(pk); logger.info("根据ID获得 IMember...{}", iMember.getPrimaryKey()); return WebUtilWork.WebObjectPack(iMember); }