修改标识
This commit is contained in:
@@ -358,8 +358,8 @@ public class OrderInfo implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
public void upPrintStatus(JSONObject printStatus, boolean isPrintSuccess) {
|
||||
String currentDeviceId = printStatus.getString("id");
|
||||
public void upPrintStatus(JSONObject printJson, boolean isPrintSuccess) {
|
||||
String currentDeviceId = printJson.getString("id");
|
||||
JSONArray oldPrintStatusArray = getPrintStatusAsArray();
|
||||
// 3. 初始化新的打印状态JSON数组(用于存储处理后的结果)
|
||||
JSONArray newPrintStatusArray = new JSONArray();
|
||||
@@ -375,10 +375,10 @@ public class OrderInfo implements Serializable {
|
||||
}
|
||||
}
|
||||
if (!isPrintSuccess) {
|
||||
newPrintStatusArray.add(printStatus);
|
||||
newPrintStatusArray.add(printJson);
|
||||
}
|
||||
if(newPrintStatusArray.isEmpty()){
|
||||
this.setPrintStatus(newPrintStatusArray.toJSONString());
|
||||
if (newPrintStatusArray.isEmpty()) {
|
||||
printStatus = newPrintStatusArray.toJSONString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user