|  |  | 
 |  |  | import com.core.common.Cools; | 
 |  |  | import com.core.common.SpringUtils; | 
 |  |  | import com.zy.asrs.service.LocOwnerService; | 
 |  |  | import com.zy.system.entity.User; | 
 |  |  | import com.zy.system.service.UserService; | 
 |  |  | import io.swagger.annotations.ApiModelProperty; | 
 |  |  | import lombok.Data; | 
 |  |  |  | 
 |  |  | 
 |  |  |     private Integer owner; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 是否付款 | 
 |  |  |      * 货物形态:0:代采、1:仓储 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "是否付款0:未付款、1:已付款   ") | 
 |  |  |     @ApiModelProperty(value= "货物形态:0:代采、1:仓储") | 
 |  |  |     private Integer payment; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |         if (null == this.payment){ return null; } | 
 |  |  |         switch (this.payment){ | 
 |  |  |             case 1: | 
 |  |  |                 return "已付款"; | 
 |  |  |                 return "仓储"; | 
 |  |  |             case 0: | 
 |  |  |                 return "未付款"; | 
 |  |  |                 return "代采"; | 
 |  |  |             default: | 
 |  |  |                 return String.valueOf(this.payment); | 
 |  |  |         } | 
 |  |  | 
 |  |  |         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getCreateBy$(){ | 
 |  |  |         UserService service = SpringUtils.getBean(UserService.class); | 
 |  |  |         User user = service.selectById(this.modiUser); | 
 |  |  |         if (!Cools.isEmpty(user)){ | 
 |  |  |             return String.valueOf(user.getUsername()); | 
 |  |  |         } | 
 |  |  |         return null; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |