@POST @Path("save-update") public Response saveOrUpdate( BeanChangeVo<AcctProfitChangeDict> acctProfitChangeDicttBeanChangeVo) { try { incomeTypeDictFacade.saveacctProfitChangeDicttBeanChangeVo(acctProfitChangeDicttBeanChangeVo); return Response.status(Response.Status.OK).entity(acctProfitChangeDicttBeanChangeVo).build(); } catch (Exception e) { e.printStackTrace(); ErrorException errorException = new ErrorException(); errorException.setMessage(e); return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(errorException).build(); } }
@GET @Path("list") public List<AcctProfitChangeDict> listByHospital(@QueryParam("hospitalId") String hospitalId) { return incomeTypeDictFacade.findProfitByHospitalId(hospitalId); }