Authored by mali

版本比较用工具

package com.yohoufo.order.service.impl;
import com.yohobuy.ufo.model.order.resp.DepositOrderComputeResp;
import com.yohoufo.common.utils.AppVersion;
import com.yohoufo.common.utils.DateUtil;
import com.yohoufo.common.utils.StringUtil;
import org.apache.commons.lang3.StringUtils;
... ... @@ -69,6 +70,6 @@ public class DepositHelpService {
}
public boolean checkAppVersion(String appVersion) {
return StringUtils.isNotBlank(appVersion) && appVersion.compareTo("6.9.9") >=0;
return StringUtils.isNotBlank(appVersion) && AppVersion.of(appVersion).greaterThanOrEquals(AppVersion.of("6.9.9"));
}
}
... ...