1
1 天以前 e6d3803d1bafb782c0907fa925ec110932bc3f23
rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/params/OutStockToTaskParams.java
@@ -2,6 +2,8 @@
import com.baomidou.mybatisplus.annotation.TableField;
import com.vincent.rsf.server.manager.controller.dto.OrderOutItemDto;
import com.vincent.rsf.server.manager.entity.WkOrderItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -44,4 +46,44 @@
    @ApiModelProperty("站点")
    private String siteNo;
    public OutStockToTaskParams(){};
    public OutStockToTaskParams(OrderOutItemDto orderOutItemDto){
//        this.locCode = w;//库位
//        this.id = wkOrderItem.getId();
        this.barcode = orderOutItemDto.getBarcode();
        this.batch = orderOutItemDto.getBatch();
        this.unit = orderOutItemDto.getUnit();
        this.platOrderCode = orderOutItemDto.getPlatOrderCode();
        this.fieldsIndex = orderOutItemDto.getFieldsIndex();
        this.extendFields = orderOutItemDto.getExtendFields();
        this.outQty = orderOutItemDto.getAnfme();
//        this.siteNo = siteNo;
    };
    public OutStockToTaskParams(WkOrderItem wkOrderItem){
//        this.locCode = w;//库位
//        this.id = wkOrderItem.getId();
        this.barcode = wkOrderItem.getBarcode();
        this.batch = wkOrderItem.getBatch();
        this.unit = wkOrderItem.getPurUnit();
        this.platOrderCode = wkOrderItem.getPlatOrderCode();
        this.fieldsIndex = wkOrderItem.getFieldsIndex();
        this.extendFields = wkOrderItem.getExtendFields();
        this.outQty = wkOrderItem.getAnfme();
//        this.siteNo = siteNo;
    };
    public OutStockToTaskParams(String locCode, Long id, String barcode, String batch, String unit, String platOrderCode, String fieldsIndex, Map<String, String> extendFields, Double outQty, String siteNo) {
        this.locCode = locCode;
        this.id = id;
        this.barcode = barcode;
        this.batch = batch;
        this.unit = unit;
        this.platOrderCode = platOrderCode;
        this.fieldsIndex = fieldsIndex;
        this.extendFields = extendFields;
        this.outQty = outQty;
        this.siteNo = siteNo;
    }
}