|
@@ -10,6 +10,7 @@ import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.dil.model.QmsQueueList;
|
|
import com.steerinfo.dil.model.QmsQueueList;
|
|
|
import com.steerinfo.dil.service.IQmsQueueListService;
|
|
import com.steerinfo.dil.service.IQmsQueueListService;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
|
|
+import com.sun.org.apache.bcel.internal.generic.RETURN;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -121,13 +122,23 @@ public class QmsQueueListServiceImpl implements IQmsQueueListService {
|
|
|
//单拼进入链表
|
|
//单拼进入链表
|
|
|
//判断单拼链表中是否有已存在此辆车正在排队
|
|
//判断单拼链表中是否有已存在此辆车正在排队
|
|
|
if(qmsQueueListMapper.existsCapacity(mesMap.get("capacityId")) != null){
|
|
if(qmsQueueListMapper.existsCapacity(mesMap.get("capacityId")) != null){
|
|
|
- return 0;
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ qmsQueueListMapper.deleteListByCapacityId(DataChange.dataToBigDecimal(mesMap.get("capacityId")));
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ return 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ //return 0;
|
|
|
}
|
|
}
|
|
|
return addListResult(mesMap, calculateGatepost());
|
|
return addListResult(mesMap, calculateGatepost());
|
|
|
}else {
|
|
}else {
|
|
|
//多拼进入排队队列
|
|
//多拼进入排队队列
|
|
|
if(qmsQueueSpellingListMapper.existsCapacity(mesMap.get("capacityId")) != null){
|
|
if(qmsQueueSpellingListMapper.existsCapacity(mesMap.get("capacityId")) != null){
|
|
|
- return 0;
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ qmsQueueSpellingListMapper.deleteSpellingList(DataChange.dataToBigDecimal(mesMap.get("capacityId")));
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ return 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ //return 0;
|
|
|
}
|
|
}
|
|
|
return addSpellingListResult(mesMap, calculateGatepost());
|
|
return addSpellingListResult(mesMap, calculateGatepost());
|
|
|
}
|
|
}
|