Area7Param.java 2.38 KB
package com.huaheng.api.robot.domain;

import com.alibaba.fastjson.JSONArray;
import com.huaheng.pc.inventory.inventoryDetail.domain.InventoryDetail;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/***
 * @author tongzonghao
 *
 */
public class Area7Param {
    /**
     * 内圈外圈 1外圈 2内圈
     */
    private int outOrInSide;
    /**
     * 内圈订单号
     */
    private String insideOrderNo;
    /**
     * 任务类型
     */
    private Integer taskType;
    /**
     * 是否等级匹配出库
     */
    private Integer isNeedQC;
    /**
     * 外圈匹配规则
     */
    private String outsideRule;
    /**
     * 内圈匹配规则
     */
    private String insideRule;

    private String[] rule;

    public Area7Param() {
    }

    public int getOutOrInSide() {
        return outOrInSide;
    }

    public void setOutOrInSide(int outOrInSide) {
        this.outOrInSide = outOrInSide;
    }

    public String getInsideOrderNo() {
        return insideOrderNo;
    }

    public void setInsideOrderNo(String insideOrderNo) {
        this.insideOrderNo = insideOrderNo;
    }

    public Integer getTaskType() {
        return taskType;
    }

    public void setTaskType(Integer taskType) {
        this.taskType = taskType;
    }

    public Integer getIsNeedQC() {
        return isNeedQC;
    }

    public void setIsNeedQC(Integer isNeedQC) {
        this.isNeedQC = isNeedQC;
    }
    public void setRule(String[] rule) {
        this.rule = rule;
        if(rule!=null){
            outsideRule = rule[0];
            insideRule = rule[1];
        }
    }

    public String getOutsideRule() {
        return outsideRule;
    }

    public void setOutsideRule(String outsideRule) {
        this.outsideRule = outsideRule;
    }

    public String getInsideRule() {
        return insideRule;
    }

    public void setInsideRule(String insideRule) {
        this.insideRule = insideRule;
    }

    public boolean hasInsideOrderNo(){
        if(insideOrderNo==null||"".equals(insideOrderNo)){
            return false;
        }else{
            return true;
        }
    }

    public boolean hasLevel(){
        if(isNeedQC==1){
            return true;
        }
        return false;
    }

    public boolean matchNG(){
        if(rule == null && taskType == 1){
            return true;
        }
        return false;
    }
}