Commit 9520bbb1 LN

1053 显示bug修改

1 个父辈 0cc98f4a
...@@ -126,8 +126,8 @@ public class MessageController { ...@@ -126,8 +126,8 @@ public class MessageController {
@Override @Override
public List<List<String>> getHeader() { public List<List<String>> getHeader() {
List<List<String>> header = new ArrayList<>(); List<List<String>> header = new ArrayList<>();
header.add(Lists.newArrayList(MessageUtils.getSmfClientMsg("smfclient.msgReportCount.msg",locale,"错误类型"))); header.add(Lists.newArrayList(MessageUtils.getSmfClientMsg("smfclient.errorReport.type",locale,"错误类型")));
header.add(Lists.newArrayList(MessageUtils.getSmfClientMsg("smfclient.msgReportCount.count",locale,"数量"))); header.add(Lists.newArrayList(MessageUtils.getSmfClientMsg("smfclient.errorReport.num",locale,"数量")));
return header; return header;
} }
......
...@@ -198,15 +198,15 @@ public class HotayiController { ...@@ -198,15 +198,15 @@ public class HotayiController {
return hotayiBean; return hotayiBean;
} }
//判断是否在出库中 // //判断是否在出库中
try { // try {
//
} catch (ValidateException ex) { // } catch (ValidateException ex) {
String msg = MessageUtils.getText(ex.getMsgKey(), locale, ex.getDefaultMsg()); // String msg = MessageUtils.getText(ex.getMsgKey(), locale, ex.getDefaultMsg());
hotayiBean.setM90(72, msg); // hotayiBean.setM90(72, msg);
log.info("M7返回M90,数据为:"+JsonUtil.toJsonStr(hotayiBean)); // log.info("M7返回M90,数据为:"+JsonUtil.toJsonStr(hotayiBean));
return hotayiBean; // return hotayiBean;
} // }
Storage storage=dataCache.getStorageById(pos.getStorageId()); Storage storage=dataCache.getStorageById(pos.getStorageId());
String result = taskService.checkout(pos,true,null,false); String result = taskService.checkout(pos,true,null,false);
if (ObjectUtil.isNotEmpty(result)) { if (ObjectUtil.isNotEmpty(result)) {
......
...@@ -198,7 +198,7 @@ public class MicronStatusController { ...@@ -198,7 +198,7 @@ public class MicronStatusController {
if(cid.endsWith("-1")){ if(cid.endsWith("-1")){
cid= cid.replace("-1","-B"); cid= cid.replace("-1","-B");
}else if(cid.endsWith("-2")){ }else if(cid.endsWith("-2")){
cid= cid.replace("-1","-A"); cid= cid.replace("-2","-A");
} }
if (s.getStatus() == 2||s.getStatus()==3) { if (s.getStatus() == 2||s.getStatus()==3) {
...@@ -420,9 +420,19 @@ public class MicronStatusController { ...@@ -420,9 +420,19 @@ public class MicronStatusController {
allStorages.values()) { allStorages.values()) {
StatusBean statusBean = DevicesStatusUtil.getStatusBean(storage.getCid()); StatusBean statusBean = DevicesStatusUtil.getStatusBean(storage.getCid());
if (statusBean != null && (!statusBean.timeOut())) { if (statusBean != null && (!statusBean.timeOut())) {
String msg = statusBean.getErrorMsg(servletRequest.getLocale()); // String msg = statusBean.getErrorMsg(servletRequest.getLocale());
if (ObjectUtil.isNotEmpty(msg)) { // if (ObjectUtil.isNotEmpty(msg)) {
count += 1; // count += 1;
// }
Map<String, String> msgMap = statusBean.getMsgMap();
if (msgMap != null && msgMap.size() > 0) {
for (String msg :
msgMap.keySet()) {
String type = msgMap.getOrDefault(msg, "");
if (type.toUpperCase().equals("ERROR")) {
count += 1;
}
}
} }
} }
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!