liding
3 天以前 d28a5401ac1e2995ec6de12a81395aa5d05b040a
inspect-server/src/main/java/com/ruoyi/inspect/service/OutsourceOrderFlowService.java
@@ -30,10 +30,14 @@
    /** 外协订单按实际流程确定下单来源,其他订单保留原来源。 */
    public Integer resolveTypeSource(String orderType, String materialProp, Integer typeSource) {
        if (StringUtils.equals(orderType, OrderType.OUTSOURCE_INCOMING.getValue())
                || StringUtils.equals(orderType, OrderType.OUTSOURCE_SUBCONTRACT.getValue())) {
        if (isOutsource(orderType)) {
            return StringUtils.equals(resolve(orderType, materialProp), OrderType.WG.getValue()) ? 0 : 1;
        }
        return typeSource;
    }
    public boolean isOutsource(String orderType) {
        return OrderType.OUTSOURCE_INCOMING.getValue().equals(orderType)
                || OrderType.OUTSOURCE_SUBCONTRACT.getValue().equals(orderType);
    }
}