evoToK3Cloud/ruoyi-common/src/main/java/com/ruoyi/common/utils/JsyyOrderNo.java
2026-10-28 17:14:56 +08:00

22 lines
676 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.ruoyi.common.utils;
/**
* 技术预研令号:令号中含 JSYY 时不属于生产令号,禁止更新物料清单、推送工艺。
*/
public final class JsyyOrderNo {
public static final String MARK = "JSYY";
public static final String MSG = "JSYY技术预研令号不属于生产令号,严禁直接用于生产执行,禁止更新物料清单、禁止推送工艺";
private JsyyOrderNo() {
}
public static boolean matches(String orderNo) {
return orderNo != null && orderNo.toUpperCase().contains(MARK);
}
public static String denyIfMatches(String orderNo) {
return matches(orderNo) ? MSG : null;
}
}