11
verou
2025-03-25 43721e95b3bb75e5a90a18120aaf12e0b632360a
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WarehouseAreas.java
@@ -4,8 +4,10 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vincent.rsf.server.manager.service.CompanysService;
import com.vincent.rsf.server.manager.service.ShipperService;
import com.vincent.rsf.server.manager.service.WarehouseService;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -23,6 +25,7 @@
import com.vincent.rsf.server.system.entity.User;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
@Data
@TableName("man_warehouse_areas")
@@ -41,7 +44,7 @@
     * 仓库ID
     */
    @ApiModelProperty("仓库ID")
    private Long wareId;
    private Long warehouseId;
    /**
     * 编号
@@ -120,6 +123,7 @@
     * 添加时间
     */
    @ApiModelProperty(value= "添加时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
@@ -133,6 +137,7 @@
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
@@ -191,6 +196,16 @@
        return null;
    }
    public String getWarehouseId$() {
        if (this.warehouseId == null) { return null; }
        WarehouseService warehouseService = SpringUtils.getBean(WarehouseService.class);
        Warehouse warehouse = warehouseService.getById(this.warehouseId);
        if (!Objects.isNull(warehouse)) {
            return warehouse.getName();
        }
        return null;
    }
    public String getSupplier$() {
        CompanysService service = SpringUtils.getBean(CompanysService.class);
        Companys supplier = service.getById(this.supplierId);