Commit ea2473f1 sunke

增加获取产线料架日志

1 个父辈 07e69815
...@@ -695,10 +695,13 @@ public class QisdaApi { ...@@ -695,10 +695,13 @@ public class QisdaApi {
} }
} }
public static String GetSerialData(String line, String hserial){
return GetSerialData(line,hserial,false);
}
/** /**
* 检查工单料架是否解绑 [{"data":[{"Serial":"58890","VehicleID":"D15","Status":""},{"Serial":"58890","VehicleID":"D44","Status":""},{"Serial":"58890","VehicleID":"D83","Status":""},{"Serial":"58890","VehicleID":"D90","Status":""},{"Serial":"58890","VehicleID":"D98","Status":""}]}] * 检查工单料架是否解绑 [{"data":[{"Serial":"58890","VehicleID":"D15","Status":""},{"Serial":"58890","VehicleID":"D44","Status":""},{"Serial":"58890","VehicleID":"D83","Status":""},{"Serial":"58890","VehicleID":"D90","Status":""},{"Serial":"58890","VehicleID":"D98","Status":""}]}]
*/ */
public static String GetSerialData(String line, String hserial){ public static String GetSerialData(String line, String hserial, boolean showLog){
if(DataCache.isProductionFor(DataCache.CUSTOMER.DEBUG)){ if(DataCache.isProductionFor(DataCache.CUSTOMER.DEBUG)){
log.info("程序调试阶段,暂不处理,调试完成后更改PRO"); log.info("程序调试阶段,暂不处理,调试完成后更改PRO");
return ""; return "";
...@@ -709,7 +712,9 @@ public class QisdaApi { ...@@ -709,7 +712,9 @@ public class QisdaApi {
paramMap.put("hserial",hserial); paramMap.put("hserial",hserial);
try { try {
String result = HttpHelper.postParam(url,paramMap); String result = HttpHelper.postParam(url,paramMap);
log.debug("从Qisda检查工单料架是否解绑["+line+"](GetSerialData)返回:" + result); if(showLog){
log.info("从Qisda检查工单["+hserial+"]料架是否解绑["+line+"](GetSerialData)返回:" + result);
}
if(result.contains("VehicleID")){ if(result.contains("VehicleID")){
return result; return result;
} }
......
...@@ -216,7 +216,7 @@ public class OutInfoCache { ...@@ -216,7 +216,7 @@ public class OutInfoCache {
//补料检查是否有未解绑的料架 //补料检查是否有未解绑的料架
String lineHasBindShelf = ""; String lineHasBindShelf = "";
if(firstOutInfoToExecute.isTailAction()){ if(firstOutInfoToExecute.isTailAction()){
lineHasBindShelf = QisdaApi.GetSerialData(firstOutInfoToExecute.getLine(),firstOutInfoToExecute.gethSerial()); lineHasBindShelf = QisdaApi.GetSerialData(firstOutInfoToExecute.getLine(),firstOutInfoToExecute.gethSerial(),true);
} }
firstOutInfoToExecute.setLineBindShelfInfo(lineHasBindShelf); firstOutInfoToExecute.setLineBindShelfInfo(lineHasBindShelf);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!