| package com.panzhihua.common.model.vos.community.warehouse; | 
|   | 
| import java.util.Date; | 
|   | 
| import com.fasterxml.jackson.annotation.JsonFormat; | 
| import com.panzhihua.common.utlis.StringUtils; | 
| import io.swagger.annotations.ApiModel; | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
|   | 
| /** | 
|  * @title: ComActWarehouseOperationVO | 
|  * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 | 
|  * @description: 爱心义仓操作记录vo | 
|  * @author: hans | 
|  * @date: 2021/10/11 16:32 | 
|  */ | 
|   | 
| @Data | 
| @ApiModel("爱心义仓操作记录vo") | 
| public class ComActWarehouseOperationVO { | 
|   | 
|     @ApiModelProperty(value = "操作记录id") | 
|     private Integer id; | 
|   | 
|     @ApiModelProperty(value = "物品id") | 
|     private Integer goodsId; | 
|   | 
|     @ApiModelProperty(value = "操作内容") | 
|     private String content; | 
|   | 
|     @ApiModelProperty(value = "操作时间") | 
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|     private Date createTime; | 
|   | 
|     @ApiModelProperty(value = "操作人") | 
|     private Integer userId; | 
|   | 
|     @ApiModelProperty("申请人姓名") | 
|     private String applyName; | 
|   | 
|     @ApiModelProperty("捐赠人名称") | 
|     private String donateName; | 
|   | 
|     @ApiModelProperty("捐赠物品名称") | 
|     private String item; | 
|   | 
|     @ApiModelProperty("捐赠物品图片") | 
|     private String image; | 
|   | 
|     @ApiModelProperty("捐赠物品数量") | 
|     private Integer goodsNum; | 
|   | 
|     /** | 
|      * 实际时间 | 
|      */ | 
|     @ApiModelProperty(value = "实际时间") | 
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|     private Date actualTime; | 
|   | 
|     @ApiModelProperty("是否匿名(1.是 2.否)") | 
|     private Integer isAnonymous; | 
|   | 
|     /** | 
|      * 理由 | 
|      */ | 
|     @ApiModelProperty("理由") | 
|     private String reason; | 
|   | 
|     /** | 
|      * 领取图片 | 
|      */ | 
|     @ApiModelProperty("领取图片") | 
|     private String receiveUrl; | 
|   | 
|     @ApiModelProperty("类型 1 content 2其他") | 
|     private Integer type; | 
|   | 
|     public void setDonateName(String donateName) { | 
|         if(StringUtils.isNotEmpty(donateName)){ | 
|             this.donateName = donateName.charAt(0)+"**"; | 
|         } | 
|     } | 
|   | 
|     public void setApplyName(String applyName) { | 
|         if(StringUtils.isNotEmpty(applyName)){ | 
|             this.applyName = applyName.charAt(0)+"**"; | 
|         } | 
|     } | 
| } |