| | |
| | | package com.zy.asrs.wms.asrs.entity;
|
| | |
|
| | | import com.baomidou.mybatisplus.annotation.TableLogic;
|
| | | import com.baomidou.mybatisplus.annotation.*;
|
| | |
|
| | | import java.lang.reflect.Field;
|
| | | import java.text.SimpleDateFormat;
|
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
| | | import com.zy.asrs.common.utils.Synchro;
|
| | | import com.zy.asrs.wms.asrs.entity.enums.OrderType;
|
| | | import com.zy.asrs.wms.asrs.entity.param.FieldParam;
|
| | | import com.zy.asrs.wms.asrs.service.MatFieldService;
|
| | | import com.zy.asrs.wms.asrs.service.MatService;
|
| | |
| | | import org.springframework.format.annotation.DateTimeFormat;
|
| | | import java.util.Date;
|
| | |
|
| | | import com.baomidou.mybatisplus.annotation.IdType;
|
| | | import com.baomidou.mybatisplus.annotation.TableId;
|
| | | import com.baomidou.mybatisplus.annotation.TableName;
|
| | | import io.swagger.annotations.ApiModelProperty;
|
| | | import lombok.Data;
|
| | | import com.zy.asrs.framework.common.Cools;
|
| | |
| | | */
|
| | | @ApiModelProperty(value= "订单编号")
|
| | | private String orderNo;
|
| | |
|
| | | @ApiModelProperty("单据类型")
|
| | | @TableField(exist = false)
|
| | | private Integer orderType;
|
| | |
|
| | | @ApiModelProperty("物料名称")
|
| | | @TableField(exist = false)
|
| | | private String maktx;
|
| | |
|
| | | /**
|
| | | * 数量
|
| | |
| | | @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ")
|
| | | private Integer status;
|
| | |
|
| | | @ApiModelProperty(value = "拣货状态:0 未拣货 1 完成拣货 2 ,部分拣货")
|
| | | private Integer pickStatus;
|
| | |
|
| | | /**
|
| | | * 是否删除 1: 是 0: 否
|
| | | */
|
| | |
| | | */
|
| | | @ApiModelProperty(value= "备注")
|
| | | private String memo;
|
| | |
|
| | | @ApiModelProperty("优先级")
|
| | | private Integer sorted;
|
| | |
|
| | | @ApiModelProperty("仓库类型")
|
| | | private Integer wareType;
|
| | |
|
| | | /**
|
| | | * 商品库存索引
|
| | |
| | | public Double getWaitQty(){
|
| | | Double qty = 0D;
|
| | | WaitPakinService service = SpringUtils.getBean(WaitPakinService.class);
|
| | | List<WaitPakin> waitPakins = service.list(new LambdaQueryWrapper<WaitPakin>().eq(WaitPakin::getDetlId, id).eq(WaitPakin::getIoStatus, 0));
|
| | | List<WaitPakin> waitPakins = service.list(new LambdaQueryWrapper<WaitPakin>().eq(WaitPakin::getDetlId, id));
|
| | | for (WaitPakin waitPakin : waitPakins) {
|
| | | qty += waitPakin.getAnfme();
|
| | | }
|
| | | return qty;
|
| | | }
|
| | |
|
| | | public String getOrderType$() {
|
| | | if (orderType == null) {return null;}
|
| | | if (orderType == 1) {
|
| | | return OrderType.UTC_IN_ORDER.desc;
|
| | | } else if (orderType == 2) {
|
| | | return OrderType.UTC_OUT_ORDER.desc;
|
| | | } else {
|
| | | return OrderType.PK_IN_ORDER.desc;
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | public String getOrderId$(){
|
| | | OrderService service = SpringUtils.getBean(OrderService.class);
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | public String getWareType$(){
|
| | | if (wareType == null) {return null;}
|
| | | if (wareType == 1) {
|
| | | return "立库";
|
| | | } else if (wareType == 2) {
|
| | | return "平库";
|
| | | } else {
|
| | | return "立库/平库";
|
| | | }
|
| | | }
|
| | |
|
| | | public String getMatId$(){
|
| | | MatService service = SpringUtils.getBean(MatService.class);
|
| | | Mat mat = service.getById(this.matId);
|