コード例 #1
0
 public InternalUser createInternalUser() {
   InternalUser obj = new InternalUser();
   obj.setAvatarAuthenticate(1);
   obj.setCommentCount(this.commentCount);
   obj.setCommonLines(this.commonLines);
   obj.setCreateTime(
       System.currentTimeMillis()
           - RandomNumber.randLong(TimeUtils.DAY * 10, TimeUtils.DAY * 30 * 12));
   obj.setIdNumber(this.idNumber);
   obj.setIsAuthenticate(1);
   obj.setNumber(this.number);
   obj.setOrderCount(this.orderCount);
   obj.setPassword("1");
   obj.setPicture(this.picture);
   obj.setScore(this.score);
   obj.setTelephone(this.telephone);
   obj.setTruckBirth(this.truckBirth);
   String string = String.format("%.2f", truckLength);
   double truckLength2 = Double.valueOf(string);
   obj.setTruckLength(truckLength2);
   obj.setTruckLoad(this.truckLoad);
   obj.setTruckType(this.truckType);
   obj.setUpdateTime(System.currentTimeMillis());
   obj.setUserId(null);
   obj.setUserName(this.userName);
   obj.setUserType(userType);
   return obj;
 }