コード例 #1
0
 @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();
   }
 }
コード例 #2
0
  @GET
  @Path("list")
  public List<AcctProfitChangeDict> listByHospital(@QueryParam("hospitalId") String hospitalId) {

    return incomeTypeDictFacade.findProfitByHospitalId(hospitalId);
  }