mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-03 21:48:13 +08:00
update
This commit is contained in:
@@ -124,9 +124,19 @@ public class ThirdPartyPlatformUtils {
|
|||||||
* @param orderCode
|
* @param orderCode
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static Boolean isNeedPushToThirdPartyPlatform(String orderCode,String operatorId) {
|
public static boolean isNeedPushToThirdPartyPlatform(String orderCode,String operatorId) {
|
||||||
String operatorIdPrefix = StringUtils.substring(orderCode , 0 , 9);
|
if (StringUtils.isNotBlank(orderCode)) {
|
||||||
return operatorIdPrefix.equals(operatorId);
|
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