|
@@ -9,6 +9,7 @@ import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.dil.model.QmsQueueResult;
|
|
|
import com.steerinfo.dil.mapper.QmsQueueResultMapper;
|
|
|
import com.steerinfo.dil.service.IQmsQueueResultService;
|
|
|
+import com.steerinfo.dil.util.ElectronicFenceUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -52,6 +53,11 @@ public class QmsQueueResultServiceImpl implements IQmsQueueResultService {
|
|
|
@Autowired
|
|
|
private QueueInterfaceMapper queueInterfaceMapper;
|
|
|
|
|
|
+ private String lonlat = "107.4628199,31.1925279"; //中心点坐标
|
|
|
+ private String radius = "15000"; //半径
|
|
|
+ private String lat1 = "31.1925279";
|
|
|
+ private String lng1 = "107.4628199";
|
|
|
+
|
|
|
/**
|
|
|
* 取消订阅方法
|
|
|
*/
|
|
@@ -230,6 +236,15 @@ public class QmsQueueResultServiceImpl implements IQmsQueueResultService {
|
|
|
return qmsQueueResultMapper.getQueueEndResult(map);
|
|
|
}
|
|
|
|
|
|
+ public boolean isInCircle(String longitude, String latitude,String CapacityNo) {
|
|
|
+ boolean s = ElectronicFenceUtils.isInRange(15000,new BigDecimal(latitude),new BigDecimal(longitude),new BigDecimal(lat1),new BigDecimal(lng1));
|
|
|
+ if(s){
|
|
|
+ int i = addQueueResult(CapacityNo,"否");
|
|
|
+ System.out.println(i);
|
|
|
+ }
|
|
|
+ return s;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 新增仓库排队实绩
|
|
|
* @param map orderNumber运输订单号 loadingId 装车点
|