|
@@ -874,13 +874,17 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
//}
|
|
|
if(isCheckGps!=null && isCheckGps==0){
|
|
|
Map<String,Object> locationResult = null;
|
|
|
+ int isGPS=0;
|
|
|
try{
|
|
|
Map<String,Object> data = (Map<String,Object>)otmsFeign.getCurrentLocation(capacityNumber).getData();
|
|
|
locationResult = (Map<String,Object>)data.get("result");
|
|
|
+ isGPS=amsSaleOrderMapper.isGPS(capacityNumber);
|
|
|
}catch (Exception e){
|
|
|
//出现任何异常不抛出,不终止程序
|
|
|
}
|
|
|
- if(locationResult==null || locationResult.get("lon")==null || locationResult.get("lat")==null){
|
|
|
+ if(isGPS > 0){
|
|
|
+ System.out.println(capacityNumber+"允许无GPS派车");
|
|
|
+ }else if(locationResult==null || locationResult.get("lon")==null || locationResult.get("lat")==null){
|
|
|
throw new Exception("该车没有GPS定位信息,请联系销售公司物流部,申请是否可以派车。");
|
|
|
}
|
|
|
}
|