@ModelAttribute
 public OaCommendPenalize get(@RequestParam(required = false) String id) {
   OaCommendPenalize entity = null;
   if (StringUtils.isNotBlank(id)) {
     entity = oaCommendPenalizeService.get(id);
   }
   if (entity == null) {
     entity = new OaCommendPenalize();
   }
   return entity;
 }
Ejemplo n.º 2
0
 @ModelAttribute
 public OaRoom get(@RequestParam(required = false) String id) {
   OaRoom entity = null;
   if (StringUtils.isNotBlank(id)) {
     entity = oaRoomService.get(id);
   }
   if (entity == null) {
     entity = new OaRoom();
   }
   return entity;
 }