log.warn("backUpMongoTemplate 不可用,配置的是本机: ip["+mongoProperties.getHost()+"] db ["+mongoProperties.getDatabase()+"] baseDb["+baseDatabase+"] ");
EnLog.warn("backUpMongoTemplate unavailable, configured as local: ip["+mongoProperties.getHost()+"] db ["+mongoProperties.getDatabase()+"] baseDb["+baseDatabase+"]");
EnLog.info("["+oldLocInfo.getBarcode()+"] already has locked position ["+oldLocInfo.getLockPosName()+"], cid ["+oldLocInfo.getCid()+"] not in ["+String.join(",",cidList)+"], clear previous lock");
EnLog.info("Lock position ["+reelLockPosInfo.getLockPosName()+"] for ["+reelLockPosInfo.getBarcode()+"] failed, already locked by ["+locInfo.getBarcode()+"]");
EnLog.error("Lock position ["+reelLockPosInfo.getLockPosName()+"] for ["+reelLockPosInfo.getBarcode()+"], key=["+key+"] error: "+exception.toString());
EnLog.info("watchOrderDir, mode=[{0}], reason=[{1}]: Order no [{2}] already exists in DB, ignore file: {3}",mode,reason,orderName,orderFile.getAbsolutePath());
//resultFile = new File(localDir+File.separator + "error",backupFileName);
returnfalse;
}
...
...
@@ -233,6 +238,7 @@ public class DefaultOrderFileListener implements IOrderFileListener {
EnLog.info("Lock material: material locked by other order when unlocking: pos [{0}] barcode [{1}] lockId [{2}], order finished, can unlock",pos.getPosName(),code.getBarcode(),code.getLockId());
EnLog.info("Lock material: material locked by other order when unlocking: pos [{0}] barcode [{1}] lockId [{2}], order not finished, cannot unlock",pos.getPosName(),code.getBarcode(),code.getLockId());
continue;
}
}
...
...
@@ -115,6 +121,7 @@ public class LockMaterialController {
EnLog.info("Barcode "+subBarcode.getBarcode()+" ["+subBarcode.getPartNumber()+"] put-in to material box ["+barcode.getBarcode()+"], qty: "+barcode.getAmount());
EnLog.error("When importing pos for ["+storage.getName()+"], posName ["+String.join(",",existPosName)+"] already exists in other storage, not creating");
EnLog.info("Update system settings: stopout="+sysSettingsDto.isStopOut()+",stopjob="+sysSettingsDto.isStartJob()+",sluggishDay="+sysSettingsDto.getSluggishDay()
EnLog.info("API002, interface communication failed: "+errMsg);
returnresultMap;
}
else{
Stringmsg=MessageUtils.getText("smfcore.api.fail",newString[]{"API002 : "+result.getResponseData()},MessageUtils.getDefaultLocal(),"{0} Failed to get data");
resultMap.put("msg",msg);
log.info("API002 ,接口通信失败:"+msg);
EnLog.info("API002, interface communication failed: "+msg);
returnresultMap;
// log.info("API002 ,接口通信失败");
// throw new ApiException("smfcore.api.fail", "{0} Failed to get data", new String[]{"API002 : "+result.getResponseData()});
...
...
@@ -360,6 +371,7 @@ public class MicronApi {
catch(Exceptione){
//超时返回:API002 interface time out
log.error(url+"出错",e);
EnLog.error(url+" error",e);
resultMap.put("msg","API002 interface time out");
returnresultMap;
}
...
...
@@ -399,6 +411,7 @@ public class MicronApi {
}
try{
log.info("调用MES接口 API004: url="+url+"");
EnLog.info("Call MES API004: url="+url);
MicronResultresult=HttpHelper.getMicronJson(url);
StringerrMsg=getDErrorMsg(result);
if(result.isOk()){
...
...
@@ -408,6 +421,7 @@ public class MicronApi {
// 这个需要改进一些,如果dispatchIds 长度为0,能不能显示 no line prep available for pcb pretask, depending on the mode,
// 如果是lineprep dispatch 和 mcl pretask 也reply 相对的message, 再说这个API transaction 没有fail,只是没有lineprep, 这个error fail to get data 有点误导了
log.info("API004 ,接口通信失败: no line prep available for pcb pretask, depending on the mode");
EnLog.info("API004, interface communication failed: no line prep available for pcb pretask, depending on the mode");
//throw new ApiException("smfcore.api.fail", "{0} Failed to get data", new String[]{"API004"});
Stringmsg="No line prep available for pcb pretask ";
if(mode.equalsIgnoreCase("PCBPRETASK")){
...
...
@@ -426,10 +440,12 @@ public class MicronApi {
returnresultDis;
}elseif(ObjectUtil.isNotEmpty(errMsg)){
log.info("API004 ,接口通信失败:"+errMsg);
EnLog.info("API004, interface communication failed: "+errMsg);
thrownewApiException(errMsg);
}else{
log.info("API004 ,接口通信失败");
EnLog.info("API004, interface communication failed");
//throw new ApiException("smfcore.api.fail", "{0} Failed to get data", new String[]{"API004"});
Stringmsg="API004 : "+result.getResponseData()+" Failed to get data";
EnLog.info("updateMInventory: barcode ["+obj.getCarrier()+"] MPos ["+obj.getDepot()+"] in pos ["+inPos.getPosName()+"-"+inPos.getStorageId()+"-"+inStorage.getCid()+"], clear and put-in to storage ["+SStorage.getName()+"-"+SStorage.getCid()+"-"+SStorage.getId()+"]");
EnLog.error("In-list ["+inList.getName()+"]: barcode["+item.getRi()+"] pos["+item.getPosName()+"] currentState="+item.getState()+", do not change state to "+s);
EnLog.info("In-list ["+inList.getName()+"], rfid["+rfid+"], posName["+item.getPosName()+"], ri["+item.getRi()+"], task canceled but put-in finished, still need to send API002");
EnLog.info("lockOrderName="+orderName+" found material ["+barcode.getBarcode()+"], PN=["+barcode.getPartNumber()+"], qty="+barcode.getAmount()+", totalFound="+lockNum);
posToLock.add(pos);
}
excludePosIds.add(pos.getId());
...
...
@@ -315,6 +324,7 @@ public class MesApiController {