|
@@ -11,11 +11,13 @@ import com.steerinfo.dil.util.DataChange;
|
|
|
import com.steerinfo.dil.model.QmsQueueList;
|
|
|
import com.steerinfo.dil.mapper.QmsQueueListMapper;
|
|
|
import com.steerinfo.dil.service.IQmsQueueListService;
|
|
|
+import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.math.BigDecimal;
|
|
@@ -58,6 +60,9 @@ public class QmsQueueListServiceImpl implements IQmsQueueListService {
|
|
|
@Autowired
|
|
|
LargeScreenFeign largeScreenFeign;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
private final SimpleDateFormat gatepostTimeSdf = new SimpleDateFormat("HHmmss");
|
|
|
|
|
|
/**
|
|
@@ -429,7 +434,7 @@ public class QmsQueueListServiceImpl implements IQmsQueueListService {
|
|
|
* @Date:
|
|
|
* @Description:做一个定时任务向两块大屏赋予值
|
|
|
*/
|
|
|
- @Scheduled(cron = "*/30 * * * * ?")
|
|
|
+ @Scheduled(cron = "*/60 * * * * ?")
|
|
|
public void sendDataToLargeCreen(){
|
|
|
Map<String,Object> mapValue=new HashMap<>();
|
|
|
List<Map<String, Object>> datalist =new ArrayList<>();
|
|
@@ -453,6 +458,18 @@ public class QmsQueueListServiceImpl implements IQmsQueueListService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public int ctrlZQueueAllow(Map<String, Object> map) {
|
|
|
+ //去除可进厂确认时间,和进厂时间里面的OK
|
|
|
+ int i = 0;
|
|
|
+ BigDecimal listId = DataChange.dataToBigDecimal(map.get("listId"));
|
|
|
+ //移除OK
|
|
|
+ i =+ queuingRulesMapper.updateEnFactory(DataChange.dataToBigDecimal(map.get("resultTotalId")));
|
|
|
+ //移除可进厂确认时间
|
|
|
+ i =+ queuingRulesMapper.updateQRESULTEnsureTime(listId);
|
|
|
+ return i;
|
|
|
+ }
|
|
|
+
|
|
|
// @Override
|
|
|
// public int queueCutInLine(Map<String, Object> map) {
|
|
|
// //通过实绩Id查出关联的链表Id
|