示例#1
0
 @GET
 @Path("searchSeriNo/{cihazSeriNo}")
 @Produces("application/json")
 public Response searchSeriNo(@PathParam("cihazSeriNo") String cihazSeriNo) {
   LCD entity = dao.searchRest(0, cihazSeriNo);
   if (entity != null) return Response.ok(entity).build();
   return Response.noContent().build();
 }
示例#2
0
 @GET
 @Path("searchBarkod/{barkod}")
 @Produces("application/json")
 public Response searchBarkod(@PathParam("barkod") Integer barkod) {
   LCD entity = dao.searchRest(barkod, null);
   if (entity != null) return Response.ok(entity).build();
   return Response.noContent().build();
 }