#
whycq
2024-07-11 0430c84aa26eaaad039803dad9c24d55f36b3050
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/LocDetl.java
@@ -3,7 +3,10 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import com.zy.asrs.common.utils.Synchro;
import com.zy.asrs.common.wms.service.DocTypeService;
import com.zy.asrs.common.wms.service.LocMastService;
import com.zy.asrs.common.wms.service.OrderService;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -33,7 +36,7 @@
    @ApiModelProperty(value= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Long id;
    /**
     * 库位号
@@ -196,9 +199,12 @@
    @ApiModelProperty(value= "授权商户")
    private Long hostId;
    @ApiModelProperty(value= "货主")
    private String owner;
    public LocDetl() {}
    public LocDetl(String locNo,String zpallet,Double anfme,String matnr,String maktx,String batch,String orderNo,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String memo,Long hostId) {
    public LocDetl(String locNo,String zpallet,Double anfme,String matnr,String maktx,String batch,String orderNo,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String memo,Long hostId,String owner) {
        this.locNo = locNo;
        this.zpallet = zpallet;
        this.anfme = anfme;
@@ -238,6 +244,7 @@
        this.appeTime = appeTime;
        this.memo = memo;
        this.hostId = hostId;
        this.owner = owner;
    }
//    LocDetl locDetl = new LocDetl(
@@ -332,5 +339,21 @@
        return null;
    }
    public String getOrderType() {
        if (Cools.isEmpty(this.orderNo)){
            return "";
        }
        OrderService orderService = SpringUtils.getBean(OrderService.class);
        DocTypeService docTypeService = SpringUtils.getBean(DocTypeService.class);
        Order order = orderService.selectByNo(orderNo, hostId);
        if (order != null) {
            return order.getDocType$();
        }
        return this.orderNo;
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }
}