|
|
|
@ -525,12 +525,10 @@ public class ProdReadyTaskServiceImpl extends ServiceImpl<ProdReadyTaskMapper, P
|
|
|
|
|
* 根据返回值,更新打印机信息-printName及打印是否成功信息isPrint
|
|
|
|
|
*/
|
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(post);
|
|
|
|
|
String code = jsonObject.getString("code");
|
|
|
|
|
if (code == null) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (post.indexOf("500") != -1) {
|
|
|
|
|
throw BusinessException.build("打印失败!");
|
|
|
|
|
Integer code = jsonObject.getInteger("code");
|
|
|
|
|
String msg = jsonObject.getString("msg");
|
|
|
|
|
if (code != 0){
|
|
|
|
|
throw BusinessException.build(msg);
|
|
|
|
|
}
|
|
|
|
|
if (printLogList.isEmpty()) {
|
|
|
|
|
printTag.setIsPrint("true");
|
|
|
|
|