This commit is contained in:
YAS\29473
2025-08-09 16:04:11 +08:00
parent e78bd1cafd
commit 6a0b56194e

View File

@@ -124,9 +124,19 @@ public class ThirdPartyPlatformUtils {
* @param orderCode
* @return
*/
public static Boolean isNeedPushToThirdPartyPlatform(String orderCode,String operatorId) {
String operatorIdPrefix = StringUtils.substring(orderCode , 0 , 9);
return operatorIdPrefix.equals(operatorId);
public static boolean isNeedPushToThirdPartyPlatform(String orderCode,String operatorId) {
if (StringUtils.isNotBlank(orderCode)) {
if (orderCode.length() >= 9) {
String result = StringUtils.substring(orderCode, 0, 9);
return result.equals(operatorId);
} else {
// 订单长度不对
return false;
}
} else {
//订单为空
return false;
}
}
}