Ejemplo n.º 1
0
 /** 获取对象值(导入) */
 public static Object getValue(String val) {
   for (Area e : UserUtils.getAreaList()) {
     if (StringUtils.trimToEmpty(val).equals(e.getName())) {
       return e;
     }
   }
   return null;
 }
 @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.º 3
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;
 }