回退逻辑修改,根据是否一次验收二次验收进行回退
parent
c69486989e
commit
13200bb936
@ -0,0 +1,102 @@
|
||||
package com.glxp.sale.admin.util;
|
||||
|
||||
import com.glxp.sale.admin.constant.ConstantStatus;
|
||||
import com.glxp.sale.admin.entity.basic.BussinessTypeEntity;
|
||||
import com.glxp.sale.admin.entity.inout.OrderEntity;
|
||||
|
||||
public class BusTypeCheckUtils {
|
||||
|
||||
public static boolean isFirstCheck(BussinessTypeEntity bussinessTypeEntity, OrderEntity orderEntity) {
|
||||
if (bussinessTypeEntity.isCheckEnable()) {
|
||||
if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_UDIMS) {
|
||||
if (bussinessTypeEntity.isCheckUdims()) {
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_WEBNEW) {
|
||||
if (bussinessTypeEntity.isCheckWebNew()) {
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_PDAED) {
|
||||
if (bussinessTypeEntity.isCheckPdaEd()) {
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_PDAUN) {
|
||||
if (bussinessTypeEntity.isCheckPdaUn()) {
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_PC) {
|
||||
if (bussinessTypeEntity.isCheckPc()) {
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_CHANGE) {
|
||||
if (bussinessTypeEntity.isCheckChange()) {
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_PEACE_CHANGE) {
|
||||
if (bussinessTypeEntity.isCheckBalacne()) {
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_UDIWMS) {
|
||||
if (bussinessTypeEntity.isCheckUdiwms()) {
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_COPY) {
|
||||
if (bussinessTypeEntity.isCheckCopy()) {
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static boolean isSecondCheck(BussinessTypeEntity bussinessTypeEntity, OrderEntity orderEntity) {
|
||||
|
||||
if (bussinessTypeEntity.isSecCheckEnable()) {
|
||||
if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_UDIMS) {
|
||||
if (bussinessTypeEntity.isSecCheckUdims()) {
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_WEBNEW) {
|
||||
if (bussinessTypeEntity.isSecCheckWebNew()) {
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_PDAED) {
|
||||
if (bussinessTypeEntity.isSecCheckPdaEd()) {
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_PDAUN) {
|
||||
if (bussinessTypeEntity.isSecCheckPdaUn()) {
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_PC) {
|
||||
if (bussinessTypeEntity.isSecCheckPc()) {
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_CHANGE) {
|
||||
if (bussinessTypeEntity.isSecCheckChange()) {
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_PEACE_CHANGE) {
|
||||
if (bussinessTypeEntity.isSecCheckBalacne()) {
|
||||
return true;
|
||||
}
|
||||
} else if (orderEntity.getFromType().intValue() == ConstantStatus.FROM_COPY) {
|
||||
if (bussinessTypeEntity.isSecCheckCopy()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue