コード例 #1
0
 // ============================================================
 // <T>保存对照表。</T>
 //
 // @param map 对照表
 // ============================================================
 @Override
 public void saveMap(Map<String, String> map) {
   super.saveMap(map);
   map.put("ouid", RLong.toString(_ouid));
   map.put("ovld", RBoolean.toString(_ovld));
   map.put("guid", _guid);
   map.put("linkParentId", RLong.toString(_linkParentId));
   map.put("linkId", RLong.toString(_linkId));
   map.put("code", _code);
   map.put("name", _name);
   map.put("label", _label);
   map.put("departmentId", RInteger.toString(_departmentId));
   map.put("departmentLabel", _departmentLabel);
   map.put("regionId", RInteger.toString(_regionId));
   map.put("regionLabel", _regionLabel);
   map.put("level", RInteger.toString(_level));
   map.put("leaderId", RLong.toString(_leaderId));
   map.put("leaderLabel", _leaderLabel);
   map.put("leaderPhone", _leaderPhone);
   map.put("provinceId", RInteger.toString(_provinceId));
   map.put("provinceLabel", _provinceLabel);
   map.put("cityId", RInteger.toString(_cityId));
   map.put("cityLabel", _cityLabel);
   map.put("detailAddress", _detailAddress);
   map.put("locationLongitude", RDouble.toString(_locationLongitude));
   map.put("locationLatitude", RDouble.toString(_locationLatitude));
   map.put("departmentPhone", _departmentPhone);
   map.put("buildDate", _buildDate.format("YYYY-MM-DD HH24:MI:SS"));
   map.put("note", _note);
   map.put("createUserId", RLong.toString(_createUserId));
   map.put("createDate", _createDate.format("YYYY-MM-DD HH24:MI:SS"));
   map.put("updateUserId", RLong.toString(_updateUserId));
   map.put("updateDate", _updateDate.format("YYYY-MM-DD HH24:MI:SS"));
 }
コード例 #2
0
 // ============================================================
 // <T>根据名称获得内容。</T>
 //
 // @param name 名称
 // @return 内容
 // ============================================================
 @Override
 public String get(String name) {
   switch (name) {
     case "ouid":
       return Long.toString(_ouid);
     case "ovld":
       return RBoolean.toString(_ovld);
     case "guid":
       return _guid;
     case "member_id":
       return Long.toString(_memberId);
     case "product_code":
       return _productCode;
     case "time_section":
       return _timeSection;
     case "pv":
       return RInteger.toString(_pv);
     case "create_user_id":
       return Long.toString(_createUserId);
     case "create_date":
       return _createDate.toString();
     case "update_user_id":
       return Long.toString(_updateUserId);
     case "update_date":
       return _updateDate.toString();
   }
   return null;
 }
コード例 #3
0
 // ============================================================
 // <T>保存对照表。</T>
 //
 // @param map 对照表
 // ============================================================
 @Override
 public void saveMap(Map<String, String> map) {
   super.saveMap(map);
   map.put("ouid", RLong.toString(_ouid));
   map.put("ovld", RBoolean.toString(_ovld));
   map.put("guid", _guid);
   map.put("memberId", RLong.toString(_memberId));
   map.put("productCode", _productCode);
   map.put("timeSection", _timeSection);
   map.put("pv", RInteger.toString(_pv));
   map.put("createUserId", RLong.toString(_createUserId));
   map.put("createDate", _createDate.format("YYYY-MM-DD HH24:MI:SS"));
   map.put("updateUserId", RLong.toString(_updateUserId));
   map.put("updateDate", _updateDate.format("YYYY-MM-DD HH24:MI:SS"));
 }
コード例 #4
0
 // ============================================================
 // <T>根据名称获得内容。</T>
 //
 // @param name 名称
 // @return 内容
 // ============================================================
 @Override
 public String get(String name) {
   switch (name) {
     case "ouid":
       return Long.toString(_ouid);
     case "ovld":
       return RBoolean.toString(_ovld);
     case "guid":
       return _guid;
     case "link_parent_id":
       return Long.toString(_linkParentId);
     case "link_id":
       return Long.toString(_linkId);
     case "code":
       return _code;
     case "name":
       return _name;
     case "label":
       return _label;
     case "department_id":
       return RInteger.toString(_departmentId);
     case "department_label":
       return _departmentLabel;
     case "region_id":
       return RInteger.toString(_regionId);
     case "region_label":
       return _regionLabel;
     case "level":
       return RInteger.toString(_level);
     case "leader_id":
       return Long.toString(_leaderId);
     case "leader_label":
       return _leaderLabel;
     case "leader_phone":
       return _leaderPhone;
     case "province_id":
       return RInteger.toString(_provinceId);
     case "province_label":
       return _provinceLabel;
     case "city_id":
       return RInteger.toString(_cityId);
     case "city_label":
       return _cityLabel;
     case "detail_address":
       return _detailAddress;
     case "location_longitude":
       return RDouble.toString(_locationLongitude);
     case "location_latitude":
       return RDouble.toString(_locationLatitude);
     case "department_phone":
       return _departmentPhone;
     case "build_date":
       return _buildDate.toString();
     case "note":
       return _note;
     case "create_user_id":
       return Long.toString(_createUserId);
     case "create_date":
       return _createDate.toString();
     case "update_user_id":
       return Long.toString(_updateUserId);
     case "update_date":
       return _updateDate.toString();
   }
   return null;
 }