Commit 66a0239c 孙克

更改dataCache.getCache(的类型错误

1 个父辈 5de0ed11
......@@ -124,7 +124,8 @@ public class MimoBoxHandler extends BaseDeviceHandler {
public StatusBean outSingleOutTask(Storage storage, StatusBean statusBean) {
try {
//准备更新暂停出入库
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
return statusBean;
}
String cid = storage.getCid();
......
......@@ -109,7 +109,8 @@ public class MimoG2BoxHandler extends BaseDeviceHandler {
public StatusBean outSingleOutTask(Storage storage, StatusBean statusBean) {
try {
//准备更新暂停出入库
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
return statusBean;
}
String cid = storage.getCid();
......
......@@ -108,7 +108,9 @@ public class MimoG3BoxHandler extends BaseDeviceHandler{
public StatusBean outSingleOutTask(Storage storage, StatusBean statusBean) {
try {
//准备更新暂停出入库
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
return statusBean;
}
String cid = storage.getCid();
......
......@@ -100,7 +100,9 @@ public class RobotBoxHandler extends BaseDeviceHandler {
public StatusBean findCheckOutTask(Storage storage, StatusBean statusBean) {
try {
//准备更新暂停出入库
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
return statusBean;
}
......@@ -290,7 +292,9 @@ public class RobotBoxHandler extends BaseDeviceHandler {
String lineMsg = "";
log.info("流水线[" + cids + "]获取[" + code + "]的入库库位");
Map<String, Object> resultMap = Maps.newHashMap();
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
// lineMsg = "系统更新中,暂停出入库";
lineMsg="System update in progress, suspend the inlet and outlet";
DeviceMessageUtil.updateLineMsg(lineMsg,code,cids,"" ,"smfcore.linemsg.update",null);
......
......@@ -80,7 +80,8 @@ public class ThirdBoxHandler extends BaseDeviceHandler{
public StatusBean findCheckOutTask(Storage storage, StatusBean statusBean) {
try {
//准备更新暂停出入库
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
return statusBean;
}
//如果当前有barcode,暂时不发出库任务
......
......@@ -104,7 +104,9 @@ public class XLRBoxHandler extends BaseDeviceHandler {
public StatusBean checkOut(Storage storage, StatusBean statusBean) {
try {
//准备更新暂停出入库
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
return statusBean;
}
String cid = storage.getCid();
......
......@@ -51,7 +51,6 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.*;
import java.util.List;
@Slf4j
......@@ -192,7 +191,8 @@ public class DeviceController {
log.info("流水线[" + cids + "]获取[" + rfid + "][" + code + "]的入库库位");
Map<String, Object> resultMap = Maps.newHashMap();
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
lineMsg = MessageUtils.getText("smfcore.linemsg.update", MessageUtils.getDefaultLocal(), "系统更新中,暂停出入库");
DeviceMessageUtil.updateLineMsg(lineMsg,code,cids,"" ,"smfcore.linemsg.update",null);
resultMap.put("result", "100");
......
......@@ -88,7 +88,8 @@ public class DualPosNameDeviceController {
log.info("流水线[" + cids + "]获取[" + rfid + "][" + code + "]的入库库位");
Map<String, Object> resultMap = Maps.newHashMap();
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
lineMsg = MessageUtils.getText("smfcore.linemsg.update", MessageUtils.getDefaultLocal(), "系统更新中,暂停出入库");
DeviceMessageUtil.updateLineMsg(lineMsg, code, cids, "", "smfcore.linemsg.update", null);
resultMap.put("result", "100");
......
......@@ -522,7 +522,8 @@ public class TaskService {
public StatusBean checkOut(Storage storage, StatusBean statusBean) {
try {
//准备更新暂停出入库
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
return statusBean;
}
String cid = storage.getCid();
......
......@@ -84,7 +84,9 @@ public class KebodaController {
log.info("流水线[" + cids + "]获取[" + rfid + "][" + code + "]的入库库位");
Map<String, Object> resultMap = Maps.newHashMap();
if (dataCache.getCache(Constants.CACHE_StopOut)) {
Boolean stopOut = dataCache.getCache(Constants.CACHE_StopOut);
if (stopOut) {
lineMsg = "系统更新中,暂停出入库";
DeviceMessageUtil.updateLineMsg(lineMsg, code, cids, "", "smfcore.linemsg.update", null);
resultMap.put("result", "100");
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!