| | |
| | | package zy.cloud.wms.manager.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.core.common.SpringUtils; |
| | | import zy.cloud.wms.manager.service.ReceiveService; |
| | | import zy.cloud.wms.system.service.UserService; |
| | | import zy.cloud.wms.system.entity.User; |
| | | import java.text.SimpleDateFormat; |
| | |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | private String memo; |
| | | |
| | | @TableField("in_qty") |
| | | private int inQty; |
| | | private Double inQty; |
| | | |
| | | @TableField("qua_status") |
| | | private int quaStatus; |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | public String getOrderId$(){ |
| | | ReceiveService receiveService = SpringUtils.getBean(ReceiveService.class); |
| | | Receive receive = receiveService.selectById(this.orderId); |
| | | if (!Cools.isEmpty(receive)) { |
| | | return String.valueOf(receive.getId()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | |
| | | return orderId; |
| | | } |
| | | |
| | | public String getOrderId$(){ |
| | | OrderService service = SpringUtils.getBean(OrderService.class); |
| | | Order order = service.selectById(this.orderId); |
| | | if (!Cools.isEmpty(order)){ |
| | | return String.valueOf(order.getId()); |
| | | } |
| | | return null; |
| | | } |
| | | // public String getOrderId$(){ |
| | | // OrderService service = SpringUtils.getBean(OrderService.class); |
| | | // Order order = service.selectById(this.orderId); |
| | | // if (!Cools.isEmpty(order)){ |
| | | // return String.valueOf(order.getId()); |
| | | // } |
| | | // return null; |
| | | // } |
| | | |
| | | public String getState$(){ |
| | | if (this.inQty == 0){ |
| | | return "未入库"; |
| | | } |
| | | if (count - inQty != 0){ |
| | | if (anfme - inQty != 0){ |
| | | return "入库中"; |
| | | } |
| | | return "已完成"; |