mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user