| | |
| | | package com.vincent.rsf.server.manager.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.vincent.rsf.server.manager.service.CompanysService; |
| | | import lombok.experimental.Accessors; |
| | | import org.checkerframework.checker.units.qual.A; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | import com.vincent.rsf.server.system.entity.User; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.Objects; |
| | | |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("man_transfer_item") |
| | | public class TransferItem implements Serializable { |
| | | |
| | |
| | | */ |
| | | @ApiModelProperty(value= "供应商ID") |
| | | private Long splrId; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("供应商编码") |
| | | private String splrCode; |
| | | |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("供应商名称") |
| | | private String splrName; |
| | | |
| | | /** |
| | | * 规格 |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getSplrName() { |
| | | if (null == this.splrId) { return null; } |
| | | CompanysService companysService = SpringUtils.getBean(CompanysService.class); |
| | | Companys companys = companysService.getById(this.splrId); |
| | | if (Objects.isNull(companys)) { |
| | | return null; |
| | | } else { |
| | | return companys.getName(); |
| | | } |
| | | } |
| | | |
| | | public String getSplrCode() { |
| | | if (null == this.splrId) { return null; } |
| | | CompanysService companysService = SpringUtils.getBean(CompanysService.class); |
| | | Companys companys = companysService.getById(this.splrId); |
| | | if (Objects.isNull(companys)) { |
| | | return null; |
| | | } else { |
| | | return companys.getCode(); |
| | | } |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |